M
Documentation Platforms

Mintlify

Add AI chat to your Mintlify docs in minutes

What is Mintlify?

Mintlify is a modern documentation platform used by thousands of developer-focused companies to publish beautiful, searchable docs. It generates a public website from MDX files in your repository.

Integration

How BeforeQuery works with Mintlify

Everything you can do once the 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.

Setup

How to set it up

1

In the BeforeQuery dashboard, create a project and add your Mintlify docs URL as a source. BeforeQuery discovers all pages via the sitemap.

2

Embed the widget script tag in your Mintlify custom layout, or use @beforequery/react if your docs site has a React wrapper.

3

Optionally register a deploy webhook in Mintlify pointing to your BeforeQuery project sync endpoint so the index stays up to date on every deploy.

Ready to connect Mintlify?

Start free. No credit card required. Connect your first integration in under 5 minutes.