How to create a website widget
A website widget adds a chat button to your website, so visitors can start a conversation through your connected channels.
Before you start
You need:
- The Owner or Admin role.
- At least one connected channel. See How to add a channel.
- Access to your website's code, to paste the install code.
Steps
- Go to Settings > Website widgets.
- Click Create widget. The New widget page opens, with a Widget preview that updates as you edit.
- Under General:
- In Name, enter a name. Only your team sees it.
- Keep Show widget on chosen website on.
- In Position on page, choose Bottom right or Bottom left.
- In Button color, pick a color or enter a hex code, for example
#2563eb.
- Under Origins, in Allowed websites, enter each website where the widget can appear, one per line, for example
https://example.com. Leave it empty to show the widget anywhere the code is installed.
- Under Channels, click each channel visitors can use, for example Add +14155550199. Use the arrows to change their order, and the X icon to remove one.
- Click Create widget. The widget's page opens.
- Under Install code, click Copy code. Paste the code before the closing
</body>tag on your website.
What happens next
The widget appears in Website widgets with the status Enabled. Once the code is on your website, visitors see the chat button and can message you on the channels you chose. To change the widget later, click it, edit it and click Save changes.
Troubleshooting
The widget doesn't show on my website
Open the widget and check that Show widget on chosen website is on. If you filled in Allowed websites, check that it lists the exact address of your website, for example both https://example.com and https://www.example.com.
Use the full address, for example https://example.com
Enter each website with https:// and without a page path: https://example.com, not example.com or https://example.com/contact.
Add at least one channel
Under Channels, click a channel to add it. If no channels are listed, add a channel first.