Skip to content

Install the widget

The embed snippet, every attribute it accepts, where it goes in each framework and site builder, the inline AI search bar, and how to verify it.

One <script> tag puts the chat widget on any site. It renders inside a Shadow DOM, so your page's CSS cannot affect the widget and the widget's cannot affect your page.

Copy the ready-made snippet from the chatbot's Install tab — it already carries your public ID.

The snippet

index.html

Put it just before the closing </body> tag, on every page the widget should appear on. A shared layout, footer partial, or template is the reliable place.

Attributes

The Install tab, with the ready-made snippet for this chatbot
The Install tab, with the ready-made snippet for this chatbot

Without data-chatbot-id the script does nothing and logs an error to the browser console:

Where to paste it

The snippet is the same everywhere — it is one plain <script> tag with no build step, no package to install, and nothing running on your server. All that changes per platform is where the tag goes.

Code you edit yourself

A Vite, Create React App, Vue, Angular, or any other single-page app has one index.html — paste the snippet before its </body> and the widget is on every route, because the tag outlives client-side navigation.

Site builders, with no code to edit

Every one of these takes the same snippet verbatim. Use the footer or end-of-body slot, never the head one: the widget mounts against the page it finds, so running it before the body exists just makes it wait.

Note:

Going through Google Tag Manager means the widget only loads for visitors whose consent banner allows that container to fire. That is usually what you want for consent management, but it does mean a blocked container is a widget that never appears — worth knowing before you debug the allowlist.

Instead of a floating bubble, the widget can render an inline answer box anywhere on the page — the same chatbot, the same knowledge, answered in place:

help.html
The widget open on a live site
The widget open on a live site

Verify it works

  1. 1
    Load the page and confirm the bubble (or search box) appears.
  2. 2
    Send a question you know the knowledge base covers.
  3. 3
    Check the conversation lands in the Inbox.

If nothing appears, check the browser console and the chatbot's allowed domains — see Domain allowlist.

Where to go next

Last updated