Skip to content
QwryAI
Documentation
Pages

Integrations

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.

Before you start

  • A QwryAI account with an AI agent. If you haven't built one yet, follow Build your first AI 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 seeA floating chat bubble in the bottom corner of every pageThe chat window inline, in one section of a page
Where the code goesWebflow's site-wide custom code, before the closing </body> tagA Code Embed element inside a Div on one page
SizeAutomatic. Full screen on screens narrower than 768px400 × 600 pixels, set in the code; you can change it
Identity verification and event listenersSupportedNot 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.

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.

    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.

    Search Add for Code Embed. On the free Starter plan it's locked, as here.
  1. 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
    <iframe src="https://www.qwryai.com/embed/YOUR_EMBED_KEY" width="100%" height="600" frameborder="0" title="Chatbot" allow="microphone"></iframe>

    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):

Example conversation
https://www.acme.com
https://acme.webflow.io
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.

Troubleshooting

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.

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

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.

Frequently asked questions

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.

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.

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.

Position: Left or Right.
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 </body> tag custom code of each page's settings. For the iframe, add the Code Embed only to those pages.

Next steps

Explore the documentation