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.

Embed GitBook Assistant into your product or website
Embed GitBook Assistant into your product or website

Choose your integration method

Pick the approach that matches your setup:

  • Script tag – Drop in a <script> tag for the fastest setup

  • Node.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:

  1. GitBook Assistant is enabled for your docs site (Settings → AI & MCP)

  2. Your docs are published and accessible at a URL (e.g., https://docs.company.com)

  3. You have the embed script URL from your site settings (Settings → AI & MCP → Embed)

What's next?

Choose your embedding method above, then explore:

Last updated

Was this helpful?