# GhostChat — Full Documentation for AI Agents
## What is GhostChat?
GhostChat is a privacy-first live chat SaaS for websites. It provides a ~15KB embeddable chat widget that enables real-time messaging between website visitors and site owners. Unlike competitors (Intercom ~300KB, Crisp ~155KB, Tidio ~200KB, Tawk.to ~250KB), GhostChat's widget has zero impact on page speed, uses no cookies, and performs no tracking.
## Who is it for?
- Small businesses that answer their own customers — nobody's full-time job is watching chat
- Anyone running several sites who doesn't want a separate subscription for each one
- Privacy-conscious businesses that want GDPR compliance without cookie banners
- Small teams (up to 10 agents on the Team plan) that don't want per-seat pricing
- Agencies managing client sites from a single login
- Developers who want to connect their own LLM via the Bot Agent webhook API
## Features
### All Plans (Free)
- 1 site, unlimited messages, 30-day chat history
- Real-time WebSocket messaging
- Email notifications for new messages
- Push notifications (PWA)
- Gmail threading (reply from email)
- Canned responses (up to 50)
- Quick links (up to 5)
- Visitor email/name collection (optional)
- Archive/unarchive conversations
- Contact management
- Privacy mode (per-site toggle): visitor-side chat lives in sessionStorage only and wipes after 15 minutes of inactivity — built for shared or monitored computers; the dashboard keeps every conversation
- Widget shows a "Powered by GhostChat" badge (removable on the Team and Team + AI plans)
### Pro ($5/month)
- 3 sites, 1-year history
- Business hours automation (auto-away with schedule)
- Visitor page journey tracking
- WooCommerce/page visitor context (predefined setContext() keys)
- CSV contact export
- Auto-translate (133+ languages via Google Translate)
- Webhooks: message.new + conversation.resolved (full-transcript) events, per-event toggles, delivery log
- Bot Agent API (bring your own LLM)
### Pro + AI ($15/month)
- Everything in Pro, plus:
- Built-in AI Assistant (Claude Haiku) — answers visitors 24/7 from your FAQ, hands off live or by email
- The flat +$10 AI step adds only the assistant — sites, history, and seats stay the same as Pro
- Solo plan — 1 seat, no team invites
### Team ($25/month)
- Everything in Pro, plus:
- 10 sites, unlimited history
- Up to 10 team members (you + 9)
- Remove "Powered by GhostChat" branding
- Custom visitor context — any keys via setContext() API (Pro is limited to the predefined keys)
- Identity verification
- Priority support
- No AI — add it for a flat $10/mo more (Team + AI)
### Team + AI ($35/month)
- Everything in Team, plus:
- Built-in AI Assistant (~6,000 replies/mo)
- The flat +$10 AI step adds only the assistant
Pricing is a simple 2×2: pick a base plan (Pro $5 solo, Team $25 for teams) and AI is a flat +$10/mo on either (Pro + AI $15, Team + AI $35).
## AI Assistant (built-in, Claude Haiku)
On the Pro + AI ($15/mo) and Team + AI ($35/mo) plans, GhostChat includes a built-in AI Assistant that answers visitor questions 24/7 from a FAQ knowledge base you write. It runs on our servers — no API key or extra infrastructure. Setup is one click: press "Generate with AI" and GhostChat crawls your own website (up to a handful of pages) and uses Claude to draft your bot name, behavior instructions, blocked keywords, and a starter set of FAQ question-and-answer pairs, which you review, edit, and apply — so you never start from a blank knowledge base. When it can't answer (or hits an owner-defined blocked topic), it hands off: if you're available it offers to connect the visitor with you live and captures their email as a backup; if you're away it captures their name and email so you can follow up. You take over any conversation simply by replying, and the AI steps aside for good. Each plan includes a generous monthly fair-use allowance of AI replies (about 1,500/month on Pro + AI, about 6,000/month on Team + AI; only live visitor replies count, dashboard testing is free) — almost no one reaches it, and at the limit the chat still works — visitors reach you live when you're available, or leave their email when you're away, instead of getting an AI-drafted reply — resetting at the start of each month. Configure it from the "Who answers your chats?" selector on the /ai dashboard page.
## Installation
### Basic (any website)
```html
```
### WordPress
Install the GhostChat plugin from the WordPress plugin directory, enter your Site ID in Settings > GhostChat.
### React / Next.js
```jsx
```
Or use useEffect to load dynamically.
### Shopify
Add the script tag to your theme.liquid file before