AightBot
π WordPress AI chatbot plugin with RAG support β encrypted API keys, session management & content indexing (2022)
by Ziegler Technical Solutions Β· github.com/reach-harishapc/wordpress-ai-chatbot-plugin Β· website
β
0stars
1forks
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/reach-harishapc/wordpress-ai-chatbot-plugin/archive/refs/heads/main.zipπ AightBot β WordPress AI Chatbot Plugin with RAG Support
A feature-rich, customizable AI chatbot plugin for WordPress with Retrieval-Augmented Generation (RAG), encrypted API key storage, session management, and a fully configurable admin panel. Built for Ziegler Technical Solutions.
β¨ Features
- AI-Powered Conversations β Integrates with OpenAI API for intelligent chat responses
- RAG Support β Retrieval-Augmented Generation for context-aware answers using your site's content
- Content Indexing β Automatically indexes WordPress content for RAG queries
- Encrypted API Keys β Secure storage of API keys using OpenSSL encryption
- Session Management β Maintains conversation context across multiple messages
- Admin Settings Panel β Full configuration UI with general settings and RAG configuration
- Frontend Chat Widget β Embeddable chatbot widget with custom CSS styling
- Logging System β Built-in logger for debugging and monitoring
- i18n Ready β Internationalization support with text domain and language files
- Clean Uninstall β Removes all plugin data on uninstallation
π οΈ Tech Stack
| Layer | Technology |
|---|---|
| Platform | WordPress (PHP) |
| AI | OpenAI API |
| Security | OpenSSL Encryption |
| Frontend | HTML, CSS, JavaScript |
| Database | WordPress Options API |
| Architecture | OOP with Singleton pattern |
π Project Structure
wordpress-ai-plugin-2022/
βββ aightbot.php # Main plugin file & bootstrap
βββ index.php # Security index
βββ uninstall.php # Clean uninstall handler
βββ includes/
β βββ class-admin-settings.php # Admin panel settings
β βββ class-api-handler.php # OpenAI API integration
β βββ class-content-indexer.php # Content indexing for RAG
β βββ class-encryption.php # API key encryption
β βββ class-frontend-widget.php # Chat widget frontend
β βββ class-install.php # Activation/deactivation hooks
β βββ class-logger.php # Logging system
β βββ class-rag-handler.php # RAG query processing
β βββ class-session-manager.php # Conversation session management
βββ admin/
β βββ css/admin-style.css # Admin panel styles
β βββ js/admin-script.js # Admin panel scripts
β βββ partials/settings-page.php # Settings page template
βββ assets/
β βββ css/widget-style.css # Chat widget styles
β βββ js/widget-script.js # Chat widget scripts
βββ languages/ # Translation files
βββ .github/
βββ screenshots/ # Plugin screenshots
βββ aightbot_chatbot.png
βββ admin_general.png
βββ admin_rag.png
π Installation
From WordPress Admin
- Download the plugin ZIP file
- Go to WordPress Admin β Plugins β Add New β Upload Plugin
- Upload the ZIP and click Install Now
- Activate the plugin
Manual Installation
- Upload the
wordpress-ai-plugin-2022folder to/wp-content/plugins/ - Activate the plugin through the Plugins menu in WordPress
Configuration
- Go to WordPress Admin β AightBot Settings
- Enter your OpenAI API key (stored encrypted)
- Configure the chatbot behavior and appearance
- Enable RAG and configure content indexing (optional)
- Enable the chatbot to display the widget on your site
π Security Features
- Encrypted API Keys β API keys are encrypted using OpenSSL before database storage
- OpenSSL Requirement β Plugin checks for the OpenSSL PHP extension on activation
- Direct Access Prevention β All PHP files check for
ABSPATHconstant - Clean Uninstall β All plugin data is removed when the plugin is deleted
πΈ Screenshots
| Admin Settings | RAG Configuration | Chat Widget |
|---|---|---|
| General settings panel | RAG setup & indexing | Frontend chatbot widget |
βοΈ Requirements
- WordPress 5.0+
- PHP 7.4+ with OpenSSL extension
- OpenAI API key