<div>
. This is useful if you want to include the Webchat window in a specific section of your website.
If you just want to quickly add a bot to your website, use the Quickstart guide.
You will need:
- A published bot
- Basic familiarity with HTML
1
2
Copy the script URL
Open the URL in your browser and copy the content of the page. It should look something like this:
https://files.bpcontent.cloud/20XX/0X/0X/XX/XXXXXXXXXXXXXXXX-XXXXXXXX.js
3
Add Webchat to an HTML div
Now you can embed Webchat directly in an HTML
<div>
on your website:By default, the code above will make Webchat take up your entire screen. To change the size and position of the Webchat window, update the
bpWebchat
class.