WP Manifestindependent plugin directory
manifest / ai / dualbot

Dual Chatbot Plugin

Provides a dual chatbot for FAQ and member advisory within WordPress. Implements server-side RAG retrieval and integration with OpenAI for conversational support.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/hermetik1/dualbot/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A professional WordPress plugin providing a dual chatbot system for FAQ and member advisory services. Features server-side RAG retrieval, OpenAI integration, and comprehensive security and privacy controls.

🚀 Features

  • Dual Bot System: Separate FAQ bot for public and advisor bot for members
  • Server-Side RAG: Knowledge base retrieval with vector embeddings
  • OpenAI Integration: GPT-4 and GPT-3.5-turbo support
  • Security-First: Nonce verification, prepared statements, rate limiting
  • GDPR Compliant: Data export, deletion, retention policies
  • Multisite Ready: Full WordPress Multisite support
  • Comprehensive Tests: 30 PHPUnit tests + 27 Vitest tests
  • Accessibility: ARIA labels, keyboard navigation
  • Performance: Built-in caching, rate limiting, monitoring

📋 Requirements

  • WordPress 6.4+
  • PHP 8.1+
  • MySQL 5.7+ or MariaDB 10.2+
  • Node.js 18+ (for development)

📦 Installation

Standard Installation

  1. Download the latest release ZIP
  2. Upload to WordPress via Plugins → Add New → Upload Plugin
  3. Activate the plugin
  4. Configure at Settings → Dual Chatbot

Development Installation

git clone https://github.com/KI-Kraft/dual-chatbot-plugin.git
cd dual-chatbot-plugin
npm install
composer install
npm run build

🔧 Configuration

  1. Navigate to Settings → Dual Chatbot
  2. Configure:
    • Enable FAQ and/or Advisor bots
    • Add OpenAI API key
    • Upload knowledge base files
    • Set theme and colors
    • Configure privacy settings

📚 Documentation

🛡️ Security Features

  • Nonce Verification: All AJAX and REST requests protected
  • Capability Checks: Role-based access control
  • Prepared Statements: SQL injection prevention
  • Rate Limiting: Per-user and per-IP limits with Retry-After headers
  • Input Validation: Server-side validation and sanitization
  • XSS Prevention: Output escaping throughout

🔐 Privacy & GDPR

Data Export & Deletion

Export or delete user data at Settings → Dual Chatbot → Data & Privacy

Data Retention

Configure automatic cleanup (7-730 days, default 180)

Analytics Opt-In

Analytics disabled by default - requires explicit opt-in

See PRIVACY.md for complete details.

🌐 Multisite Support

Fully supports WordPress Multisite with site-specific data isolation.

See MULTISITE.md for setup instructions.

🧪 Testing

# PHP Unit Tests (30 tests)
composer test

# JavaScript Tests (27 tests)
npm test

# Linting
composer run phpcs
npm run lint:js

# Static Analysis
composer run phpstan

🏗️ Building for Release

npm run build:plugin
# Output: dist/dual-chatbot-plugin.zip

🔄 API

REST Endpoints

Public: wp-json/chatbot/v1/

  • POST /submit_message - Send chat message
  • GET /get_history - Retrieve history
  • POST /transcribe_audio - Audio transcription

Internal: wp-json/dual-chatbot/v1/

  • POST /analytics/track - Track events
  • POST /client-log - Error logging

See DEVELOPERS.md for complete API docs.

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Write tests
  4. Run linters
  5. Submit PR

📄 License

ISC License

🆘 Support

  • Documentation: See links above
  • Issues: GitHub Issues
  • Discussions: GitHub Discussions

Version: 1.0.0
Author: KI-Kraft
Requires: WordPress 6.4+, PHP 8.1+