Visão geral

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.

  1. Search — the model queries the indexed graph of your docs for relevant sections.
  2. Reading — it opens specific pages and quotes the text it needs.
  3. 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
  - anthropic

Pick 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 — $59/month AI budget; pick which model runs your chat
Business Included — $159/month AI budget; can bring your own API key & model
Growth Included — $349/month AI budget
Scale Included — $899/month AI budget, the largest of any plan

Every paid plan's AI budget is the same amount you pay for the plan: Pro costs $59/month and includes $59 of AI usage.

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 150% markup. That budget covers roughly 15,000 answers a month on Pro with the default model, and switching to a cheaper model makes it go further. 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 $59 on Pro (monthly, 7-day free trial) and $159 on Business (monthly, 14-day free trial), with Growth at $349 and Scale at $899. Each paid budget matches that plan's price. Business can additionally bring its own provider API key and model.

  • Chat Hooks — Inject and post-process the LLM pipeline.
  • MCP Server — Manage chat settings from Claude Code.

Updated