# Add an AI agent to your Webflow site > Put your QwryAI agent on a Webflow site as a floating chat bubble on every page, or as a chat window inside a Div you size yourself There are two ways to add your QwryAI agent to a Webflow site, and you copy both from your QwryAI dashboard. The **Website widget** code adds a floating chat bubble to every page. The **Website iframe** code places the chat window inline, inside a Div you lay out in the Webflow Designer. Both are included on every QwryAI plan. > [card] What you can do | /docs/user-guides/chatbot/channels | Answer every visitor to your Webflow site, from a chat bubble in the corner or 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 Webflow site you can edit in the Designer, on a paid Webflow site plan. On the free Starter plan, Webflow locks custom code and the **Code Embed** element. ## Choose an embed type | | Website widget (recommended) | Website iframe | | - | - | - | | What visitors see | A floating chat bubble in the bottom corner of every page | The chat window inline, in one section of a page | | Where the code goes | Webflow's site-wide custom code, before the closing `` tag | A **Code Embed** element inside a Div on one page | | Size | Automatic. Full screen on screens narrower than 768px | 400 × 600 pixels, set in the code; you can change it | | [Identity verification](/docs/developer-guides/website-integration/identity-verification) and [event listeners](/docs/developer-guides/website-integration/chatbot-event-listeners) | Supported | Not supported | We recommend the **Website widget**. Identity verification and event listeners only work with the chat bubble, and it handles phone screens for you. Choose the iframe when you want the chat to be part of the page layout, such as on a support page. ## Add the chat bubble to every page (recommended) **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 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** In the Chat bubble editor, select **Deploy** in the top-right corner. **Deploy on** lists **Website widget**, **Website iframe**, **Shopify** and **WordPress**. ![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.") **3. Choose Website widget** Select **Website widget**. The **Website bubble** sheet opens. ![The Deploy menu with the pointer on Website widget (Embed a floating chat bubble on any website).](annotated/03-website-widget.webp "Website widget opens the Website bubble sheet.") **4. Copy the code** Under **Widget setup**, select **Copy**. The code already points to your agent, so paste it exactly as copied. If someone else looks after your Webflow site, **Send instructions via email** sends them the code and the steps. ![The Website bubble sheet with Send instructions via email, Copy prompt, the Specific domains toggle, and the Widget setup embed code with the pointer on Copy.](annotated/04-embed-code.webp "Copy the code under Widget setup.") **5. Paste it into Webflow's site-wide custom code** In Webflow, open your site's **Site settings** and go to **Custom code**. Paste the code into **Footer code**, the field Webflow adds before the closing `` tag, then select **Save**. Code in this field loads on every page of your site. **6. Publish your site** Select **Publish** in the Designer and publish to your domains. Open the published site and check that the chat bubble appears in the bottom corner. Webflow runs site-wide custom code only on the published site, not in the Designer. ## Embed the chat inline with an iframe **1. Copy the iframe code** Follow steps 1 and 2 above, then choose **Website iframe** instead. Under **Iframe setup**, select **Copy**. ![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/05-iframe-code.webp "Copy the code under Iframe setup.") **2. Open your page in the Webflow Designer** In your Webflow dashboard, open the site in the **Designer**. Open **Pages** in the left toolbar and select the page that should show the chat. **3. Build a container for the chat** A Div gives the chat a place in your layout: * Select **Add** (**+**) in the left toolbar. * Drag a **Section** to where the chat should go, then drag a **Container** into it. * Drag a **Div Block** into the Container. **4. Add a Code Embed element and paste your code** In the **Add** panel, search for **Code Embed** and drag it into the Div. Paste your QwryAI code into the code editor that opens, then select **Save & Close**. ![The Webflow Designer Add panel searched for embed, showing the Code Embed element with an upgrade badge on a free Starter site.](builder/webflow-code-embed.webp "Search Add for Code Embed. On the free Starter plan it's locked, as here.") > [!TIP] > > The Designer may show only a placeholder for the embed. Publish the site and check the chat window on the live page. **5. Size the chat** The code sets the chat to `width="400"` and `height="600"` pixels. To fill your Div's width, change `width="400"` to `width="100%"` in the Code Embed, and change the `height` number to the height you want. ```html ``` Keep the `src` address exactly as you copied it: it identifies your agent. ## Allow your webflow.io address If you turned on **Specific domains** in the **Deploy** sheet, list every address your Webflow site runs on, including its `webflow.io` staging address, one per line, then select **Save domains**. For example (example values): ```text https://www.acme.com https://acme.webflow.io ``` ![The Specific domains toggle switched on with https://www.acme.com and https://acme.webflow.io 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.") Each entry matches one exact address. `https://*.acme.com` matches subdomains of acme.com but not `acme.com` itself, and an entry without `https://` or `http://` is saved as `https://`. Enter addresses without a path. Avoid `https://*.webflow.io`: it works, but it lets every Webflow site embed your agent. See [Channels](/docs/user-guides/chatbot/channels). ## Troubleshooting > [accordion] The chat window is the wrong size > > **Possible cause:** the iframe code sets a fixed `width="400"` and `height="600"`, whatever the size of the Div around it. > > **Solution:** edit the two numbers inside the Code Embed, for example `width="100%"` and the height that fits your section, then save and publish again. > [accordion] The chat bubble doesn't appear on the published site > > **Possible causes:** > > * **Specific domains** is on and the address you're visiting isn't listed. Your browser's developer console shows that the chat was blocked by the page's frame-ancestors policy. > * The visitor's country is in **Blocked countries** under [Guardrails › Country blocking](/docs/user-guides/chatbot/guardrails). > * **Visibility** is off on the Chat bubble's **Overview** tab. > * The code was pasted into a Code Embed instead of site-wide custom code, so it only loads on that page. > > **Solution:** fix the matching setting, publish again, and reload the published page in a private window. > [accordion] Code Embed or Custom code is greyed out > > Your site is on Webflow's free Starter plan. Webflow unlocks custom code and the Code Embed element on its paid site plans. > [!NOTE] > > You change how the chat looks in QwryAI, not in Webflow. Open **Channels**, select **Manage** on the **Chat bubble** card, then open the **Display** tab to edit **Content**, **Style**, **Floating bubble**, **Localization**, **Capabilities** and **Typography**. Select **Publish** to send your changes live; your site picks them up without new code. ## Frequently asked questions > [accordion] Should I use the widget or the iframe on Webflow? > > Use the **Website widget** unless you specifically want the chat inside the page. It's the only option that supports identity verification and event listeners, and it switches to full screen on phones by itself. > [accordion] How do I size the iframe on phones? > > Set `width="100%"` so the chat follows the width of its Div, and pick a `height` that also fits a phone screen. The chat bubble doesn't need this: on screens narrower than 768px it opens full screen. > [accordion] Can I move the chat bubble away from the corner? > > You can switch it between the bottom left and bottom right with **Position** under **Display › Floating bubble**. It always sits at the bottom of the screen, near the edge. > > ![The Chat bubble editor on the Display tab with the Floating bubble section open, showing Position with Left and Right options.](annotated/07-floating-bubble.webp "Position: Left or Right.") > [accordion] Can I show the agent on some Webflow pages only? > > Yes. Instead of the site-wide **Footer code**, paste the widget code into the **Before tag** custom code of each page's settings. For the iframe, add the Code Embed only to those pages. ## Next steps > [card] Customize the chat bubble | /docs/user-guides/chatbot/channels | Match the chat bubble to your brand's colors, position and wording. > [card] Identity verification | /docs/developer-guides/website-integration/identity-verification | Tell your agent who your signed-in visitors are.