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/chatbot_lite/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress plugin with dual chatbot system (FAQ + member advisory)
Updates
- Add
.editorconfigfor consistent formatting (PHP 4-space, JS/CSS 2-space). - Extended error logging:
- Enabling “Debug-Log” writes to
wp-content/uploads/chatbot-debug.log. - Client errors (window errors/unhandled rejections) are captured and sent to REST
dual-chatbot/v1/client-logwhen debug is enabled.
- Enabling “Debug-Log” writes to
- Improved input validation:
- New setting “Max message length” (default 2000 chars).
- Client trims/clamps; server validates and rejects overlong inputs.
Build System
- Uses esbuild to produce
assets/js/chatbot.min.jsandassets/css/chatbot.min.css. - Commands:
npm install, thennpm run build.
API Versioning (Prep)
- REST namespaces are filterable: defaults
chatbot/v1anddual-chatbot/v1. - Filters:
dual_chatbot_api_version,dual_chatbot_api_ns_public,dual_chatbot_api_ns_internal.
Multi‑Server Support
- Rate limiting uses shared object cache when available.
X-Request-Idheader for correlation in all responses (including streaming meta).- Logging destination customizable via filters (
error_logor file path).
Performance Monitoring
- Server: inserts
perf_serverevents (latency_ms) into analytics table. - Client: sends
perf_ui(widget build time) to analytics endpoint.
Note: Enable the debug log only temporarily in production.