Scairato AI Content Chat

Description

Scairato AI Content Chat adds a search-style chatbot to your site. It indexes your published content, finds the passages that match each question (semantic search) and asks an AI model to write an answer based only on them, with links to the sources.

Features

  • Semantic search (embeddings) + answer generated by an LLM (OpenAI or any OpenAI-compatible API).
  • Indexes posts, pages, WooCommerce products, events and any public custom post type; works with Gutenberg, Elementor, Avada and other builders (it indexes the rendered content).
  • Source citations with links. When the site has no answer, no sources are shown.
  • Floating launcher, Gutenberg block and the [saic_chat] shortcode.
  • 3 ready templates (classic, modern, minimal). Override the HTML/CSS from your theme: your-theme/scairato-ai-content-chat/<template>/.
  • Extra sources: teach the chat information that is not in your posts (address and opening hours in the footer, ACF options, fixed text) by reading a page of your site with a CSS selector.
  • Complete lists and counts: questions such as “list all products for pastures” use your categories and return every item.
  • Automatic (WP-Cron) or manual reindexing (admin screen or WP-CLI).
  • Question history in the admin, with CSV export and configurable retention.
  • Usage limits per visitor and per day to control costs.
  • WP-CLI: wp saic status | index | sources | index-post | delete | clear | search | ask | history
  • Translation-ready (translate.wordpress.org). The chat answers in the visitor’s language.
  • Supports reasoning models: leave “Temperature” empty; optional “Reasoning effort” and “Max output tokens”.

You need your own API key from an OpenAI-compatible provider. The plugin does not include or resell any AI service.

External services

This plugin connects to an AI provider that you configure. By default it is OpenAI (https://api.openai.com/v1). You can point it to another OpenAI-compatible endpoint in the settings.

What is sent and when

  • When indexing (after you publish or edit content, on a manual reindex, or via WP-CLI): the public text of your published content (title, text, excerpt, categories and the custom fields you list in the settings) and the text of the “Extra sources” you configure, to create embeddings (/embeddings).
  • On each visitor question: the question, the most relevant passages from your content, the last few messages of the conversation (if enabled) and the current date, to generate the answer (/chat/completions) and to create an embedding of the question (/embeddings).
  • Your API key is sent to the provider for authentication. It is stored in your database (or defined in wp-config.php with SAIC_OPENAI_API_KEY) and is never shown again in the admin.

No data is sent until you enter an API key.

Provider terms (OpenAI)

  • Terms of use: https://openai.com/policies/terms-of-use
  • Privacy policy: https://openai.com/policies/privacy-policy

If you use another provider, check its terms and privacy policy. You are responsible for informing your visitors that their questions are processed by an AI provider (a suggested text is added to the WordPress privacy policy guide).

The “Extra sources” feature may also request pages of your own site (as a logged-out visitor) to read their text; it never requests other domains.

Privacy

Visitors’ questions are sent to the configured AI provider. If the history is enabled, questions and answers are stored in your database with an anonymous identifier (IP hash) and, for logged-in users, their user ID, for the retention period you choose. A suggested text is added to the privacy policy guide (Settings > Privacy).

Screenshots

Blocks

This plugin provides 1 block.

  • Scairato AI Content Chat AI-powered search chatbot based on your site content.

Installation

  1. Upload the plugin to /wp-content/plugins/scairato-ai-content-chat/ or install it from the Plugins screen, then activate it.
  2. Go to Scairato AI Content Chat > Settings, enter your API key and choose the content types to index.
  3. Go to Scairato AI Content Chat > Index and click “Reindex changed items”.
  4. Show the chat: enable the floating button in the settings, add the “Scairato AI Content Chat” block, or use the shortcode [saic_chat].

FAQ

Do I need an API key?

Yes. Create one with your AI provider (OpenAI by default) and paste it in the settings. Usage is billed by the provider.

Which models work?

Any embeddings model and chat model offered by an OpenAI-compatible API. Reasoning models are supported: leave “Temperature” empty.

The chat cannot find my address, opening hours or other information from my theme.

Use Scairato AI Content Chat > Extra sources: add a fixed text, or read a part of a page with a CSS selector (for example footer .contact) and click “Reindex sources now”.

The chat does not know the dates of my events.

Add the custom field names (for example _EventStartDate) in Settings > Extra custom fields and reindex.

Where is the index stored?

In two tables of your own database ({prefix}saic_chunks and {prefix}saic_log). Nothing is stored outside your site except what the AI provider receives (see “External services”).

How do I remove everything?

Check “Delete index, history and settings when the plugin is deleted” in the settings, then delete the plugin.

Does it use the WordPress AI Client?

Not yet. The plugin needs embeddings to search your content, and the AI Client in WordPress 7.0 and 7.1 does not provide an embeddings API, so it connects directly to the OpenAI-compatible endpoint you configure. See the External services section.

Can I customize the look?

Yes: pick one of the three templates, set the primary colour, copy a template folder to your-theme/scairato-ai-content-chat/<template>/ to change its HTML/CSS, or use the available filters (saic_system_prompt, saic_template_data, saic_response, saic_search_hits, saic_is_indexable).

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Scairato AI Content Chat” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3.7

  • Fix: generic questions such as “What services do you provide?” could return “not found” when every passage scored just below the minimum similarity. The search now retries with a lower threshold and lets the model decide.
  • The minimum similarity setting accepts a decimal comma and is limited to 0.6; higher saved values are capped when searching.
  • WP-CLI: wp saic search --min=<score> shows raw scores; wp saic status also shows the embeddings model and minimum similarity from the settings.

1.3.6

  • Plugin renamed to “Scairato AI Content Chat” (new slug and text domain).
  • Removed the custom CSS and JavaScript settings; style the chat with the template options, the primary colour or a template override in your theme.
  • The shortcode is now [saic_chat] and the block is saic/chat (prefixed names).
  • Translation files are no longer bundled; translations are delivered through translate.wordpress.org.

1.3.5

  • Plugin Check fixes: prefixed template variables, documented core hooks, translations loaded without the discouraged function.
  • Tested up to WordPress 7.1.

1.3.4

  • New “Help” page in the admin: overview and differentiators, quick start, display options (templates, modes, shortcode attributes), Extra sources guide, question types, WP-CLI reference, developer hooks and troubleshooting.
  • Settings page now links to the Help page; “Help” link added to the plugin list.

1.3.3

  • Security: pages read by “Extra sources” now follow redirects one hop at a time and every hop must stay on your own site (previously the request to a redirect target was sent before it was checked).
  • Chat widget: protocol-relative links (//host) are no longer turned into links; citations up to [999] are supported.
  • New readme.txt with the “External services” disclosure required by WordPress.org; License URI in the plugin header.

1.3.2

  • Coding-standards cleanup (PHPCS): nonce handling notes in the source preview, SQL placeholder notes, minor string fix.

1.3.1

  • Security hardening from a coding-standards review: sanitized the preview URL and client IP inputs, explicit nonce notes on AJAX handlers, safer pagination/filter parsing in the history screen.
  • Code quality: file headers, translator comments, no globals overridden by templates, reserved parameter names renamed.

1.3.0

  • When the answer says the information was not found, no sources are shown (and stray citations are removed). The model is asked to flag this with a marker; a phrase check is the fallback.
  • Category lists now show clickable links and no repeated “Sources” block.

1.2.9

  • Questions that only ask to list or count the items of a category (“how many products for pastures?”) are answered by the plugin itself: exact count and complete list, no model call.

1.2.8

  • Category lists: the plugin now builds the complete list itself (the model only writes the introduction), so no item is omitted and the count is exact.

1.2.7

  • Complete category lists: the model is told the exact number of items and not to filter them by their text.

1.2.6

  • List questions that name a category, product line or other taxonomy term of your site (“how many products for pastures?”) now return ALL the items of that term, so lists and counts are complete. Disable with the saic_term_expansion filter.
  • List questions are answered in the language of the question.

1.2.5

  • Fix: a post whose chunks were missing from the index is now reindexed even when its stored hash is unchanged.

1.2.4

  • Translations (pt_BR, es_ES) for the “Items for list questions” setting.

1.2.3

  • Fix: list questions (“list all products…”) now use the “Items for list questions” setting: more distinct pages are retrieved, one excerpt each, preferring the content type named in the question.

1.2.2

  • The chat now receives today’s date, so questions such as “what is the next show?” can be answered by comparing dates.

1.2.1

  • Extra sources: warnings when a configured WordPress option is missing, empty, blocked or looks like a CSS selector.
  • Extra sources: new “Indexed sources” table showing the chunks created by each source.

1.2.0

  • New: “Extra sources” (Scairato AI Content Chat > Extra sources). Teach the chat information that is not in your posts: fixed text entries, text read from a page of your site with a CSS selector (for example the footer address), site name/tagline/address, and extra WordPress/ACF options.
  • New: wp saic sources command; sources are reindexed in the background after saving and only when they change.
  • Database: chunks table gains doc_key, doc_title and doc_url columns (updated automatically).

1.1.1

  • Fix: translation files (.mo) were not loaded on WordPress older than 6.5 (invalid hash table offset in the .mo header).

1.1.0

  • Source strings in English; translations for pt_BR and es_ES; locale-aware dates in the admin.
  • New settings: reasoning effort and max output tokens; temperature is empty by default.
  • Clearer error message when the API rejects a model parameter.
  • Floating shortcode is printed in the footer; launcher assets are enqueued early.

1.0.0

  • First release.