Install
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.zipA 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
- Download the latest release ZIP
- Upload to WordPress via Plugins → Add New → Upload Plugin
- Activate the plugin
- 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
- Navigate to Settings → Dual Chatbot
- Configure:
- Enable FAQ and/or Advisor bots
- Add OpenAI API key
- Upload knowledge base files
- Set theme and colors
- Configure privacy settings
📚 Documentation
- Privacy & GDPR - Data handling, export, deletion, retention
- Multisite Support - Network installation and configuration
- Developer Guide - API, hooks, customization
- Changelog - Version history and updates
🛡️ 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 messageGET /get_history- Retrieve historyPOST /transcribe_audio- Audio transcription
Internal: wp-json/dual-chatbot/v1/
POST /analytics/track- Track eventsPOST /client-log- Error logging
See DEVELOPERS.md for complete API docs.
🤝 Contributing
- Fork the repository
- Create a feature branch
- Write tests
- Run linters
- 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+