AI Customer Support
This plugin is build for Bidirectional websocket for Live chat between agent and client. Wordpress + Firebase Realtime Database.
by Your Name · github.com/mandeeps207/ai-customer-support-plugin-for-wordpress
★ 1stars
0forks
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/mandeeps207/ai-customer-support-plugin-for-wordpress/archive/refs/heads/master.zipAI Customer Support is a modern, AI-powered live chat plugin for WordPress. It features real-time chat, agent escalation, chat archiving, and secure integration with Firebase and Google Gemini AI.
Features
- Live chat widget for website visitors
- AI-powered responses using Google Gemini API
- Human agent takeover/escalation
- Agent profile photo and name in chat
- Typing indicators for both agent and user
- Chat archive with search and pagination
- Admin dashboard for managing chats
- Secure message storage in WordPress database
- Firebase Realtime Database integration
- Customizable via WordPress settings
Installation
- Clone or download this repository into your
wp-content/pluginsdirectory. - Install Composer dependencies:
composer install - Create a Firebase project and download the service account JSON. Place it as
firebase-service-account.jsonin the plugin root. - Configure plugin settings in WordPress Admin > Settings > AI Customer Support:
- Firebase API Key
- Firebase Project ID
- Google Gemini API Key
- Activate the plugin from the WordPress Plugins page.
Usage
- The chat widget appears on every page for visitors.
- Admins can manage chats and view archives from the WordPress dashboard.
- AI and agent messages are stored in both Firebase and the WordPress database.
Firebase Security
- The plugin uses Firebase custom tokens for admin authentication.
- For best security, set your Firebase Realtime Database rules:
{ "rules": { "admin_status": { "online": { ".read": true, ".write": "auth != null && auth.token.admin === true" } }, // ...other rules... } } - Only authenticated admins can change online status or access restricted data.
Customization
- Edit CSS in
public/css/aics-public.cssandadmin/css/aics-admin.cssfor UI changes. - Modify chat widget HTML in
public/partials/chat-widget-inner.php. - Extend backend logic in
includes/class-aics-core.phpandincludes/class-aics-db.php.
Troubleshooting
- If you see errors about missing Firebase custom token, ensure
firebase-service-account.jsonis present and correct. - Check your Firebase rules if unauthorized users can change admin status.
- Use browser console for JS errors and WordPress debug log for PHP errors.
License
This plugin is provided as-is. See LICENSE file for details.
For support or feature requests, open an issue or contact the author.