Rapls AI Chatbot add an AI chatbot to your site with OpenAI, Claude, Gemini, or OpenRouter. Includes site learning, knowledge base, and web search.
OpenAI:
* GPT-5.2, GPT-5.1, GPT-5 series (Latest generation)
* GPT-4.1 series (Long context, 1M tokens)
* GPT-4o, GPT-4o-mini (Multimodal)
* o1, o3, o4-mini (Reasoning models)
Anthropic Claude:
* Claude Opus 4.6 (Most powerful)
* Claude Sonnet 4.5 (Recommended — fast and powerful)
* Claude Haiku 4.5 (Recommended — fastest)
* Claude Opus 4.5, Opus 4.1, Sonnet 4, 3.7 Sonnet
Google Gemini:
* Gemini 3 Pro/Flash (Preview, latest)
* Gemini 2.5 Pro/Flash (Recommended)
* Gemini 2.0 Flash (Stable)
* Gemini 1.5 Pro/Flash (Legacy)
OpenRouter:
* Access 100+ models from multiple providers through a single API key
The dashboard provides an at-a-glance overview of your chatbot’s activity:
AI Settings — Configure your AI provider, model, and API key. Enable vector search (RAG) with embedding provider. Set up MCP server with API key generation and Claude Desktop configuration example.
Chat Settings — Customize bot name, avatar (emoji or image), welcome messages (13 languages: English, Japanese, Chinese, Korean, Spanish, French, German, Portuguese, Italian, Russian, Arabic, Thai, Vietnamese), system prompt, response language, message history count, feedback buttons, and API quota error message. Advanced: context prompts for knowledge matching, Q&A format, and site learning; feature prompts for regeneration instructions, good/bad example learning, and conversation summary.
Display Settings — Choose from 6 free themes (Default, Simple, Classic, Light, Minimal, Flat). Configure badge position (4-corner grid), margins, primary/secondary colors, mobile display, Markdown rendering, typing indicator, maximum input length, page exclusion, footer text, and cross-site embed options (script or iframe).
Security Settings — Enable reCAPTCHA v3 with site key, secret key, and score threshold. Configure access control: consent strict mode, rate limiting, Cloudflare integration, reverse proxy trust, reCAPTCHA failure mode. View security diagnostics (read-only): allowed origins, trusted proxies, IP detection, API key status, WP Consent API, rate limiting, reCAPTCHA, SSL/TLS, CSRF.
Data Management — Enable/disable conversation history with configurable retention period. Import/export settings (optionally including knowledge base). Reset all settings to defaults.
The plugin crawls and indexes your published content for context-aware AI responses:
With vector embedding enabled, hybrid search combines keyword matching (40%) and vector similarity (60%) for better retrieval accuracy.
The free version is fully functional with no artificial limits — you pay only your own AI API costs. An optional Pro add-on is available for business-oriented features.
What Free includes:
What Pro adds:
Learn more at raplsworks.com
This plugin connects to the following external third-party services. No data is sent to any service until you configure an API key and enable the feature in the plugin settings. Each service requires the site administrator to create an account and obtain API credentials. By using these services, you agree to their respective terms and privacy policies listed below.
Used when you select OpenAI as your AI provider. User messages and optionally site content are sent to generate AI responses.
Used when you select Anthropic Claude as your AI provider. User messages and optionally site content are sent to generate AI responses.
Used when you select Google Gemini as your AI provider. User messages and optionally site content are sent to generate AI responses.
Used when you select OpenRouter as your AI provider. OpenRouter is a unified API gateway that routes requests to various AI models.
Used only if you enable reCAPTCHA in the plugin settings for spam protection. The visitor’s IP address and interaction data are sent to Google for verification.
Used only if you enable the LINE integration via the Pro add-on. Connects to the LINE Messaging API for chatbot-to-LINE messaging.
The plugin includes an optional embed loader script (embed-loader.js) for embedding the chatbot on external websites via an iframe. This script does not load any external CDN resources or third-party scripts — it creates an iframe pointing back to your own WordPress site. All data processing occurs on your server.
You can disable these features in the plugin settings:
* Conversation history saving
* Site content crawling/learning
* Google reCAPTCHA verification
* Web search
When conversation history is enabled, the plugin stores:
* Chat messages (user and AI responses)
* Session identifiers
* Page URLs where chats occurred
* Hashed IP addresses (SHA-256, not reversible)
* Timestamps
Conversation data is automatically deleted after the configured retention period (default: 90 days). Administrators can manually delete conversations at any time.
Site administrators can:
* View all conversation history
* Delete individual or all conversations
* Export settings (does not include conversation data)
* Disable history saving entirely= Developer Information =
The plugin provides hooks and filters for customization:
raplsaich_system_prompt — Modify the system prompt sent to AIraplsaich_context — Modify the context from site learningraplsaich_ai_response — Filter the AI response before displayraplsaich_chatbot_enabled — Control chatbot visibility programmaticallyraplsaich_allowed_origins — Add allowed origin hosts for same-origin checkraplsaich_chat_response_data — Filter chat response data before returning to clientraplsaich_gpt5_token_multiplier — GPT-5 reasoning token multiplier (default: 4, range: 1-8)add_filter( 'raplsaich_system_prompt', function( $prompt, $settings ) {
return $prompt . "\n\nAlways end responses with a friendly emoji.";
}, 10, 2 );
add_filter( 'raplsaich_chatbot_enabled', function( $enabled ) {
// Hide on checkout page
if ( is_page( 'checkout' ) ) {
return false;
}
return $enabled;
} );
The plugin registers REST API endpoints under the rapls-ai-chatbot/v1 namespace:
Session authentication: Pass the session ID via the X-RAPLSAICH-Session HTTP header (recommended). When the header is present, any session_id in the request body is ignored (prevents APM/WAF body-logging leakage). Query string parameters (?session_id=...) are not accepted for GET requests to prevent session leakage in server access logs.
Free:
GET /rapls-ai-chatbot/v1/session — Get or create a chat sessionPOST /rapls-ai-chatbot/v1/chat — Send a message and receive AI responseGET /rapls-ai-chatbot/v1/history/{session_id} — Get conversation historyPOST /rapls-ai-chatbot/v1/feedback — Rate a response (thumbs up/down)POST /rapls-ai-chatbot/v1/regenerate — Regenerate AI responseGET /rapls-ai-chatbot/v1/message-limit — Check message limitsPOST /rapls-ai-chatbot/v1/lead — Submit lead formGET /rapls-ai-chatbot/v1/lead-config — Lead form configurationThe Pro add-on registers additional endpoints for analytics, scenarios, LINE, and more. See the Pro documentation for details.
Extension settings are stored under the extensions key in raplsaich_settings. For backward compatibility, the legacy pro_features key is read as a fallback but all new settings are written to extensions.
The plugin creates the following database tables:
{prefix}_aichat_conversations — Chat sessions{prefix}_aichat_messages — Individual messages with token tracking{prefix}_aichat_index — Site learning content index{prefix}_aichat_knowledge — Custom knowledge base entries{prefix}_aichat_leads — Lead capture dataWhen uninstalled with “Delete data on uninstall” enabled, the plugin removes all database tables, options, and transients. Without this setting, data is preserved for re-installation.
Release ZIPs are CI-verified for packaging correctness. Report any issues via the support forum.