Skip to main content
The Puppeteer widget is a floating bubble that sits in the corner of your website. When clicked, it expands into a full chat window where users can interact with your agent. Under the hood, the widget and the chat embed use the same chat interface — the only difference is presentation. The widget wraps it in a collapsible bubble, while the embed renders it inline in a container you control. Chat widget

Installation

Add this script tag before the closing </body> tag on every page where you want the widget to appear:
That’s it. The widget will appear as a small bubble in the bottom-right corner of the page.

Configuration

Customize the widget’s appearance and behavior with data attributes on the script tag.

Position

Theming

Data

Full example

Opening a specific thread

By default, the widget creates a new thread for each session. To open an existing thread instead, generate a JWT token for that thread via the API and pass it using data-token:
See Authentication for how to generate a JWT token scoped to a thread.

JavaScript API

The widget exposes a global window.PuppeteerChat object that you can use to control it programmatically.

Open the widget

Send a message

This sends the message as if the user typed it, triggering the agent’s response.

Dashboard setup

You can also configure the widget visually from the Puppeteer dashboard under your project’s Widget Setup page. Changes made there will apply automatically — no code changes needed.