FoliumStudio/sitewise
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
=== Sitewise — Grounded Chat Assistant & Call-back Widget === Contributors: pigeonhut Tags: chatbot, ai, customer support, call back, assistant Requires at least: 6.4 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 4.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Add an on-page assistant that answers only from your own content, plus the classic request-a-call-back form. Grounded, cheap, no SaaS lock-in. == Description == **Sitewise turns your existing pages into a chat assistant that answers visitors using only your own content** — no hallucinated competitors, no off-brand advice. It also includes the original request-a-call-back form, so visitors who would rather talk can leave their number. The plugin compiles your published content into a small knowledge corpus (the `llms.txt` / `llms-full.txt` pattern) and keeps it in sync as you publish and edit. A lightweight Cloudflare Worker answers questions strictly from that corpus, and falls back to your contact page when it does not know. = What you get = * **Grounded chat widget** — a floating launcher (or inline `[sitewise]` shortcode) that answers from your pages only. * **Self-maintaining corpus** — rebuilt automatically when you publish, edit, trash, or delete content. * **Public `llms.txt` files** — so other AI agents can read your site too. * **Hand-curation where it counts** — an orientation block and an FAQ block you write once, plus a per-page "AI summary" box. * **Request-a-call-back form** — the original Call-Me-Back feature, rewritten clean. Use the `[sitewise_callback]` shortcode or the sidebar widget; submissions are stored in your dashboard and emailed to you. = Two ways to run it = * **BYO Cloudflare (free):** deploy the included Worker to your own Cloudflare account and pay your own (tiny) inference cost. Cleanest privacy story. * **Hosted (optional):** paste a site key from a Sitewise account and let us host the Worker, with analytics and stronger models. = Privacy = By default the Worker logs no chat content — only message counts for rate limiting. Your corpus is built from already-public pages. == A note on this update (3.x → 4.0) == This plugin began life as **Call me back widget**. Version 4.0 keeps that call-back form as a built-in feature and adds the Sitewise assistant as the new headline capability. **Existing call-back users keep their widget** — enable it under **Settings → Sitewise → Call-back widget** — and gain the assistant on top. See the upgrade notice below. == Installation == 1. Install and activate the plugin. 2. Go to **Sitewise** in the admin menu. 3. **Chatbot:** deploy the bundled Cloudflare Worker (see the `worker/` folder on GitHub), paste its URL and shared secret, then click **Rebuild corpus now**. Add the floating launcher automatically, or place `[sitewise]` anywhere. 4. **Call-back form:** keep it enabled and drop the `[sitewise_callback]` shortcode on a page, or add the sidebar widget. == Frequently asked questions == = Does the assistant make things up? = No — it is instructed to answer only from your compiled corpus and to send visitors to your contact page when a question is not covered. = Do I need an OpenAI key? = No. The default Worker uses Cloudflare Workers AI. Claude and other providers are pluggable later. = I only want the call-back form, not the chatbot. = Leave the chatbot disabled under Settings → Sitewise; the call-back form works on its own, exactly as before. = Where is my content sent? = In BYO mode, only to your own Cloudflare Worker. The corpus is built from public pages and stored in your uploads directory. == Upgrade Notice == = 4.0.0 = Major update: "Call me back widget" becomes Sitewise. Your call-back form is preserved as a built-in feature (enable under Settings → Sitewise → Call-back widget) and a grounded chat assistant is added. The legacy bespoke database tables and embedded reCAPTCHA are replaced by a modern, lighter implementation; review your settings after updating. == Changelog == = 4.0.0 = * NEW: Sitewise grounded chat assistant — answers visitors from your own content via a Cloudflare Worker. * NEW: automatic `llms.txt` + `llms-full.txt` corpus generation, rebuilt on content changes. * NEW: orientation + FAQ curation blocks and a per-page "AI summary" meta box. * NEW: floating chat launcher, `[sitewise]` inline shortcode, BYO/hosted modes. * CHANGE: the call-back feature is rewritten clean — submissions are now stored as a dashboard list and emailed to the admin, replacing the legacy custom tables. * CHANGE: removed the embedded reCAPTCHA library in favour of a nonce + honeypot; bundled BebasNeue font and colpick picker dropped. * FIX: removed `error_reporting(0)` and unserialized-option patterns from the 3.x codebase. * Requires PHP 7.4+ and WordPress 6.4+. = 3.4.1 = * Legacy "Call me back widget" release (2017).