Embed Webchat
Manually add Webchat to your website.
You can manually embed your Webchat as a component or an HTML <div>
.
If you just want to quickly add a bot to your website, use the Quick Start guide.
You will need:
- A published bot
- Basic familiarity with HTML
As a component
You can embed Webchat directly in your website as a component:
Get your embed code
Navigate to either the Studio or the Dashboard.
- Select Share in the upper-right corner.
- Select Configure, then copy the
src
URL in the secondscript
tag:
- Select Share in the upper-right corner.
- Select Configure, then copy the
src
URL in the secondscript
tag:
- Open your bot’s Workspace. In the left navigation bar, find the bot you want to embed.
- Select Webchat, then open the Share tab.
- Copy the
src
URL in the secondscript
tag:
Copy the script URL
Open the URL in your browser and copy the content of the page. It should look something like this:
Add the Webchat component
Insert the following HTML where you want Webchat to appear, then paste the script:
Now you can customize the styles of the parent <div>
to suit your layout.
To make Webchat fill your website’s entire screen, update the wrapper’s height
and width
properties:
In an HTML div
You can embed Webchat directly in an HTML <div>
:
Get your embed code
Navigate to either the Studio or the Dashboard.
- Select Share in the upper-right corner.
- Select Configure, then copy the
src
URL in the secondscript
tag:
- Select Share in the upper-right corner.
- Select Configure, then copy the
src
URL in the secondscript
tag:
- Open your bot’s Workspace. In the left navigation bar, find the bot you want to embed.
- Select Webchat, then open the Share tab.
- Copy the
src
URL in the secondscript
tag:
Copy the script URL
Open the URL in your browser and copy the content of the page. It should look something like this:
Add Webchat to an HTML div
Now you can embed Webchat directly in an HTML <div>
. For example:
You can also use this script in a CMS like Wix.