GitBook
Bring AI answers to your GitBook knowledge base
What is GitBook?
GitBook is a collaborative documentation platform used by teams to write internal wikis, public developer docs, and API references. It publishes content as a hosted website with a clean reading experience.
How BeforeQuery works with GitBook
Everything you can do once the integration is connected.
Space-level crawling
BeforeQuery crawls your entire GitBook space, capturing every page including nested sub-pages and variant branches.
Scheduled re-sync
Configure a sync schedule (daily, weekly, or on-demand) so your BeforeQuery index reflects the latest edits made in GitBook.
Internal and public spaces
Index public GitBook sites directly. For private spaces, use the GitBook API integration to pull content with authentication.
Citation links to exact pages
Answers include direct links to the GitBook page and heading anchor, making it easy for users to read the full context.
How to set it up
Create a BeforeQuery project and add your GitBook space URL as a source. For private spaces, provide an API token in the source settings.
Run the first crawl. BeforeQuery normalizes GitBook's page structure into clean markdown chunks ready for embedding.
Embed the BeforeQuery widget on your GitBook site using the custom HTML injection in GitBook's settings, or share the portal link with your team.
Related integrations
BeforeQuery crawls your Mintlify docs site, keeps it in sync, and answers user questions with citations.
Crawl, sync, and embed AI chat on any Docusaurus v2 or v3 documentation site.
Crawl your ReadMe docs hub and let developers ask questions with cited answers from your reference material.
Ready to connect GitBook?
Start free. No credit card required. Connect your first integration in under 5 minutes.