> ## Documentation Index
> Fetch the complete documentation index at: https://chatbase.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add an AI agent to your Weebly site

> Embed your Chatbase AI agent inline on a Weebly website using the iframe embed code and the Embed Code element

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.

> [card] 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](https://chatbase.co/docs/user-guides/quick-start/your-first-agent.md).
* A Weebly website you can edit.

## How to embed your AI agent

**1. Copy your embed code**

1. Navigate to your [dashboard](https://www.chatbase.co/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](https://mintcdn.com/chatbase/DnMdgLj-7YGWYAcx/user-guides/integrations/images/Integrations/deploy-step.png?fit=max\&auto=format\&n=DnMdgLj-7YGWYAcx\&q=85\&s=31b0448df7dee6c3ccc65eaf9bb47879)

![Copying the iframe embed code](https://mintcdn.com/chatbase/DnMdgLj-7YGWYAcx/user-guides/integrations/images/Integrations/iframe-embed.png?fit=max\&auto=format\&n=DnMdgLj-7YGWYAcx\&q=85\&s=aea38c13c9ed5f73151a530d81fc1a05)

**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](https://mintcdn.com/chatbase/kU-6NVMb2BBkym9H/user-guides/integrations/images/weebly/weebly-4.png?fit=max\&auto=format\&n=kU-6NVMb2BBkym9H\&q=85\&s=c38f8b71ac65464ff66fa779b03c9c5e)

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](https://mintcdn.com/chatbase/kU-6NVMb2BBkym9H/user-guides/integrations/images/weebly/weebly-5.png?fit=max\&auto=format\&n=kU-6NVMb2BBkym9H\&q=85\&s=4445c08599e379095a0f3c1d251e51b6)

**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](https://mintcdn.com/chatbase/kU-6NVMb2BBkym9H/user-guides/integrations/images/weebly/weebly-6.png?fit=max\&auto=format\&n=kU-6NVMb2BBkym9H\&q=85\&s=2f8677158901f73d3cac919fb773391a)

> [!TIP]
>
> Click outside the element and confirm your AI agent appears on the page.

![The Chatbase AI agent live on a Weebly website](https://mintcdn.com/chatbase/kU-6NVMb2BBkym9H/user-guides/integrations/images/weebly/weebly-7.png?fit=max\&auto=format\&n=kU-6NVMb2BBkym9H\&q=85\&s=b438e1a2021ae25b7645416f68a871f2)

## 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

> [accordion] The chat is cut off or has a lot of empty space
>
> 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.

> [accordion] The chat shows an error or a blank box instead of the AI agent
>
> **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](https://chatbase.co/docs/user-guides/chatbot/guardrails.md#blocking-a-country).
>
> See [Deploy button](https://chatbase.co/docs/user-guides/chatbot/channels.md#deploy-button) for the domain settings.

> [!NOTE]
>
> 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

> [accordion] Can I get a floating Chat Bubble on Weebly instead of an inline chat?
>
> 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.

> [accordion] Does the iframe support identity verification and event listeners?
>
> No. [Identity verification](https://chatbase.co/docs/developer-guides/website-integration/identity-verification.md) and [event listeners](https://chatbase.co/docs/developer-guides/website-integration/chatbot-event-listeners.md) only work with the Chat Bubble script.

> [accordion] Can I add the AI agent to several Weebly pages?
>
> 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.

> [accordion] Will the chat say "Powered by Chatbase"?
>
> Yes, by default. You can hide it with the **Remove 'Powered By Chatbase'** add-on. See [Add Ons](https://chatbase.co/docs/user-guides/workspace/settings.md#add-ons).

## Next steps

> [card] [Customize the Chat Bubble](https://chatbase.co/docs/user-guides/chatbot/channels.md#chat-bubble-display)
>
> Match the widget to your brand colors, position, and copy.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.