GoldenRetriever AI Chat

Descripció

GoldenRetriever AI Chat turns your WordPress site into a 24/7 AI advisor that talks like you and answers visitor questions grounded in your own content. Drop a chat widget on any page, or flip on the site-wide floating bubble. Your visitors get answers about your products, policies and posts in seconds — no live-chat staffing, no monthly per-message bills, no third-party service holding your conversation history.

You bring your own Anthropic API key for Claude. The plugin sends your visitors’ messages and a system prompt grounded in your site content directly to Anthropic — never to a SaaS vendor in the middle. Conversations are rate-limited, capability-gated and origin-checked at the REST layer; the API key is encrypted at rest with AES-256-GCM tied to your WordPress salts.

Your content already has the answers

You’ve spent years writing posts, pages, FAQs and policies. Most visitors never read them — they scan for a few seconds, don’t spot what they came for, and leave, straight past the answer you already wrote.

GoldenRetriever AI Chat fixes that. When a visitor asks a question, it finds the relevant passages in your own content and answers from those — instantly, in plain language, and it shows which of your pages the answer came from. The answer was already buried in your site; the plugin fetches it. There’s no knowledge base to rebuild, nothing to retrain, no copying and pasting your content into a separate tool.

And because every answer is drawn only from your own published content, the advisor stays grounded in what you actually said — it isn’t inventing facts or pulling from the open web. That retrieve-then-answer method is the same principle behind today’s most reliable AI assistants: find the right source first, then answer from it.

Built for non-technical site owners. Five-minute setup from «install» to «ask my first question.» Native WordPress UI, Gutenberg block, classic shortcode, sensible defaults for every option, and a built-in Test Chat panel so you can sanity-check the advisor before any visitor sees it.

Features in this free release

  • Streaming Claude chat — Server-Sent Events flow tokens to the visitor as Claude generates them.
  • Encrypted BYO API key — Your Anthropic key is encrypted with AES-256-GCM at rest, tied to your WordPress salts. Only the last four characters are ever shown in the UI; the plaintext is never echoed back.
  • Three placements — site-wide floating bubble, Gutenberg GoldenRetriever AI Chat block, or [grchat_chat] shortcode; inherits your theme’s colours and fonts automatically.
  • Theme-inheriting widget — picks up --wp--preset--color--primary and your body font where the theme exposes them; falls back to a neutral palette.
  • Site-grounded answers from your own content — posts and pages (including shortcode and page-builder output) are rendered and indexed, so the advisor retrieves the relevant passages from your site before it answers.
  • Incremental updates on save — the index updates automatically when you publish or update a post; no manual re-index needed for routine changes.
  • Resumable «Reindex all content» job — a one-click full reindex with a live progress bar; safe to stop and restart at any time.
  • URL and file knowledge sources — administrators can add a public URL (SSRF-guarded via wp_safe_remote_get()) or upload .txt / .md files to extend the knowledge base.
  • Configurable maximum response length — cap token usage per reply to control cost.
  • Signed-token + rate-limited public chat endpoint — the anonymous front-end chat endpoint is protected by a short-lived signed request token; per-IP and global rate limits (both filterable) stop abusive traffic.
  • Advanced prompt editing with reset — edit the system prompt in the admin, inject important links (booking URL, contact page, support email) automatically into every conversation, and reset to the shipped default with one click.
  • Important links injection — the advisor automatically weaves your booking URL, contact page, and support email address into answers; no manual prompt editing required.
  • Email me this chat — visitors can email themselves the conversation transcript from inside the widget. Consent-aware: the visitor’s email is stored in your site’s own database only when they opt in (not sent to any external service). Administrators can view captured leads in wp-admin, export them as a CSV from the Leads tab, and the table is fully covered by WordPress’s built-in privacy exporter and personal-data eraser tools.
  • Leads tab — paginated list of visitors who opted in to receive their transcript, with CSV export and injection-safe column handling. Pro routes leads to your inbox or CRM with full conversation context.
  • Bug report — the Support tab lets you send a pre-filled diagnostics report to the support team via your own email client (mailto), with recent log entries attached. No data leaves your server until you click Send in your email app.
  • Refer a friend — one-click referral link from the Support tab (draft copy shipped; final wording is a pending decision).
  • Optional «Get your own» widget link — a small, configurable attribution link in the widget footer that drives word-of-mouth. Toggle it off from the Appearance tab.
  • Full uninstall cleanup — removing the plugin drops all plugin-created tables and options; no orphaned data.

How it works in three steps

  1. Install the plugin and activate it. WordPress redirects you straight to the Settings tab on first run.
  2. Paste your Anthropic API key, pick a Claude model (Sonnet, Opus or Haiku), and save. The key is encrypted before it hits the database.
  3. Decide where the chat lives — flip Floating widget on for site-wide, or drop the [grchat_chat] shortcode / GoldenRetriever AI Chat block on any page.

What’s coming in GoldenRetriever AI Chat Pro

The free version is the chat surface. Pro adds OpenAI and Gemini providers, multi-persona advisors, PDF/DOCX/CSV file knowledge with embeddings retrieval, lead routing to your inbox/CRM with full conversation context, and white-labelling — all as a separate plugin you install alongside the free version. No data migration, no breakage.

External services

This plugin connects to third-party services that you configure and pay for
directly with your own API keys. It includes no central service operated by us.

  1. Your chosen AI provider (Anthropic Claude — api.anthropic.com).
    When a visitor sends a chat message, the plugin sends the conversation and
    the relevant excerpts of your site content to the AI provider you configured,
    using the API key you entered, and streams the reply back. This happens only
    on an explicit chat action. Data sent: the visitor’s messages and the matched
    site-content excerpts. Anthropic terms: https://www.anthropic.com/legal/commercial-terms
    — privacy: https://www.anthropic.com/legal/privacy

  2. Administrator-added knowledge-source URLs (your server the URL you enter).
    When a site administrator adds a URL as a knowledge source on the Knowledge
    tab, the plugin fetches that URL directly from your server (using WordPress’s
    built-in wp_safe_remote_get(), which blocks private/internal addresses). The
    request goes from your server to the public URL you entered; no data is sent
    to any third party in the process. Only administrators (manage_options) can
    add or refresh sources.

  3. «Email me this chat» lead capture (your site’s database only).
    When a visitor opts in to receive a transcript of their chat conversation
    by email, the plugin stores their email address in your site’s own
    database (table wp_grchat_leads). No data is sent to us or any third
    party. The transcript email is sent via your site’s own wp_mail() function,
    using your server’s configured mail transport. The visitor’s email address
    is stored only with their explicit consent, and only on your own server.

  4. Freemius — licence management and the in-admin upgrade path (optional, opt-in).
    So you can browse and buy the paid add-on (GoldenRetriever AI Chat Pro) from
    your WordPress dashboard, this plugin bundles the Freemius SDK. On activation
    it shows a one-time connection screen that you can SKIP — the plugin is fully
    functional without it and never requires a Freemius account. Only if you opt
    in does Freemius receive basic environment data to manage licensing and
    updates: your site URL, the administrator’s name and email, the WordPress
    and PHP versions, and basic environment details such as your active plugins
    and theme. Skipping the opt-in sends nothing. The
    free plugin uses this connection only for the upgrade and add-on listing; the
    paid features live in the separate Pro plugin, which Freemius delivers. The
    Freemius API endpoint is api.freemius.com. Freemius terms:
    https://freemius.com/terms/ — privacy: https://freemius.com/privacy/

Apart from the administrator-initiated knowledge-source fetch (item 2) and the
optional, opt-in Freemius connection (item 4), the only outbound HTTP calls are
to your chosen AI provider, and only on explicit user action. The plugin does
not use embeddings (Anthropic provides no embeddings API); semantic/embeddings
retrieval is a separate Pro feature, not in this free plugin.

Captures

Blocs

Aquesta extensió proporciona 1 bloc.

  • GoldenRetriever AI Chat

Instal·lació

  1. From your WordPress admin, go to Plugins Add New, click «Upload Plugin», choose the .zip and click Install Now. (Or unzip into /wp-content/plugins/.)
  2. Activate GoldenRetriever AI Chat through the Plugins screen. WordPress will redirect you to Settings GoldenRetriever AI Chat on first run.
  3. Paste your Anthropic API key (get one at https://console.anthropic.com/), pick a model, set a system prompt, and Save.
  4. On the Settings tab, use the «Try it» panel to ask a question and confirm the round-trip works.
  5. Decide where the advisor appears: flip the Appearance tab’s Floating widget on for site-wide, drop the GoldenRetriever AI Chat block on a page in the block editor, or paste [grchat_chat title="Ask us anything"] into a post.

PMF

Do I need a developer to install this?

No. If you can install a WordPress plugin from the admin, you can install GoldenRetriever AI Chat. The setup is a paste-a-key-and-save flow; the connection test on the Settings tab tells you exactly what to do if anything is off — usually it’s a one-line message to send your hosting provider.

Which AI provider does this use?

The free version uses Claude (Anthropic). Pro adds OpenAI (GPT) and Gemini (Google) as alternative providers. You bring the API key for whichever provider you choose; there is no markup, you pay your provider directly.

How much will I actually spend on AI?

For a small business site receiving roughly 30 advisor conversations a day, expect £5–£15 per month with Claude Sonnet 4.6 (the recommended default). Claude Haiku is cheaper for higher volumes; Opus is more expensive but more capable. Anthropic bills you directly per token used.

Does this work with my theme?

Yes. The widget inherits your theme’s primary colour (via --wp--preset--color--primary) and body font where the theme exposes them, falling back to a neutral indigo + system font stack. It’s been verified against Twenty Twenty-Five and the major block themes.

Where does my data live?

Inside your WordPress database. The plugin doesn’t have a server. It doesn’t see your content, your visitors, or your conversations. The only outbound traffic for serving chat is the API call to Anthropic that you authorise by configuring an API key. (If you opt in to the optional Freemius connection for the in-admin upgrade path, basic licence/environment data also goes to Freemius — see «External services»; skipping that opt-in sends nothing.) Conversation history isn’t stored server-side beyond a per-session browser cookie that lets visitors continue a conversation across page loads.

Can I see what the advisor would say before publishing?

Yes. The «Try it» panel on the Settings tab lets you run real conversations against your configured model end-to-end, without any visitor seeing the widget. The Knowledge tab also includes a Test Retrieval panel that shows you which posts the advisor would quote for a given query.

How does the plugin protect my Anthropic API key?

The key is encrypted with AES-256-GCM tied to your WordPress salts before it’s written to the database, and the option is stored with autoload=no. The admin UI only ever displays a masked form (••••XXXX). The plaintext key is read only at the moment a chat is being served.

How does it stop visitors from running up my Anthropic bill?

The plugin enforces a per-IP rate limit (30 messages/hour by default) and a global rate limit (200 messages/hour by default) before any call to Anthropic. Both limits are filterable. The widget also caps individual messages at 4,096 characters and conversations at 20 messages.

Will my visitors’ conversations be private?

Conversations go directly from your visitor’s browser through your WordPress site to Anthropic and back. They are not logged on disk, not analytics-tracked, not sent to any third-party server we operate (we don’t have one). Anthropic processes the messages per their published privacy policy.

How does the content index work — will page builder content be indexed?

Yes. GoldenRetriever AI Chat runs each post through the_content before indexing, which executes shortcodes and page-builder block output exactly the same way WordPress renders them for visitors. This means rendered text — including prices, product names, or any text generated by shortcodes — becomes searchable and can be quoted in answers.

If you want to exclude a specific post from the index (for example, a page you keep published for internal reasons), use the grchat_index_render_content filter: return false for that post’s ID and it will be skipped during indexing.

Why doesn’t the advisor know about content on my homepage or builder pages?

Some sites store their visible copy in shortcodes or page-builder plugins (Elementor, Divi, Bricks, a «Custom Code» plugin, etc.) that only register their handlers on front-end requests. In that context WordPress leaves the shortcode tags unexpanded, so the index sees [ccj id="tabmenu"] instead of real content. The same issue applies to injected widgets — pricing tables, review carousels, WooCommerce product tabs — that are added by JavaScript or page-builder render engines after WordPress processes the raw post content.

GoldenRetriever AI Chat handles this by fetching every public page directly via its own front-end URL (a «loopback self-fetch») during indexing. The fetched page is parsed and chrome-stripped (navigation, header, footer, sidebars, scripts are all removed) so only the main content area reaches the index. The plugin then compares the chrome-stripped fetched text against the admin-context render and indexes whichever version is richer. No configuration is needed — run a full Reindex (Knowledge tab Reindex all content) and the advisor picks up the full visitor-facing copy.

The same applies to your homepage when it is a custom theme template or front-page widget rather than a WordPress page: a URL knowledge source for your homepage is created and refreshed automatically on every full reindex. The source appears in the Knowledge tab (labelled «Homepage (auto)») after the first reindex completes.

Performance note: each post requires one HTTP fetch during the reindex. On most sites (batch size 10, 5-second timeout per fetch) a batch of 10 posts takes at most ~50 seconds. The reindex is resumable — if it is slow you can let it run in the background and come back; the progress bar will be right where you left it. The same fetch also runs when you save or update a post in the WordPress editor — expect a brief extra moment before the save completes while the plugin fetches the page’s public version to keep the index current.

To opt out of the auto homepage source, add this to your theme’s functions.php or a custom plugin:

add_filter( ‘grchat_auto_homepage_source’, ‘__return_false’ );

To skip the loopback self-fetch for a specific post:

add_filter( ‘grchat_index_fetch_rendered’, function( $do, $post ) {
return 123 === $post->ID ? false : $do; // replace 123 with the post ID to skip
}, 10, 2 );

To override the richer-wins threshold for a specific post (e.g. always use the fetched version):

add_filter( ‘grchat_index_prefer_fetched’, function( $prefer, $post, $fetched_len, $rendered_len ) {
return 456 === $post->ID ? true : $prefer; // replace 456 with the post ID
}, 10, 4 );

Is there a Pro version?

Yes — Pro adds OpenAI + Gemini providers, multi-persona advisors, file-upload knowledge (PDF/DOCX/TXT/MD/CSV) with embeddings retrieval, lead routing to your inbox/CRM with full conversation context, and white-labelling. It installs as a separate plugin and works alongside the free version. The free plugin keeps working forever — Pro never holds it hostage.

Ressenyes

25 de juny de 2026
Added my CV and Spotlight behind the scenes so the AI can answer questions about me without having to publish lots of new pages
Llegiu tota la 1 ressenya

Col·laboradors i desenvolupadors

«GoldenRetriever AI Chat» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.

Col·laboradors

Registre de canvis

The complete version history is in changelog.txt. Recent releases:

0.18.5

  • Fix: knowledge-base file uploads no longer fail with a «You do not have sufficient permissions to upload files» error on sites running CleanTalk Security & Malware Firewall (and similar plugins that screen admin-area uploads). Uploads now use an AJAX endpoint those scanners don’t block; settings, sources, and the rest of the Knowledge tab are unchanged.

0.18.4

  • Upgrade: a new «Go Pro» tab lets you compare the Personal, Business, and Agency plans — sites and AI personas included — and start checkout on the tier you choose, right inside the dashboard, instead of opening a new tab and always landing on the entry plan.

0.18.3

  • Grounding: a fresh install now indexes your existing published content automatically in the background, so answers are grounded without a manual reindex; an admin notice shows index status (building / empty / ready).
  • No-hallucination: when nothing relevant is indexed yet, the assistant now says it doesn’t have that information instead of guessing from general knowledge.
  • Knowledge uploads: clearer, accurate error messages when a file can’t be added (no longer implies only .txt/.md are supported, and explains that scanned/image-only PDFs have no extractable text).
  • Maintenance: uninstall cleanup now runs via the Freemius after_uninstall hook instead of a bundled uninstall.php (no change to what gets removed).

0.18.2

  • i18n: the «provider unavailable» messages shown to administrators are now translatable.

0.18.1

  • Chat block: the persona attribute set by the Pro editor add-on now persists reliably across save and reload (declared in the block’s editor schema).
  • Reliability: if a configured provider becomes unavailable (e.g. a Pro provider after the Pro plugin is deactivated), the widget no longer answers visitors with placeholder text — it uses your Claude provider if configured, otherwise reports the assistant as temporarily unavailable.
  • Add-on provider errors now surface a useful diagnostic to admins instead of a generic «unexpected error».

0.18.0

  • Improved: the «Upgrade to Pro» links open the Pro checkout showing all plans (leading with the entry price, and offering existing customers a prorated upgrade), instead of the in-admin Add-Ons page that highlighted the top-tier price.
  • Improved: your licence and account details now appear as an «Account» tab inside the GoldenRetriever settings screen, instead of a separate WordPress submenu — including the option to change plan (upgrade/downgrade).
  • Fix: the «Exclude specific content» search on the Knowledge tab now works on sites using default (plain) permalinks. Previously the search box returned no results there, so items could not be added to the exclusion list.
  • Fix: the automatic «Homepage (auto)» knowledge source no longer shows «That URL cannot be fetched» on localhost installs and on hosts that resolve their own domain to a private address — fetching your own site is now routed through the loopback-safe path, matching the background reindex.

0.17.0

  • Fix: uploaded-file knowledge sources are no longer cited with a filename dressed up as a URL. The advisor now labels them «(uploaded file)», so it can’t tell a visitor to «visit» a non-clickable file path.

0.16.0

  • Knowledge tab: new «Exclude specific content» picker — search for any post or page by title, add it to the exclusion list, and the advisor will never surface it. Excluded items survive a full reindex.
  • REST endpoint GET /grchat/v1/admin/search-content?q=… for the title-search picker (admin-only; requires X-WP-Nonce).

0.15.0

  • New: a native in-admin upgrade path to GoldenRetriever AI Chat Pro. The free plugin now connects to Freemius as the parent product, so you can browse and buy Pro from your WordPress dashboard. The connection opt-in is entirely optional and skippable — the plugin is fully functional without a Freemius account.

0.14.0

  • Knowledge tab: the file-upload form now lists the file types your install can actually ingest, shows per-type caveats, and points to the Pro add-on for PDF/Word/CSV uploads.
  • Developer seams for the Pro lead-routing add-on: grchat_lead_captured (fires when a consented transcript lead is stored) and grchat_leads_after_table (Leads-tab render hook).

0.13.0

  • Provider-aware Settings: one unified form with a default-provider selector, the active provider’s model list, and provider-aware «configured» checks for the notices, connection test, and Try-it panel.
  • New developer hooks: grchat_settings_provider_fields, grchat_settings_after_save, grchat_provider_models, grchat_provider_configured (consumed by GoldenRetriever AI Chat Pro). Retired grchat_settings_after_provider.
  • Anchored the System prompt heading so the Pro Agents link lands on it.

0.12.0

  • Admin consolidation: the Settings tab is now the single home for your AI provider key, the system prompt, the connection test, and a «Try it» chat — the Advanced, Connection test, and Test chat tabs have been folded in.
  • New grchat_settings_after_provider action lets companion plugins (GoldenRetriever AI Chat Pro) add provider key fields directly under the Anthropic key.

0.11.0

  • Developer: retrieval re-ranking and upload-extraction extension points for the upcoming Pro plugin and third-party developers — a retrieval candidate-pool filter (grchat_retrieval_candidates), a post-retrieval re-rank filter (grchat_retrieved_chunks), and upload filters for accepted file types, extraction, and size (grchat_upload_file_types / grchat_upload_extract_text / grchat_upload_max_bytes). No behaviour changes when nothing is hooked.

0.10.0

  • Developer: extension points for the upcoming Pro plugin and third-party developers — a provider registry filter (grchat_llm_providers), per-request agent resolution on the public chat endpoint (grchat_agent_config + optional agent parameter), admin tab registration (grchat_admin_tabs / grchat_admin_tab_render), a per-request model override in provider options, and an agent attribute on the block, shortcode and floating widget (grchat_widget_default_agent) passed through to the chat request. No behaviour changes when nothing is hooked.

Older releases (0.9.6 and earlier) are listed in changelog.txt.