# Add an AI agent to your Weebly site > Put your QwryAI agent inline on a Weebly page with the Website iframe code and the Embed Code element You can add your QwryAI agent to a Weebly site by pasting the **Website iframe** code into Weebly's **Embed Code** element. The chat window then sits inline on the page, exactly where you drop the element, rather than as a floating bubble. The iframe is included on every QwryAI plan. > [card] What you can do | /docs/user-guides/chatbot/channels | Answer visitors on your Weebly site in a chat window placed exactly where you want it. ## Before you start * A QwryAI account with an AI agent. If you haven't built one yet, follow [Build your first AI agent](/docs/user-guides/quick-start/your-first-agent). * A Weebly site you can edit. ## How to embed your AI agent **1. Open your agent's Chat bubble** In QwryAI, open the agent you want on your site, select **Channels** in the sidebar, then select **Manage** on the **Chat bubble** card. The inline iframe is set up from the same place. ![The Channels page with the Chat bubble, Help page and Center Stage cards, each with a Manage button, and the pointer on the Chat bubble card's Manage button.](annotated/01-channels.webp "Channels › Chat bubble › Manage.") **2. Open Deploy and choose Website iframe** Select **Deploy** in the top-right corner of the Chat bubble editor, then select **Website iframe**. ![The Deploy menu open under DEPLOY ON, listing Website widget, Website iframe, Shopify and WordPress, each with a one-line description.](annotated/02-deploy-menu.webp "Deploy lists every way to add your agent.") ![The Deploy menu with the pointer on Website iframe (Embed the agent as an inline element on any website).](annotated/03-website-iframe.webp "Website iframe opens its own sheet.") **3. Copy the code** On the **Website iframe** sheet, select **Copy** under **Iframe setup**. Keep the address in the code exactly as copied: it identifies your agent. ![The Website iframe sheet with Send instructions via email, Copy prompt, the Specific domains toggle, and the Iframe setup embed code with the pointer on Copy.](annotated/04-iframe-code.webp "Copy the code under Iframe setup.") **4. Open your Weebly site editor** Sign in to Weebly, open your site in the editor, and go to the page that should show the chat. **5. Add the Embed Code element** In the **Build** panel on the left, find **Embed Code** among the basic elements and drag it to where the chat should appear on the page. **6. Paste the code** Where you dropped the element, Weebly shows **Click to set custom HTML**. Select it, choose **Edit Custom HTML**, and paste your QwryAI code into the box. Then select anywhere outside the element. > [!TIP] > > The Weebly editor doesn't always show embedded content. Publish your site and check the chat window on the live page. ## How the iframe sizes itself The code sets a fixed size: `width="400"` and `height="600"`, in pixels. In practice: * **Width** stays at 400 pixels, whatever the width of the Weebly section or column. * **Height** stays at 600 pixels; it doesn't grow or shrink with the conversation. To change the size, edit the numbers in the code before you paste it. `width="100%"` makes the chat follow the width of its column: ```html ``` ## Troubleshooting > [accordion] The chat is cut off or has a lot of empty space > > The chat's size comes from the `width` and `height` numbers in the code, not from the conversation. Edit them in **Edit Custom HTML** until the chat fits your page, then select outside the element and publish again. > [accordion] Part of the code shows as text, or the page looks broken > > The code was cut short when it was pasted. Delete the Embed Code element, copy the code again in QwryAI, and paste the whole thing into a new Embed Code element. > [accordion] The chat shows an error or a blank box instead of your agent > > **Possible causes:** > > * **Specific domains** is on in the **Deploy** sheet and your Weebly address isn't listed. Add the exact address your site runs on, such as `https://www.acme.com` (example value), one per line, and select **Save domains**. An entry without `https://` or `http://` is saved as `https://`. > * The visitor's country is in **Blocked countries** under [Guardrails › Country blocking](/docs/user-guides/chatbot/guardrails). > > ![The Specific domains toggle switched on with https://www.acme.com and https://acme.weebly.com entered in the domain list, Enter each domain in a new line below it, and the pointer on Save domains.](annotated/06-specific-domains.webp "List each address, one per line, then Save domains.") > > See [Channels](/docs/user-guides/chatbot/channels) for the domain settings. > [!NOTE] > > You change how the chat looks in QwryAI, not in Weebly. Open **Channels**, select **Manage** on the **Chat bubble** card, then open the **Display** tab to edit **Content**, **Style**, **Localization**, **Capabilities** and **Typography**. Select **Publish** to send your changes live; your page picks them up without new code. ## 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** code, which has to run on the page itself. Pasted 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](/docs/developer-guides/website-integration/identity-verification) and [event listeners](/docs/developer-guides/website-integration/chatbot-event-listeners) work only with the chat bubble. > [accordion] Can I add the 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 QwryAI"? > > Yes, by default. You can hide it with the **Remove 'Powered By QwryAI'** add-on. See [Workspace settings](/docs/user-guides/workspace/settings). > [accordion] Where do the chat's colors and wording come from? > > From the Chat bubble's **Display** tab in QwryAI, the same settings the chat bubble uses. > > ![The Chat bubble editor on the Display tab with the Style section open, showing Theme, Accent color and Radius settings.](annotated/07-display-style.webp "Display › Style sets the chat's look.") ## Next steps > [card] Customize the chat bubble | /docs/user-guides/chatbot/channels | Match the chat to your brand's colors and wording. > [card] Website iframe | /docs/developer-guides/website-integration/iframe | Everything the inline iframe code can do.