AI Chatbot from Your Site Content for WordPress – Answers Only from Your Pages, with Sources
A chat widget that answers visitors only from your own pages, posts and products, links its sources, says so when the site has no answer and hands over to a person, with rate limits and spending caps.
AI Chatbot from Your Site Content adds a chat button to your WordPress site. It answers visitors only from your own published pages, posts and products (WooCommerce is optional), shows the link of each page it used, and says “I could not find this on the site” when your pages have no answer, instead of guessing.
Honest by design
Passages of your content are found for each question; below the minimum match the AI is not even asked
An answer must name its sources, or it becomes the refusal
Links to other sites are removed; only your own pages are clickable
After a refusal: an e-mail form, a WhatsApp link or your contact page
Never reads what is not public
Drafts, private and password-protected items are never read, and an item that is unpublished or protected leaves the index at once. Exclude any item with one click.
Built for a public endpoint
Security token, hidden spam field, rate limits per visitor address and per conversation
Daily and monthly spending caps, with a friendly “chat unavailable” state
Prompt-injection hardening: visitor text and site content are data; obvious tricks are blocked; an answer that leaks the instructions is replaced
E-mail addresses and phone numbers are masked in the questions before they are sent
Tools for you
A test chat with the passages found and their match, a sources screen with batch reading and progress, and an optional log (off by default, masked, no IP, retention in days, export and delete) that lists the questions your pages do not answer.
Your AI account, your costs
Works with an OpenAI-compatible service (embeddings for search by meaning) or Anthropic (search by words). The key can live in wp-config.php. AI can be wrong: test before you open the chat to everyone.
Arabic, accessible, mobile friendly
A question in Arabic gets an answer in Arabic. The widget is keyboard operable, screen-reader friendly, right to left and mobile friendly, in your colour.
Tested
183 automated checks: retrieval, refusals, injection attempts, rate limits and caps, the visibility rules, the log and its retention, permissions, uninstall.
What's included
ai-chatbot-from-site-content-for-wordpress.zip: the WordPress plugin (translation-ready, Arabic translation included)
Illustrated documentation in English and Arabic (HTML and PDF)
Licence file (GPL-2.0-or-later) and changelog
Requirements
WordPress 6.0+, PHP 7.4+ and an API key of an AI provider. WooCommerce 8.0+ is optional (to read products).
What's in the download
The files in the archive you can download after you buy.
No reviews yet. Bought this item? Be the first to review it.
Usage
Install and use it in a few lines.
// Ask the chatbot from your own code (same rules as the widget: sources, refusal, caps)$r = TQCB_Chat::ask( 'How long does delivery take?' );// $r['type'] is answer, refusal, handover or unavailable; $r['text'], $r['sources'] (title, url)// Keep some items out of the index (drafts, private items and passwords are always out)add_filter( 'tqcb_indexable', function ( $ok, $post ) { return $ok && ! has_category( 'internal', $post );}, 10, 2 );// Add a custom field to the text that is readadd_filter( 'tqcb_item_text', function ( $text, $post ) { return $text . "\n\nOpening hours: " . get_post_meta( $post->ID, 'hours', true );}, 10, 2 );// Your brand voice (keep the rules of the prompt)add_filter( 'tqcb_system_prompt', function ( $prompt ) { return $prompt . "\nUse a warm, short style.";} );// Hide the widget on some pagesadd_filter( 'tqcb_show_widget', function ( $show ) { return $show && ! is_page( 'landing' );} );// The key can live in wp-config.phpdefine( 'TQCB_AI_KEY', 'sk-...' );
Documentation
Setup, settings and troubleshooting, written by the author.
Chat widget that answers only from published pages, posts, products and chosen policy pages, with source links
Index of passages with embeddings (or words), batch reading with progress, reading again on save, exclusions
Clear refusal below the minimum match or without a source; handover by e-mail form, WhatsApp or contact page
Nonce, honeypot, rate limits per address and conversation, longest question, daily and monthly spending caps
Prompt-injection hardening, own-site links only, masking of e-mails and phones in questions
Test chat with passages and match; optional log with retention, unanswered questions, CSV export and delete; Arabic translation
Frequently asked questions
Does it answer from the internet or from general AI knowledge?+
No. It is told to answer only from the passages of your site it is given, and an answer without a valid source is replaced by “I could not find this on the site”. An AI can still misread a passage, so test it in the test chat first.
Can it read my private pages or drafts?+
No. Only published items without a password are read; drafts, private and password-protected items, the cart and checkout pages are never read, and an item leaves the index as soon as it stops being public.
Do I need an AI account?+
Yes, your own: an OpenAI-compatible service (OpenAI, OpenRouter, Azure, a local server such as Ollama) or Anthropic. You pay your provider for what you use; the plugin has no usage fees. With Anthropic passages are found by words, as it has no embeddings.
How do I keep the cost under control?+
Set the daily and monthly spending caps, the rate limits and the longest question. Questions that match nothing are refused without asking the AI, and the same first question reuses its answer.
What happens when the chatbot cannot answer?+
It says so and offers an e-mail form, a WhatsApp link and your contact page, the ones you set up. Visitors can also press “Talk to a person” at any time.
Does it work with WooCommerce?+
Yes, optionally: products are read with their price, stock, SKU, categories and attributes, and the chat can be hidden on the cart, checkout and account pages. It does not show order status or act on the cart.
Does it work in Arabic?+
Yes. A question in Arabic gets an answer in Arabic, even from English pages. The widget, the administration and the guide are in Arabic and work right to left.
Is anything stored about visitors?+
Not by default. The optional log keeps the masked questions and answers with a scrambled conversation number, no IP address, for the days you choose. Rate limits use a salted hash of the address that expires within a day.
Can visitors trick it with “ignore your instructions”?+
The plugin reduces the risk: such questions are blocked before the AI (an option), visitor text and site content are passed as data, links to other sites are removed and an answer that leaks the instructions is replaced. No chatbot can promise to resist every trick.
More from TAQNIX
App templateNew
Taqnix POS Terminal – Offline-First Point of Sale PWA for Odoo 19: Next.js Source Code with Restaurant Tables, Kitchen Tickets, Loyalty and Arabic
A point of sale for Odoo 19 that runs in the browser as an installable app and keeps selling when the network is gone: every order is saved on the device first and sent to Odoo once, with the same call Odoo's own POS uses. Variants and combos, split payments, receipts with barcode and QR, restaurant tables and kitchen tickets, dashboard, stock lookup, layaway, loyalty, English and Arabic. Full Next.js source code; no Odoo module to install.
UAE E-Invoicing (PINT AE) for Odoo 19 Community – PINT AE XML for Your ASP, Readiness Checks, UBL XSD and Schematron Validation, E-Invoice Outbox
Prepare UAE e-invoices and credit notes in the PINT AE format (Peppol PINT AE Billing 1.0.4, UBL 2.1) for your Accredited Service Provider: TIN, TRN and tax categories, readiness checks per invoice and per batch, validation against the official XSD and Schematron, an outbox with statuses, a log and XML / ZIP export. It does not send anything. Arabic included.
AI Support Reply Drafts for WooCommerce – Order-Aware Customer Reply Drafts with Fact Checks
Draft replies to customer messages on the WooCommerce order screen with your AI model, from the order facts and your own shop texts only. Missing facts become [CHECK] placeholders; nothing is sent without a click and a confirmation.
AI Product Recommender and Bundles for WooCommerce – Related Products, Complete the Look & Add All to Cart
Related products and “complete the look” bundles ranked by AI meaning similarity and what your customers bought together, with Add all to cart, a preview with the reasons, pins and exclusions.
AI Support Reply Drafts for WooCommerce – Order-Aware Customer Reply Drafts with Fact Checks
Draft replies to customer messages on the WooCommerce order screen with your AI model, from the order facts and your own shop texts only. Missing facts become [CHECK] placeholders; nothing is sent without a click and a confirmation.
AI Product Recommender and Bundles for WooCommerce – Related Products, Complete the Look & Add All to Cart
Related products and “complete the look” bundles ranked by AI meaning similarity and what your customers bought together, with Add all to cart, a preview with the reasons, pins and exclusions.
AI Post and Product Translator for WordPress & WooCommerce – Linked Drafts, Glossary & hreflang
Translate posts, pages and WooCommerce products with your own AI into linked drafts: block-safe placeholders, a glossary and do-not-translate list, a structure check that refuses broken results, outdated detection, bulk runs with a cost estimate, a language switcher and hreflang links.
AI Comment and Review Moderator – Spam, Abuse & Fake Review Filter for WordPress and WooCommerce
Score new comments and product reviews with your AI model, decide by your own thresholds, and review everything in one queue. Dry run first; nothing is ever deleted.