Documentation is only as valuable as the answers users can extract from it. We're introducing the Docus AI Assistant, a native, embedded chat experience that transforms how developers interact with your documentation.
The AI Assistant searches your content and generates code examples users can copy directly. The best part? It activates with a single environment variable.
Users arrive at your docs with questions, not keywords. They scroll through navigation, guess search terms, and scan pages hoping to find what they need. Even well-organized documentation creates friction between the question in their mind and the answer on the page.
AI changes this dynamic. Instead of adapting their question to your navigation structure, users ask naturally and receive answers grounded in your actual documentation.
Docus abstracts the AI setup complexity and enables your own AI assistant chat with one environment variable.
AI_GATEWAY_API_KEY=your-api-key
That's it. Deploy your docs and the AI Assistant activates automatically. No configuration files, no API setup, no infrastructure changes.
The assistant works through Vercel AI Gateway, supporting OpenAI, Anthropic, Google, and other providers. Choose your preferred model and budget, the integration remains the same.
The AI Assistant leverages the Model Context Protocol (MCP) to give AI models direct access to your documentation. Here's the simple architecture:
/mcp that provides tools to search and retrieve your documentationAI_GATEWAY_API_KEY, AI models connect to your MCP serverThis approach prevents hallucination by grounding every response in actual content. The AI can only answer based on what's in your documentation.
The MCP protocol is an open standard that allows AI models to interact with external data sources through well-defined tools. Docus implements this automatically, you just provide the API key.
The real power of the MCP integration is extensibility. Docus uses @nuxtjs/mcp-toolkit under the hood. It allows to add custom tools that expand what the AI assistant can do beyond just searching documentation.
Want your AI to check API status, fetch live data, run code examples, or interact with your own services? Add custom MCP tools in your project:
export default defineMcpTool({
description: 'Check the current status of the API',
inputSchema: z.object({
endpoint: z.string().describe('API endpoint to check')
}),
handler: async ({ endpoint }) => {
const status = await checkEndpointStatus(endpoint)
return {
content: [{
type: 'text',
text: `API endpoint ${endpoint} is ${status}`
}]
}
}
})
The AI assistant automatically discovers and uses your custom tools. Users can now ask "Is the API down?" and get real-time answers, not just documentation.
server/mcp/tools/ using defineMcpToolserver/mcp/resources/server/mcp/prompts/Users can ask questions without leaving the page they're reading. The assistant understands the current context and can reference the page you're viewing.
Configuration is optional but powerful. Pre-populate common questions, adjust UI visibility, customize keyboard shortcuts, or disable features you don't need in the app.config.ts file.
export default defineAppConfig({
docus: {
ai: {
floatingInput: true,
explainWithAI: true,
faqs: [
{
question: 'How do I install Docus?',
category: 'Getting Started'
},
{
question: 'Can I customize the theme?',
category: 'Customization'
}
]
}
}
})
The AI Assistant automatically adapts to your documentation's language settings. All UI text translates based on user locale, and the assistant responds in the user's language.
If your docs support multiple languages, the assistant works across all of them without additional configuration. The same environment variable enables AI for every locale.
The AI Assistant integrates with how developers browse documentation:
Cmd/Ctrl+I): Bottom-of-screen chat accessible via keyboard shortcutBeyond answering questions, the assistant generates code examples based on your documentation patterns. Users can copy implementations directly from the chat without hunting through example repositories.
The assistant understands your API structure, knows your conventions, and generates examples that match your documentation style.
Your documentation content stays within your control. The AI Assistant queries your published docs, the same content publicly available on your site. No separate indexing, no data collection, no external databases.
You control the AI provider through Vercel AI Gateway, allowing you to choose models based on privacy requirements, latency needs, or cost constraints. Switch providers without changing your documentation code.
npx skills add nuxt-content/docus
/create-docs in your AI agent (Claude, Cursor, or any agent supporting skills) to generate everything automatically.Already have a Docus site? Add the AI Assistant with one environment variable:
AI_GATEWAY_API_KEY=your-api-key
Deploy and the assistant activates automatically.
The AI Assistant represents a shift in how developers interact with documentation. Instead of searching for answers, they have a conversation. Instead of parsing examples, they generate code.
We're constantly exploring new ways to make documentation more interactive and helpful. The AI Assistant is just the beginning of what's possible when you combine great documentation with intelligent tooling.
Documentation is evolving from static reference material into an interactive learning environment, and we're excited to see where this journey takes us.