What you can do:
Before you start
- A Chatbase account with an AI agent. If you haven’t built one yet, follow Your first AI agent.
- A Webflow site you can edit in the Designer.
Choose an embed type
Add the Chat Bubble to every page (recommended)
Copy the Website widget script
- Go to the dashboard of your Chatbase account and click your AI agent.
- 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, select Website widget, and copy the script.
Paste it into Webflow's site-wide custom code
</body> tag. Code placed there loads on every page, which is where Chatbase recommends putting the script. Webflow’s own documentation on custom code shows where this field is.Publish your site
Embed the chat inline with an iframe
Copy your embed code
- Go to the dashboard of your Chatbase account.
- Click the AI 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.


Open your site in the Webflow Designer


Build a container for the widget
- 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 AI agent.
- Drag a Container element onto the Section.
- Drag a Div element onto the Container, and give it a fixed width and height so the AI agent stays contained.

Add the Embed element and paste your code



Allow your webflow.io address
If you turned on Only allow embedding the agent on specific domains in the Specific domains card of the Deploy sheet, list every address your Webflow site runs on, including the staging address. For example (example values):https://*.acme.com matches subdomains of acme.com but not acme.com itself, and an entry without https:// or http:// matches only https pages. Avoid https://*.webflow.io: it works, but it lets every Webflow site embed your AI agent. See Deploy button.
Troubleshooting
The embed or AI agent element is the wrong size
The embed or AI agent element is the wrong size
The Chat Bubble doesn't appear on the published site
The Chat Bubble doesn't appear on the published site
- Specific domains is on and the address you’re visiting isn’t listed. The browser console shows a message starting with
[Chatbase] Agentthat says the agent is not allowed on that origin. - The visitor’s country is in your blocked countries.
- Show to a percentage of visitors is on under Display > A/B testing, and this visitor isn’t in the sample.
- The script was pasted into an Embed element instead of site-wide custom code. If the builder runs that element in its own frame, the bubble is clipped to the element’s box.
Frequently asked questions
Should I use the script or the iframe on Webflow?
Should I use the script or the iframe on Webflow?
How do I size the iframe on mobile?
How do I size the iframe on mobile?
Can I move the Chat Bubble away from the corner?
Can I move the Chat Bubble away from the corner?
Can I show the AI agent on some Webflow pages only?
Can I show the AI agent on some Webflow pages only?