Use case
Ask AI on your documentation
Your documentation is where people go when they are stuck. A question rarely maps to one page: so they scan, open tabs, search again, and some give up.
Last updated: November 9, 2026
People do not want to search; they want to ask. The answer they need is usually spread across a guide here, a reference entry there, and a changelog note from last month. An assistant on your documentation site lets them ask in their own words and get an answer with citations back into your pages, without leaving the page they were reading.
The work is not in the chat box: it is in what sits behind it. Once your documentation is indexed, the same corpus answers through a widget, an API call or an MCP server, and you can add the other surfaces later without re-indexing anything.
Ways to build this
Three surfaces, depending on how much of the interface you want to own.
- Deploy the website widget. One script tag on your documentation site puts a chat bubble in the corner, answering with citations into your pages. This is the shortest path and needs no frontend work: see Website Widget.
- Build the interface yourself. The REST API exposes the same retrieval and the same answers, so you can put the assistant anywhere in your own UI. The streaming endpoint returns Server-Sent Events, which is what the widget itself consumes: see API Reference.
- Let coding agents search it. If your audience works in an editor, a public MCP server lets Claude Code, Cursor and other MCP clients search the documentation directly: see MCP server.
What to index
Your public product knowledge. Two ingestion paths exist: files and websites.
The documentation site goes in through the web crawler (POST /api/upload/website), which follows internal links up to a page limit you set. API specifications, changelogs and reference pages living in a repository can come in through the GitHub or GitLab connector instead, which keeps paths and Markdown structure intact.
Keep this in an external project: the widget and any public MCP server only serve external projects, and an internal one would answer a public visitor with content they should not see. See Projects & visibility.
Resources
- Quickstart - index a first source and get an answer, in five minutes.
- Website Widget - the script tag, its attributes, and the templates it ships with.
- The retrieval pipeline - why an answer came out the way it did.
