Webflow

Step 1: Sign Into Your Chatbase Account and Set Up Your Chatbot

  1. Sign up for a free Chatbase account if you don't already have one.
  2. Log into your Chatbase account and navigate to the bot creation page.
  3. Provide training data for your new bot by uploading sources like text snippets, documents, website content, or Q&A pairs.
  4. Train and test your bot in Chatbase until it responds accurately to queries.

Here is a step-by-step guide to building a chatbot with Chatbase.

Step 2: Copy Your Chatbot Embed Code

Once you’ve set up and tested your Chatbase bot, you’ll need the embed code to display the bot widget on your website. To do this:

  1. Access the My chatbots page of your Chatbase account.
  2. You should see a list of chatbots, click the chatbot you wish to integrate into your Webflow website, and you should be taken to the chatbot's preview page.
  3. Click on the Embed on site tab on the bot preview page.
  4. Click the Make Public button.
  5. A pop-up window will appear. Click on Copy Iframe to copy the provided HTML code from this window.

Step 3: Set Up a Container to Display Your Chatbot Widget 

Before adding the embed code to your Webflow site, you will need to create a container to display the widget. This will ensure that the widget is displayed in the correct place on your website and doesn't extend the entire width of the page.

1. To create a container, on Webflow, log into your Webflow account and go to your dashboard.

2. On your Webflow dashboard, you’ll find a list of all your website projects, hover on the website you want to add the chatbot to and click on Open Designer.

[object Object]

3. On the designer page, click on the file icon (Pages) on the top left corner of the webflow site designer and select the page you want to embed the chatbot.

[object Object]

4. Once you’ve selected the page, click the Plus button (Add elements) on the top left corner of the designer screen, and a list of available elements should come up.

5. Drag the Section element to the portion of the page you want to embed your chatbot.

6. Drag a Container element unto the Section.

7. Drag a Div element unto the Container element and set the size of the Div element to ensure that the bot will be contained within the Div and does not span the entire width of the page.

[object Object]

8. Now, scroll down down the list of elements and drag the Embed element unto the Div you added on the Webflow canvas.

[object Object]

9. Select and double-click the Embed element to reveal the HTML Embed code editor.

10. Paste the Chatbase chatbot embed code from Step 2 above and click Save & Close.

[object Object]

If all goes well, you should see a preview of the chatbot on the live preview of your Webflow website right inside the designer.

[object Object]

After completing these steps, your chatbot should be ready to serve your website visitors!


If you are having difficulties with managing the dimension of your Embed and chatbot element, it is a common problem. Webflow components take a bit of getting used to. You can follow this official Webflow documentation on the Embed element to learn more about embedding a third-party tool like Chatbase chatbot on a Webflow website.