AI Chat
Docsbook ships an AI chatbot trained on the content of your specific documentation. Readers ask a question, the bot searches relevant pages, reads them, and returns a streamed answer with citations.
How it works#
The chat uses a RAG flow built on tool calls. The model decides when to invoke each tool, and the UI shows the live trace of every step.
- Search — the model queries the indexed graph of your docs for relevant sections.
- Reading — it opens specific pages and quotes the text it needs.
- Answer — it composes the response and streams it to the reader via
streamdown.
Each call is logged so you can later inspect what was asked, what was retrieved, and whether the answer was useful.
Customization#
You control how the bot behaves without writing backend code:
- Suggested questions — seed the empty state with 3–5 starter prompts.
- System prompt — replace the default instruction set with your own voice and rules.
- Pre/post-LLM hooks (PRO) — transform the prompt before the LLM sees it and post-process the response before the reader sees it. See Chat Hooks.
Providers#
The default provider is OpenRouter with openai/gpt-4o-mini. You can switch to any of:
providers:
- openrouter
- openai
- gemini
- anthropicPick which model runs your chat from the workspace settings (Pro plan and above) — it runs on Docsbook's key and comes out of your AI budget at that model's price.
Bring your own API key from the workspace settings (Business and Scale plans) — costs charged by the upstream provider are billed to your key, and nothing is deducted from your Docsbook AI budget.
Limits#
AI chat runs on every plan. Plans differ by the monthly AI budget, not by a feature switch. The budget is per account and shared across every paid project on it.
| Plan | AI chat |
|---|---|
| Free | Included — $0.15/month AI budget |
| Pro | Included — $15/month AI budget; pick which model runs your chat |
| Business | Included — $45/month AI budget; can bring your own API key & model |
| Growth | Included — $84/month AI budget |
| Scale | Included — $225/month AI budget, the largest of any plan |
Usage is deducted in money, not tokens: each answer is charged at the real price the provider charges for the model that served it, plus a 20% markup. When the budget runs out, paid plans keep working and bill the rest as metered overage up to a cap you control (default $20/month); Free stops at its budget.
Why it matters#
Teams using Docsbook AI Chat deflect 847 support tickets per month on average — readers find answers without opening Slack or email.
Pricing#
AI Chat is available on all plans, including Free — it's limited by the monthly AI budget, which grows from $0.15 on Free to $15 on Pro (monthly, 7-day free trial) and $45 on Business (monthly, 14-day free trial), with Growth at $84 and Scale at $225. Business can additionally bring its own provider API key and model.
Related#
- Chat Hooks — Inject and post-process the LLM pipeline.
- MCP Server — Manage chat settings from Claude Code.