Mintlify AI Integration
Add AI chat to your Mintlify docs in minutes
About Mintlify
Mintlify is a modern documentation platform used by thousands of product and support teams to publish beautiful, searchable knowledge bases. It generates a public website from MDX files in your repository.
How BeforeQuery works with Mintlify
Everything you can do once the Mintlify integration is connected.
Automatic sitemap-aware crawl
BeforeQuery reads your Mintlify sitemap.xml, crawls every page, and normalizes content to clean markdown — stripping navigation, headers, and footers so only doc content is indexed.
Webhook-triggered re-indexing
Connect your Mintlify project's deploy webhook. Every time a new version of your docs goes live, BeforeQuery triggers an incremental sync so answers stay current without manual intervention.
Drop-in AI widget
Add the BeforeQuery widget to your Mintlify layout with one script tag. The widget respects your Mintlify theme colors and typography automatically.
Cited answers from your own content
Every answer includes links back to the exact Mintlify page and section — users click through to the source, not a generic AI summary.
How to connect Mintlify
- Step 01
In the BeforeQuery dashboard, create a knowledge base and add your Mintlify docs URL as a source. BeforeQuery discovers all pages via the sitemap.
- Step 02
Embed the widget script tag in your Mintlify custom layout, or use @beforequery/react if your docs site has a React wrapper.
- Step 03
Optionally register a deploy webhook in Mintlify pointing to your BeforeQuery knowledge base sync endpoint so the index stays up to date on every deploy.
Related integrations
Mintlify — Frequently Asked Questions
Common questions about connecting BeforeQuery to Mintlify.
Ready to connect Mintlify?
Start free. No credit card required. Connect your first integration in under 5 minutes.