Skip to main content

Overview

Ansa helps documentation teams:
  • Provide instant answers from your docs
  • Reduce support tickets for documented topics
  • Surface relevant articles naturally
  • Identify documentation gaps from user questions
  • Handle questions your docs don’t cover gracefully
Documentation assistant

Knowledge Base Setup

Indexing Your Documentation

Ansa supports multiple ways to index docs: Web sources

Web Crawling Tips

When crawling documentation sites:
  1. Start from the docs root (e.g., docs.yoursite.com)
  2. Set appropriate depth — Most docs need 3-5 levels
  3. Exclude irrelevant paths — Changelog, release notes (unless needed)
  4. Re-sync regularly — Set up scheduled syncs for updated content
Use the auto-detect feature during onboarding. Ansa automatically discovers docs pages at /docs, /documentation, /help, /guides, and /api.

Structuring Content for Best Results

Good documentation indexing: ✅ Clear headings and subheadings ✅ Concise paragraphs ✅ Code examples with context ✅ Descriptive link text Avoid: ❌ Single-page docs with everything ❌ Heavily nested accordions (may not crawl) ❌ Content loaded via JavaScript (use static/SSR)

Agent Configuration

System Prompt for Documentation

Temperature Settings

Model Selection

For documentation assistants:

Widget Configuration

Suggested Messages

Guide users to common topics: Widget customization Configure suggested messages for quick access:

Placement

For documentation sites:

Triggers for Documentation

Engagement on Complex Pages

Help users on lengthy or complex docs:

Search Page Fallback

Engage users who might not find what they need:

Handling Unknown Questions

When the agent can’t find an answer in the docs:

1. Honest Acknowledgment

System prompt should include:

2. Fallback Form

Create a form for questions that need human help:

Identifying Documentation Gaps

Review Low-Confidence Conversations

Use the analytics dashboard to find:
  • Questions with low confidence scores
  • Repeated questions not well-answered
  • Topics users ask about that aren’t documented
Analytics

Create Q&A Pairs

For frequently asked questions not well-covered: Q&A sources
  1. Go to Knowledge Base → Q&A
  2. Add the exact question users ask
  3. Provide the ideal answer
  4. These get high priority in searches

Integration with Doc Platforms

GitBook, Docusaurus, Mintlify

Web crawl your public docs URL. Ensure:
  • Content is server-rendered
  • No robots.txt blocking
  • Sitemap available for best coverage

Notion, Confluence

For internal docs:
  1. Export as PDF or markdown
  2. Upload via file sources
  3. Set up periodic re-uploads for updates

API Reference (OpenAPI)

Upload your OpenAPI/Swagger spec as a file source. The agent will understand:
  • Endpoints and methods
  • Request/response schemas
  • Authentication requirements

See Also