Description

Jinx AI Agent is a lightweight chatbot plugin for WordPress. It allows you to create a personalized AI assistant that answers questions based on your specific content.

Unlike generic chatbots, Jinx AI Agent prioritizes your local knowledge base (managed via a dedicated “AI Knowledge” custom post type) and can also ingest external documentation via the emerging llms.txt standard.

All AI requests are made through the WordPress AI Client that ships with WordPress 7.0. You choose and configure your AI provider once under Settings Connectors; the plugin does not store any API keys itself.

External services

This plugin does not connect to an AI provider directly. Chat messages are sent through the WordPress AI Client to whichever AI provider the site owner has configured under Settings Connectors. No data is sent unless a provider is configured and a visitor sends a message in the chat widget.

Data sent per message: the visitor’s message, the recent chat history of that conversation, the system prompt and the knowledge base content (AI Knowledge entries and, if configured, the llms.txt content). The terms of service and privacy policy of the connected provider apply.

llms.txt (optional): If the administrator enters an llms.txt URL in the settings, the plugin fetches this file from the given URL (cached for 12 hours). No visitor data is sent with this request.

Features

  • Native WordPress AI: Uses the built-in WordPress AI Client. Works with any provider configured under Settings Connectors; optionally choose a specific provider and model.
  • Local Knowledge Base: Manage your FAQs directly in WordPress via the “AI Knowledge” post type.
  • llms.txt Integration: Feed your AI with a remote documentation file for even better context.
  • Fallback system: When the AI cannot answer, it can display custom WordPress widgets (e.g. contact details) directly in the chat.
  • Chat history: Optional persistent history in the visitor’s browser with configurable limit and expiry.
  • Customizable Design: Adjust accent colors, position, bot name, avatar, messages and notification sound to match your brand.
  • Abuse protection: Per-IP rate limit and maximum message length for the public chat endpoint.
  • Developer friendly: Numerous filters and actions to customize prompts, knowledge and responses.

Jinx AI Agent Pro

Jinx AI Agent is fully functional on its own. The separately available add-on Jinx AI Agent Pro (not part of this plugin) extends it with:

  • Multiple bots & personas: Create any number of bots (e.g. “Sales Assistant”, “Support”), each with its own name, welcome message and first message. Visitors can switch between bots inside the chat.
  • Display rules: Choose on which pages or posts each bot is active.
  • Knowledge categories: Group your AI Knowledge entries into categories and decide which knowledge each bot may use.
  • Bot-specific fallbacks: A separate fallback widget area for every bot.
  • Conversation logs: Optionally log all chats to the database and review the full history per session, including the system prompt used.
  • Unanswered questions: See every question that triggered the fallback and add it to your knowledge base with one click.
  • Human handover: When the AI detects that a visitor wants to talk to a human, open your live chat via a JavaScript callback or redirect to a URL (e.g. WhatsApp).

Like the free plugin, Jinx AI Agent Pro uses the WordPress AI Client exclusively.

Get Jinx AI Agent Pro at jinx-digital.com.

Usage

Knowledge Base

Add questions and answers to the “AI Knowledge” menu. The bot will automatically use these as its primary source of truth.

Fallback

If a question is unrelated to your knowledge base, the bot ends its answer with a fallback. Add widgets (e.g. contact information) to the “AI Chatbot Fallback” widget area to show them in the chat in that case.

llms.txt

Provide a URL to an llms.txt file in the settings. The plugin will fetch and cache the content using Transients to provide even more context to the AI.

Developer API

Jinx AI Agent is highly extensible. Use these filters to customize every aspect of the AI interaction:

1. General & Provider Filters

  • jinx_ai_agent_providers: Register your own custom AI provider classes (implementing Jinx\AIAgent\Providers\ProviderInterface).
  • jinx_ai_agent_llms_txt_cache_time: Filter the transient cache duration for llms.txt (Default: 12 hours).
  • jinx_ai_agent_llms_txt_content: Modify the fetched content from a remote llms.txt file.

2. Knowledge & Query Filters

  • jinx_ai_agent_knowledge_query_args: Customize the WP_Query arguments used to fetch knowledge items (e.g. to include other Post Types).
  • jinx_ai_agent_knowledge_item_title: Filter the title of a knowledge item before it’s sent to the AI.
  • jinx_ai_agent_knowledge_item_content: Filter the content/body of a knowledge item.
  • jinx_ai_agent_knowledge_base: Modify the entire aggregated knowledge string passed to the prompt.

3. Prompting & Response Filters

  • jinx_ai_agent_user_prompt: Filter the visitor’s message before it’s processed.
  • jinx_ai_agent_system_prompt: Modify the core instructions and constraints sent to the AI.
  • jinx_ai_agent_ai_response: Filter the final response after markdown parsing and before it’s displayed.

4. Limits & Requests

  • jinx_ai_agent_rate_limit: Per-IP rate limit for the chat endpoint (['requests' => 20, 'window' => 300], return an empty array to disable).
  • jinx_ai_agent_max_message_length: Maximum length of a visitor message (default 2000 characters).
  • jinx_ai_agent_request_timeout: HTTP timeout in seconds for custom providers extending AbstractProvider (default 45). Requests via the WordPress AI Client use the core filter wp_ai_client_default_request_timeout.
  • jinx_ai_agent_wordpress_ai_prompt_builder: Modify the WP_AI_Client_Prompt_Builder before the native WordPress AI request is executed.

5. Actions

These actions are extension points only. The plugin itself does not store any conversation data.
– jinx_ai_agent_log_chat: Fires after every answered message ($userMessage, $aiReply, $sessionId, $meta).
– jinx_ai_agent_log_unanswered: Fires when the AI could not answer a question ($userMessage).
– jinx_ai_agent_settings_knowledge_rows: Render additional rows in the “Knowledge & Fallback” settings tab.

Roadmap

  • [x] Native WordPress AI Client (Connectors) support
  • [x] Server-side Markdown rendering
  • [x] Persistent widget state & Sound alerts
  • [ ] Native Gutenberg block for custom chat placement
  • [ ] Voice input support

Installation

  1. Upload the jinx-ai-agent folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Configure an AI provider under Settings Connectors.
  4. Go to AI Agent > Settings to adjust the bot’s behavior and appearance.
  5. Start adding content to the AI Knowledge menu.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Jinx AI Agent” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Jinx AI Agent” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.7.0

  • Change: All AI requests now run exclusively through the WordPress AI Client (Settings Connectors). Direct OpenAI and Mistral integrations were removed; WordPress 7.0 is now required.
  • Change: Settings for conversation logging and human handover are only shown when an add-on provides them.
  • Improvement: The model actually used is passed to the jinx_ai_agent_log_chat action.
  • Improvement: Readme now only describes functionality contained in this plugin.

0.6.0

  • New: Native WordPress AI Client provider (WordPress 7.0+, Settings Connectors). Becomes the default provider when available.
  • Fix: llms.txt content was never sent to the AI.
  • Fix: Bot ID was not passed to the knowledge base query filter (Pro per-bot knowledge).
  • Fix: Unchecked checkboxes (e.g. “Enable Chatbot”) could not be saved as disabled.
  • Fix: Settings page and REST handler used different default system prompts.
  • Security: Server-side validation of the chat history (only user/assistant roles, plain text, limited length).
  • Security: Per-IP rate limit and maximum message length for the public chat endpoint.
  • Improvement: Failed llms.txt requests are cached briefly, longer default request timeout, safer uninstall queries.