AI Chatbot Hub
One WordPress plugin to manage AI chatbots across Telegram, WhatsApp, Facebook Messenger, and your website — powered by a single Gemini AI backend with unified dashboard.
by Vaibhav Kumar · github.com/vaibhavkumar-wpdev/wp-chatbot-hub · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/vaibhavkumar-wpdev/wp-chatbot-hub/archive/refs/heads/main.zipAI Chatbot Hub — WordPress Plugin
One WordPress plugin to manage AI chatbots across Telegram, WhatsApp, Facebook Messenger, and your website — all powered by a single Gemini AI backend with a unified admin dashboard.
Why This Plugin
Managing multiple chatbots normally means:
- Separate Node.js bots on different servers
- Different dashboards for each platform
- Duplicating the system prompt on every bot
- No unified view of conversations
This plugin solves all of that. One install, one API key, one system prompt → all platforms live.
Features
- 🌐 Website Widget — floating chat bubble, works on every page
- ✈️ Telegram Bot — webhook-based, auto-registers webhook URL
- 💬 WhatsApp — Twilio integration, TwiML response handling
- 📘 Facebook Messenger — Meta Graph API v18.0
- 🧠 Shared AI Engine — one Gemini API key, one system prompt
- 💬 Unified Conversations — all chats stored in one DB table, viewable in one place
- 📊 Platform Dashboard — live/offline status + message counts per platform
- 🔌 Connection Testing — test each platform's credentials with one click
- 🗑️ Conversation Management — view and clear any conversation from the dashboard
Platforms
| Platform | Requires | Setup |
|---|---|---|
| Website Widget | Nothing | Enable + customize in Platforms |
| Telegram | @BotFather token | Add token → click Register Webhook |
| Twilio account | Add SID + token + number → paste webhook URL in Twilio | |
| Facebook Messenger | Meta Developer App | Add page token + app secret → paste webhook URL in Meta |
Installation
- Download the ZIP
- WordPress Admin → Plugins → Add New → Upload Plugin → Activate
- Go to Chatbot Hub → Settings → Add your Gemini API key
- Go to Chatbot Hub → Platforms → Enable and configure platforms
Getting Your Gemini API Key
Free tier at aistudio.google.com/app/apikey
- 1,500 requests/day on gemini-2.0-flash-lite (recommended)
Webhook URLs
After activating, register these URLs in each platform:
| Platform | Webhook URL |
|---|---|
| Telegram | https://yoursite.com/wp-json/chatbot-hub/v1/telegram |
https://yoursite.com/wp-json/chatbot-hub/v1/whatsapp |
|
https://yoursite.com/wp-json/chatbot-hub/v1/facebook |
Database
The plugin creates one custom table: wp_chatbot_hub_conversations
id, platform, external_id, display_name, messages (JSON), message_count, last_message_at, created_at
Project Structure
wp-chatbot-hub/
├── wp-chatbot-hub.php ← Main plugin, DB creation
├── includes/
│ ├── class-ai-engine.php ← Gemini API, shared by all platforms
│ ├── class-conversation-manager.php ← DB layer for all conversations
│ ├── class-webhook-router.php ← REST API endpoints
│ └── platforms/
│ ├── class-platform-website.php ← Website chat widget
│ ├── class-platform-telegram.php ← Telegram Bot API
│ ├── class-platform-whatsapp.php ← Twilio WhatsApp
│ └── class-platform-facebook.php ← Meta Messenger API
├── admin/
│ ├── class-admin-dashboard.php ← Admin menus, AJAX handlers
│ └── pages/
│ ├── dashboard.php ← Platform status + recent convos
│ ├── conversations.php ← View/manage all conversations
│ ├── platforms.php ← Configure each platform
│ └── settings.php ← Gemini API key + system prompt
└── public/
├── js/widget.js ← Frontend chat widget JS
└── css/widget.css ← Widget styles
Admin Pages
| Page | Description |
|---|---|
| Dashboard | Platform status cards, recent conversations, webhook URLs |
| Conversations | Browse all conversations across platforms, click to read messages |
| Platforms | Enable/disable each platform, configure credentials, test connections |
| Settings | Gemini API key, model selector, system prompt, memory settings |
Requirements
- WordPress 5.8+
- PHP 7.4+
- HTTPS (required for webhooks)
Author
Vaibhav Kumar — WordPress & AI Integration Developer Top Rated | 97% JSS | 3,100+ Hours
- Upwork: https://www.upwork.com/freelancers/vaibhavkumar
- GitHub: https://github.com/vaibhavkumar-WPDEV
License
GPL v2 or later