AI Features
AlgoQuill is AI-native — meaning AI is not a bolt-on feature but the foundation the whole product is built on. Here is what each AI feature does and how to use it.
AI Chat Widget
Every AlgoQuill documentation site includes a chat widget in the bottom-right corner. Visitors click it, type a question in plain English, and get a direct answer with a citation to the relevant documentation page. The AI only answers from your published documentation — it never makes up information.
What it looks like to your visitors
A floating chat bubble appears in the bottom-right corner of every page. When clicked, a chat panel slides up. The visitor types their question, hits Enter, and the AI responds within a few seconds. Each answer includes a "Source: [page name]" link so the visitor can read more.
How to use it well
1. Publish enough content first
The widget only knows what's in your published documentation. If you have 1 published page, it will struggle to answer most questions. Aim for at least 5-10 well-structured pages covering your most common topics before promoting it.
2. Use clear headings (H2 and H3)
The AI uses your headings as semantic anchors. A page with ## Authentication followed by ### API Keys will get cited correctly when someone asks "how do I authenticate?". Headings without context — like just "Setup" — make citation harder.
3. Test with the questions visitors actually ask
Before launch, open your hosted docs in incognito and ask the widget the 5 most common questions you expect visitors to have. If any answer is wrong or missing, fix the source page. The widget is only as good as the docs behind it.
4. Monitor what visitors actually ask
Go to Dashboard → AI Insights to see every question asked. Questions with no good answer are gaps in your docs — fix them. Questions asked frequently mean those topics deserve a dedicated page.
Customising the widget
In Dashboard → AI Chat Config you can configure:
Embed on your own site
Add the chat widget to any external site with one script tag. Get your embed code from Dashboard → Embed Widget.
Drop this before </body>. The widget loads as a floating bubble. It works on any site — your marketing page, your app, your blog. Same AI brain, same documentation source.
AI Documentation Generation
AlgoQuill generates complete documentation pages from your codebase. It reads your actual code — not just the README — and produces structured, accurate documentation.
RAG Docs (recommended)
RAG (Retrieval Augmented Generation) works by first indexing your entire repository, then generating docs using the most relevant code chunks as context. This produces more accurate and specific output than sending the full codebase.
AI Generate (direct)
The AI Generate page lets you generate from a prompt, from GitHub directly, from pasted code, or from an OpenAPI spec. Use this for documentation that doesn't require deep code context — getting started guides, conceptual explanations, migration guides.
Generate Full Suite
The "Generate All" button in RAG Docs generates 5 pages at once: Quickstart Guide, API Reference, Components Overview, Configuration Guide, and Troubleshooting. All saved as drafts for your review.
Drift Detection
Drift detection compares your published documentation against your current codebase and identifies mismatches. It catches four types of issues:
Go to Drift Detection in the dashboard and click Run Analysis. Results show the specific page affected, the specific code file that caused the issue, and a suggested fix.
AI Insights
AI Insights tracks what visitors ask the chat widget and uses that data to identify gaps in your documentation. The most valuable metrics: