Step 1: Installation
You will need:
The Webchat library currently requires React 18. Make sure your project is using this version to avoid compatibility
issues.
Install the NPM package
The Webchat library is hosted onnpm
. Download it with your favorite package manager:
Obtain your Client ID
To integrate the Webchat client into your application, you need to obtain your bot’s Client ID. This ID identifies your bot and enables communication with the Webchat service. To get your bot’s Client ID:- From the Dashboard, select your bot.
- In the left navigation bar, select Webchat.
- Select the Advanced Settings tab.
- Copy the Client ID:

Step 2: Build a component
The library gives you two options for building a full Webchat experience:Option 1: Use the Webchat
component
The library provides a batteries-included Webchat component that contains most of what you’d expect when injecting Webchat.
With this approach, the only other component you need to import is the Fab. Here’s an example implementation:
App.jsx
Option 2: Build Webchat manually
If you need more customization over each part of the Webchat experience, you can build it manually using the rest of the component library. Here’s an example implementation:App.jsx
You just built your first Webchat component!
Step 3: Configure Webchat
TheWebchat
component doesn’t use the configuration set in your bot’s Dashboard. Instead, follow the steps below to add custom configuration and styles:
If you’re using the Webchat
component
If you use the batteries-included Webchat
component, use the configuration
prop to style Webchat.
You can also use any custom CSS you set in the Dashboard by manually passing their URL into the additionalStylsheetUrl
prop. To get the stylesheet URL:
- Navigate to your bot’s Dashboard.
- In the left sidebar, navigate to Files.
- Select
webchatAdditionalStyles.css
. - Copy the
url
.
If you’re manually building Webchat
If you’re manually building Webchat using the component library, use theStylesheetProvider
component to style your implementation.
Each component also has various props that you can use for other configuration options—for example, the Header
component’s configuration
prop.