Embed in your product
Embed your documentation in your product or website using the Docs Embed.
The Docs Embed is a powerful window into your product knowledge that you can add to any product or website. Users can ask questions to the GitBook Assistant, search your docs, or browse pages directly, without leaving your product. You can open the embed with a button, put it in any component you want, or control it completely programmatically.

Overview
The Docs Embed can contain three tabs:
Assistant: The GitBook Assistant - an AI-powered chat interface to help users find answers
Search: A search-focused surface for quickly finding pages and asking scoped questions
Docs: A browser for navigating your documentation site
All tabs are enabled by default. If you set tabs, the embed shows only the tabs you list.
You can customize and override the default configuration with custom actions, tools, suggested questions, Authenticated Access, and more.
Get started
Prerequisites
Before embedding your docs, ensure:
Your docs are published and accessible at a URL (e.g.,
https://docs.company.com).You have retrieved the embed script URL from your site settings (Settings → AI & MCP → Embed).
Implementation
Use our skill to quickly implement GitBook Assistant into your product using your existing stack.
Alternatively, continue reading through the docs for the approach that matches your setup:
Configuration
Customizing the Embed – Add welcome messages, custom actions, and suggestions
Creating custom tools – Connect Assistant to your product APIs
Further reading
For the complete API reference and source code, see the @gitbook/embed package on GitHub.
Last updated
Was this helpful?