Help Center
Adding chatbot to Website

How to add your chatbot to Wix website

Last updated:

Adding a ChatLab chatbot to your Wix website lets visitors interact with your AI assistant directly on your site. This guide walks through the steps to get your embed code from ChatLab and paste it into Wix.

Before you start

Before you start, create your chatbot and make sure your Wix site is published with a connected domain. Wix documents these requirements in Embedding custom code on your site. You also need permission to edit and publish the website.

Step 1 - Copy the embed code from ChatLab

  1. Log in to ChatLab and select the chatbot you want to embed
  2. Click the Deploy tab, then select Wix from the platform panel on the right

Deploy tab with Wix selected

  1. Choose Widget for the custom-code steps below. For an always-visible chat, choose Iframe and use the separate page embed instructions below. See What is the difference between widget and Iframe? for a comparison
  2. Click Copy to clipboard

Copy to clipboard button highlighted|width=60

Step 2 - Add the code to Wix

  1. In your Wix dashboard, go to Settings
  2. Under Development & integrations, click Custom Code. Older Wix dashboards may group this under Advanced.
  3. Click + Add Custom Code at the top right
  4. Paste the copied code into the text box
  5. Enter a name for your code (e.g., "ChatLab")
  6. Under Add Code to Pages, select which pages should display the chatbot - choose All pages to show it everywhere
  7. Under Place Code in, select Head
  8. Click Apply

Adding an always-visible iframe

In the Wix Editor, add an HTML iframe/embed element to the page, paste ChatLab's Iframe snippet, and resize the element so the chat is usable on desktop and mobile. Publish the page. An iframe must be placed in the visible page layout, not in Head custom code. See Wix's guide to visible embedded content.

Verifying the installation

After saving, open your Wix site in a browser. You should see the chat icon appear in the corner of the page (for widget mode) or the chat window embedded on the page (for iframe mode). Click the icon to open the chat and send a test message to confirm everything is working.

Related articles