Add Chat Button to GitBook
Copy page
Integrate Inkeep's chat button into your GitBook documentation for real-time user assistance.
What is GitBook
GitBook is a static site generator for docs.
Get an API key
Follow these steps to create an API key for your web assistant.
Find your organizationId and integrationId
To find your organizationId:
- Go to the Inkeep Dashboard
- Go to the Settings tab (under the Organization heading)
- Copy the
IDfield
To find your integrationId:
- Go to the Inkeep Dashboard
- Select your project under Projects
- Go to the Assistants tab
- Select your assistant
- Copy the
IDfield
Installing widget for your website
- Navigate to GitBook
- Click Install
- After installation, navigate to Docs sites tab and enable the widget for your desired site
Initialize the widget
Navigate to the Configuration tab to customize your settings.
Specify the version of the widget to use in the Inkeep SDK Version field. For example:
Configure the widget in the Settings (JSON) field, valid JSON is required, you can validate your JSON using an online tool like JSONLint:
Gitbook caches this configuration so if you edit the configuration settings it may take some time for the new settings to take effect, you may try "re-saving" the configuration a couple of times to force a refresh.
For a full list of customizations, check out the Chat Button documentation.
Positioning
We support customization of styles via custom css in baseSettings, you can style "Ask AI" button by targetting it's class as so:
You can find more information in the Custom Styles documentation.