Skip to main content
You can add your Chatbase AI agent to a Weebly website by pasting the Chatbase Website iframe code into Weebly’s Embed Code element. The chat then sits inline on the page, in the spot where you drop the element, rather than as a floating bubble. The iframe is included on every Chatbase plan.

What you can do:

Put your AI agent in front of every visitor to your Weebly site, answering questions without them leaving the page.

Before you start

  • A Chatbase account with an AI agent. If you haven’t built one yet, follow Your first AI agent.
  • A Weebly website you can edit.

How to embed your AI agent

1

Copy your embed code

  1. Navigate to your dashboard and select the AI agent you wish to embed.
  2. Click Channels in the left sidebar, then click Manage on the Chat Bubble card (or Setup, if you haven’t configured it yet).
  3. Click Deploy and select the Website iframe embed type. Scroll down and click Copy to copy the provided HTML code.
The Deploy step in the Chatbase dashboard
Copying the iframe embed code
2

Open your Weebly site editor

Sign in to your Weebly account, head to the Edit site page, and select the page to edit.
3

Add the Embed Code widget

From the Basic toolbar on the left side of the editing page, locate the Embed Code widget.
The Embed Code widget in the Weebly Basic toolbar
Drag the Embed Code element to wherever you want your AI agent to appear on the page.
Dragging the Embed Code element onto a Weebly page
4

Paste the embed code

You’ll see a text element that says Click to set custom HTML where the widget was placed. Click the text, then click Edit Custom HTML, and paste your Chatbase embed code into the box.
Pasting the embed code into the Weebly custom HTML box
Click outside the element and confirm your AI agent appears on the page.
The Chatbase AI agent live on a Weebly website

How the iframe sizes itself

The iframe code is set to width="100%" with height: 100%; min-height: 700px. In practice:
  • Width follows the Weebly section or column you drop it into.
  • Height doesn’t grow or shrink with the conversation. It’s at least 700px, or taller if the element around it gives it more room.
To make the chat shorter or taller, change the min-height: 700px value in the code before you paste it, for example to min-height: 550px.

Troubleshooting

The iframe’s height is fixed by the code, not by the conversation. Adjust the min-height value in the pasted code until it fits your page, then click outside the element to see the result.
Possible causes:
  • Only allow embedding the agent on specific domains is on in the Specific domains card of the Deploy sheet, and your Weebly address isn’t listed. Add the exact host your site runs on, such as https://www.acme.com (example value). An entry without https:// or http:// matches only https pages.
  • The visitor’s country is in your blocked countries.
See Deploy button for the domain settings.
You can customize the appearance and colors of your AI agent on your Chatbase dashboard. Go to your dashboard, choose an AI 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.

Frequently asked questions

The floating Chat Bubble comes from the Website widget script, which needs to run on the page itself. If you paste it into an Embed Code element that runs in its own frame, the bubble stays clipped inside that element’s box. The iframe in this guide doesn’t have that problem.
No. Identity verification and event listeners only work with the Chat Bubble script.
Yes. Add an Embed Code element with the same code to each page where you want the chat. Pages without the element don’t show it.
Yes, by default. You can hide it with the Remove ‘Powered By Chatbase’ add-on. See Add Ons.

Next steps

Customize the Chat Bubble

Match the widget to your brand colors, position, and copy.