Embedding
Choose the embedding method that best fits your tech stack and integration requirements
GitBook Assistant can be embedded directly into your website or app, giving your users instant access to product knowledge right where they need it.

Choose your integration method
Pick the approach that matches your setup:
Script tag – Drop in a
<script>tag for the fastest setupNode.js/NPM – Install via NPM for server-side rendering or build-time control
React component – Use prebuilt React components for seamless integration
Prerequisites
Before embedding the Assistant, ensure:
GitBook Assistant is enabled for your docs site (Settings → AI & MCP)
Your docs are published and accessible at a URL (e.g.,
https://docs.company.com)You have the embed script URL from your site settings (Settings → AI & MCP → Embed)
What's next?
Choose your embedding method above, then explore:
Using with authenticated docs – Required if your docs require sign-in
Customizing the Assistant – Add welcome messages, buttons, and suggestions
Creating custom tools – Connect Assistant to your product APIs
Last updated
Was this helpful?