Skip to content
mango·agentby Mangosteen Studio
Walkthrough · Advanced

Put a docs-aware chat on your own site

Reproduce this website's chat: knowledge from your pages, answers that link to them.

about 20 min (estimate) 3 steps
Before you start
  • Mango Agent running
  • A docs or marketing site you control

1Make every section addressable#

Give each section of your pages a stable id, so /page#section scrolls straight to it. This site keeps all its text in one content module, and every section has an anchor.

2Generate knowledge from the content#

Write one knowledge-base entry per section, with the section URL as source_url. This site does it with a small script, pnpm kb, that writes a seed folder. Or point Crawl a sitemap at your production site.

bash
pnpm kb          # content → seed/org.json + seed/kb/mango-agent-website.json
pnpm agent:seed  # load it into the running backend
Result

Visitors ask a question and land on the exact section that explains it.