PHPackages                             wszdb/flarum-replybyai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wszdb/flarum-replybyai

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

wszdb/flarum-replybyai
======================

AI-powered smart reply button for Flarum posts. Add intelligent AI-generated replies with one click.

v1.2(8mo ago)21681[1 issues](https://github.com/wszdb/flarum-replybyai/issues)MITTypeScriptPHP ^8.1

Since Oct 12Pushed 8mo agoCompare

[ Source](https://github.com/wszdb/flarum-replybyai)[ Packagist](https://packagist.org/packages/wszdb/flarum-replybyai)[ RSS](/packages/wszdb-flarum-replybyai/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Flarum Reply By AI
==================

[](#flarum-reply-by-ai)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![Flarum](https://camo.githubusercontent.com/3374c7de8d35262d012c45a09595088e2019f405e5f9637771e14c55f544af63/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666c6172756d2d253545312e322e302d6f72616e67652e737667)](https://camo.githubusercontent.com/3374c7de8d35262d012c45a09595088e2019f405e5f9637771e14c55f544af63/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666c6172756d2d253545312e322e302d6f72616e67652e737667)

🤖✨It leverages AI to generate reply content with one click in the reply dialog box of forum posts, enabling higher-quality casual discussions on your forum.​ This plugin supports the integration of any large models that comply with the OpenAI API protocol, including Alibaba Tongyi Qianfan, Volcano Ark, Baidu Qianfan, Tencent Models, OpenRouter, Silicon Flow, and more. It covers a wide range of large models such as DeepSeek, Qwen3, Kimi, GLM, ChatGPT, Gemini, Grok, etc.

🤖✨Flarum Ai回贴自动生成插件，使用AI，在论坛贴子回复对话框中，一键生成回复内容，让你的论坛灌水更高质量。插件支持任意OpenAi api协议大模型接入，包括阿里百炼、火山方舟、百度千帆、腾讯、Openrouter、硅基流动等，覆盖各类大模型，如DeepSeek、Qwen3、Kimi、GLM、ChatGPT、Gemini、Grok等。

[![局部截取_20251012_205046](https://private-user-images.githubusercontent.com/202256400/500255348-8923712b-60e6-486c-9582-045f00ea4f23.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI4NTY2OTIsIm5iZiI6MTc4Mjg1NjM5MiwicGF0aCI6Ii8yMDIyNTY0MDAvNTAwMjU1MzQ4LTg5MjM3MTJiLTYwZTYtNDg2Yy05NTgyLTA0NWYwMGVhNGYyMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYzMFQyMTUzMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMDhjNGMzZTllMjI0NzY3MGEyNzg1OGUzZWEwOGVjZmEzOTcwNWE3MTU1NTc1NDRiODU3OTg3ZGUzM2RmNjYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.64CevOHdb0Ky9FoB3N2wnukvlDyM45F9Tt1Oa2nEDQ4)](https://private-user-images.githubusercontent.com/202256400/500255348-8923712b-60e6-486c-9582-045f00ea4f23.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI4NTY2OTIsIm5iZiI6MTc4Mjg1NjM5MiwicGF0aCI6Ii8yMDIyNTY0MDAvNTAwMjU1MzQ4LTg5MjM3MTJiLTYwZTYtNDg2Yy05NTgyLTA0NWYwMGVhNGYyMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYzMFQyMTUzMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMDhjNGMzZTllMjI0NzY3MGEyNzg1OGUzZWEwOGVjZmEzOTcwNWE3MTU1NTc1NDRiODU3OTg3ZGUzM2RmNjYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.64CevOHdb0Ky9FoB3N2wnukvlDyM45F9Tt1Oa2nEDQ4)[![局部截取_20251012_205420](https://private-user-images.githubusercontent.com/202256400/500255620-56d0b39c-f146-4cb8-8400-e1a19c732c9b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI4NTY2OTIsIm5iZiI6MTc4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I2MDYzMFQyMTUzMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZWFjNzM1NDg3NTQ5OWY0MDg5YjY5NDNiM2RiODdiYzAwOGYzYTI5OWU4OTU0M2ZjNzI4ZTNiNTg1MWQ2MDJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.qXU0HRELh0qZgAw9sJa134zrzprYlgPmwOusYyMbX2I)Features
--------

[](#features)

- 🎯 **AI Reply Button**: Add customizable AI reply button to every post
- 🤖 **AI-Powered**: Generate contextual replies using OpenAI-compatible APIs
- 📝 **Auto-Fill**: Automatically populate the reply box with AI-generated content
- ✏️ **Editable**: Users can modify AI-generated replies before posting
- 🔗 **Quote Support**: Automatically adds quote references for non-first-floor replies
- ⚙️ **Flexible Configuration**: Support for any OpenAI API-compatible service
- 🎨 **Customizable**: Configure button text and content length in admin panel

Installation
------------

[](#installation)

```
composer require wszdb/flarum-replybyai
```

Configuration
-------------

[](#configuration)

1. Navigate to Admin Panel → Extensions → Reply By AI
2. Configure the following settings:
    - **API Key**: Your OpenAI API key or compatible service key
    - **Base URL**: API endpoint (default: `https://api.openai.com/v1`)
    - **Model Name**: Model to use (e.g., `gpt-3.5-turbo`, `gpt-4`)
    - **Max Tokens**: Maximum response length (default: 200)
    - **Content Max Length**: Maximum characters to analyze from post (default: 200)
    - **Button Text**: Custom button text (default: "AI回复")
    - **System Prompt**: Instructions for AI behavior

Usage
-----

[](#usage)

1. Click the AI reply button below any post
2. AI analyzes the post content (configurable character limit)
3. Generated reply appears in the reply box
4. Edit if needed, then click "Reply" to post

Requirements
------------

[](#requirements)

- PHP ^8.1
- Flarum ^1.2.0
- OpenAI-compatible API service

License
-------

[](#license)

MIT License. See LICENSE.md for details.

Links
-----

[](#links)

- [GitHub Repository](https://github.com/wszdb/flarum-replybyai)
- [Report Issues](https://github.com/wszdb/flarum-replybyai/issues)
- This plugin is fully automatically developed using [AiPy](https://www.aipyaipy.com). Invitation Code: XOFS.
- 本插件使用[AiPy](https://www.aipyaipy.com)全自动开发完成，邀请码：XOFS.

Credits
-------

[](#credits)

Developed by [wszdb](https://github.com/wszdb)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance49

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

258d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/202256400?v=4)[wszdb](/maintainers/wszdb)[@wszdb](https://github.com/wszdb)

---

Top Contributors

[![wszdb](https://avatars.githubusercontent.com/u/202256400?v=4)](https://github.com/wszdb "wszdb (2 commits)")

---

Tags

aipyappchatgptdeepseekflarumflarum-extensionqwenaiflarumassistantreply

### Embed Badge

![Health badge](/badges/wszdb-flarum-replybyai/health.svg)

```
[![Health](https://phpackages.com/badges/wszdb-flarum-replybyai/health.svg)](https://phpackages.com/packages/wszdb-flarum-replybyai)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[fof/byobu

Well integrated, advanced private discussions.

59120.6k13](/packages/fof-byobu)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k4](/packages/fof-discussion-language)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[fof/polls

 A Flarum extension that adds polls to your discussions

25133.5k9](/packages/fof-polls)[fof/masquerade

User profile builder extension for your Flarum forum.

2025.4k5](/packages/fof-masquerade)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
