Get Started
Use the Webchat injection script to add a bot to your website.
Webchat makes it easy to embed a bot on your website. If you self-host your website, just follow the instructions on this page.
You will need:
- A published bot
- Basic familiarity with HTML
1
Get your embed code
To embed a bot a bot on your website, you need the bot’s Webchat embed code. You can get the embed code from either the Studio or the Dashboard.
- Select Share in the upper-right corner.
- Select Configure, then copy the
script
tags:
- Select Share in the upper-right corner.
- Select Configure, then copy the
script
tags:
- 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 Embed code:
2
Add to your website
Next, add the Webchat embed code to the head section of your website’s HTML. For example:
index.html
3
You’re all set! Open your website and start chatting with your bot. It should look something like this:
Done! Your bot is now live on your website.
Next steps
Now that you’ve added your bot, try styling it to match the rest of your website’s user interface.
Was this page helpful?