WP Manifestindependent plugin directory
manifest / ai / wordpress-ai-chatbot-plugin

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

  1. Download the plugin ZIP file
  2. Go to WordPress Admin β†’ Plugins β†’ Add New β†’ Upload Plugin
  3. Upload the ZIP and click Install Now
  4. Activate the plugin

Manual Installation

  1. Upload the wordpress-ai-plugin-2022 folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress

Configuration

  1. Go to WordPress Admin β†’ AightBot Settings
  2. Enter your OpenAI API key (stored encrypted)
  3. Configure the chatbot behavior and appearance
  4. Enable RAG and configure content indexing (optional)
  5. 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 ABSPATH constant
  • 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