# Weebly

Add your AI agent to a Weebly page with the website iframe code and an Embed Code element

## Overview

To add your AI agent to a Weebly site, copy the website iframe code from QwryAI and paste it into an Embed Code element on your page. The chat window appears where you place the element.

### What you can do

Answer visitors' questions inside your Weebly page, in a chat window placed exactly where you want it.

## Before you start

- A QwryAI account with an AI agent
- A Weebly site you can edit

## How to add your AI agent to Weebly

#### 1. Copy your embed code

1. In QwryAI, open the AI agent you want on your site.
2. Click Channels in the sidebar, then click Manage on the Chat bubble card.
3. Click Deploy and choose Website iframe.
4. Under Iframe setup, click Copy. The code already points to your agent, so paste it exactly as copied.

![The Website iframe panel in QwryAI with the iframe code and its Copy button](/docs/screenshots/original/qwryai-deploy-website-iframe.png)

Deploy → Website iframe shows your agent's code, ready to copy.

#### 2. Open your page in the Weebly editor

Sign in to Weebly, open your site in the editor, and go to the page that should show the chat window.

#### 3. Add an Embed Code element

From the elements on the left, drag Embed Code onto the page, where you want the chat window.

#### 4. Paste the code and publish

Click inside the Embed Code element and choose Edit Custom HTML. Paste your QwryAI code, then click outside the element. The editor doesn't always show embedded content, so publish your site and check the chat window there.

## Check it works

Open your published Weebly site in a new browser window, find the chat window on the page, and ask a question your agent should know. The conversation appears in your QwryAI Inbox.

> **Specific domains**: If Specific domains is on in the same Deploy panel, your site's address must be on its list. Add it, for example *.weebly.com, and click Save domains.

> To change the chat bubble's colors, text, and position, open Channels → Chat bubble → Display in QwryAI. Your site picks up the changes without new code.

## Troubleshooting

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

## Next steps

- [Channels: customize the chat bubble](/docs/user-guides/agent-management/channels)
- [Website platforms: every way to add QwryAI to a site](/docs/user-guides/integrations/website-platforms)
