Overview
Adding your Chatbase agent to a Webflow site takes the iFrame embed code from your Chatbase dashboard plus a container on your page. The container matters: without one, the widget stretches the full width of the page.What you can do:
Put your AI agent in front of every visitor to your Webflow site, sized and placed exactly where you want it.
Before you start
- A Chatbase account with an agent. If you haven’t built one yet, follow Your first agent.
- A Webflow site you can edit in the Designer.
How to embed your agent
1
Copy your embed code
- Go to the dashboard of your Chatbase account.
- Click the agent you wish to integrate into your Webflow website.
- Click Channels in the left sidebar, then click Manage on the Chat bubble card (or Setup, if you haven’t configured it yet).
- Click Deploy and select the Website iFrame embed type. Click Copy to copy the provided HTML code.


2
Open your site in the Webflow Designer
Log into Webflow and go to your dashboard. Hover over the site you want to add the agent to and click Open Designer.
Click the file icon (Pages) in the top-left corner and select the page you want to embed the agent on.


3
Build a container for the widget
A container keeps the widget from spanning the entire width of the page.
- Click the plus button (Add elements) in the top-left corner of the Designer.
- Drag a Section element to the part of the page where you want the agent.
- Drag a Container element onto the Section.
- Drag a Div element onto the Container, and set its size so the agent stays contained.

4
Add the Embed element and paste your code
Scroll down the list of elements and drag the Embed element onto the Div you just added.
Double-click the Embed element to open the HTML editor, paste your Chatbase embed code, and click Save & Close.


You should see a preview of the agent on the live preview of your Webflow site, right inside the Designer.

Troubleshooting
The embed or agent element is the wrong size
The embed or agent element is the wrong size
Possible cause: Webflow’s layout components take some getting used to, and the Embed element inherits its size from the Div you placed it in.Solution: adjust the size of the Div that wraps the Embed element. Webflow’s official documentation on the Embed element covers embedding third-party tools in more detail.
You can customize the appearance and colors of your agent on your Chatbase dashboard. Go to your dashboard, choose an agent, click Channels in the left sidebar, click Manage on the Chat bubble card, then open the Display tab to edit Content, Capabilities, Colors, Floating bubble, and Localization.
Next steps
Customize the chat bubble
Match the widget to your brand colors, position, and copy.
