Wix
Add a bot to your Wix website using Webchat.
You will need:
- A published bot
- A Wix website with a plan that allows adding custom scripts
- A domain connected to your Wix website
- Familiarity with HTML (if you want to embed in an HTML div)
Visual learner?
Check out our Wix guide on YouTube, which teaches you how to build and embed a bot on your Wix site.
You have several options for embedding a bot on your Wix website:
Embed as a chat bubble
Step 1: Get your embed code
To embed a bot on your Wix website, you need the bot’s Webchat embed code. You can get the embed code from either the Studio or your Webchat settings.
From the Studio
- Select Share in the upper-right corner.
- Select Configure, then copy the
script
tags:
From your Webchat settings
- 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:
Step 2: Add to your Wix website
Next, add the Webchat embed code to your Wix website:
- Login to your Wix dashboard and select Settings in the left navigation bar.
- Scroll to Advanced Settings, then select Custom Code.
- Select + Add Custom Code. Then, paste the Webchat embed code in code snippet field.
- Check the All pages option, then select Load code once from the drop-down menu.
- Check the Body - start option.
- Select Apply.
Embed as a chat bubble
Step 1: Get your embed code
To embed a bot on your Wix website, you need the bot’s Webchat embed code. You can get the embed code from either the Studio or your Webchat settings.
From the Studio
- Select Share in the upper-right corner.
- Select Configure, then copy the
script
tags:
From your Webchat settings
- 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:
Step 2: Add to your Wix website
Next, add the Webchat embed code to your Wix website:
- Login to your Wix dashboard and select Settings in the left navigation bar.
- Scroll to Advanced Settings, then select Custom Code.
- Select + Add Custom Code. Then, paste the Webchat embed code in code snippet field.
- Check the All pages option, then select Load code once from the drop-down menu.
- Check the Body - start option.
- Select Apply.
Embed in an HTML div
You can also embed your bot in an HTML div. This is useful if you want more control over where your bot appears on your Wix site.
Step 1: Get your Botpress credentials
To embed a bot in an HTML div, you need your Botpress Client ID and Bot ID.
Get your Client ID
- Open your bot’s Workspace. In the left navigation bar, find the bot you want to embed.
- Select Webchat, then open the Advanced Settings tab.
- Copy your Client ID.
Get your Bot ID
- Open your bot’s Studio.
- Check the page’s URL. It should look something like this:
https://studio.botpress.cloud/THIS_IS_YOUR_BOT_ID/flows/wf-main
- Copy your Bot ID.
Step 2: Add to your Wix website
Next, use your credentials to embed the Webchat in an HTML div on your website.
Add an HTML div
- Login to your Wix dashboard and select Edit Site in the upper-right corner.
- Select Add Elements from the left sidebar.
- Select Embed Code, then select Embed HTML.
- Adjust your HTML div as you’d like.
Embed the Webchat in your HTML div
- Under Add your code here (HTTPS only), add the following code:
- Replace
YOUR_BOT_ID
andYOUR_CLIENT_ID
with your actual credentials.
Embed as a website
You can also embed your bot as a website via Webchat preview.
Step 1: Get your shareable link
- In Studio, select Share in the upper-right corner.
- Copy your bot’s shareable link.
Step 2: Add to your Wix website
- Login to your Wix dashboard and select Edit Site in the upper-right corner.
- Select Add Elements from the left sidebar.
- Select Embed Code, then select Embed a site.
- In the What’s the website address field, paste your bot’s link, then select Apply.
Done!
Your bot is now live on your Wix site.
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?