A WordPress live support chat plugin powered by AI providers (OpenAI/Gemini) and Telegram integration.
The plugin keeps your existing site UI untouched and only adds the smart support and admin logging features.
- Live support chat with your existing site design
- Integrates with OpenAI or Gemini
- Telegram bot integration with secure Webhook
- Admin log panel with wide, clean UI
- Customizable branding (light/dark logo)
- Knowledge Base support via CSV
- WordPress >= 5.8
- PHP >= 7.4 (tested with PHP 8.2)
- PHP extensions:
cURL,JSON - A Telegram bot created via BotFather
- Copy the
plugin/folder intowp-content/plugins/.
Or download theMegachat-support-X.X.X.zipfrom Releases and upload it in WordPress. - Activate the plugin in the WordPress dashboard.
- Go to Settings → Megachat Support and fill in your configuration.
- Select
openaiorgeminias the provider. - Enter your API key.
- Keys are stored securely in WordPress Options
- Create a Google Sheet, go to File → Publish to web → CSV.
- Paste the CSV URL into the plugin settings.
- Suggested column format:
ID | Category | Question | Canonical_Answer | Keywords/Synonyms
- Enter and save your Bot Token.
- The plugin will generate a JSON like this with your secret: {"url":"https://your-site.com/wp-json/support/v1/tg-webhook?secret=YOUR_SECRET"}
-
Send it with a POST request to: https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook
-
After success, user messages will be forwarded to Telegram.
2. Agent Chat (user → admin request)

-
Frontend: HTML, CSS, JS
-
Backend: PHP (WordPress plugin + REST API)
-
Integrations:
- OpenAI/Gemini
- Telegram Webhook
Data flow: User ↔ Widget ↔ WP REST API ↔ LLM/Telegram ↔ Response
Can I connect multiple Telegram bots? No. Each bot can only have one active Webhook, so practically one bot = one site.
How is the Secret generated? It is generated and stored securely when you save plugin settings.
Does the plugin store sensitive data? No. Only technical logs (status code, message, timestamp, debug info) are stored.
- All HTML output is sanitized.
- Links use
rel="nofollow noopener noreferrer". - Telegram Webhook requires a valid secret.
- Rate limiting is applied to prevent abuse.
Get the latest release from Releases.
- Download the
.zipfile for easy WordPress install - Or clone the source code and build it yourself
See CHANGELOG.md for version history.
Contributions are welcome!
- Guidelines: CONTRIBUTING.md
- Report vulnerabilities via: SECURITY.md
This project is licensed under GPL-2.0-or-later. See the LICENSE file for details.


