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 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 </body> 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 and 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)
- 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.
Channels › Chat bubble › Manage. - Open Deploy
In the Chat bubble editor, select Deploy in the top-right corner. Deploy on lists Website widget, Website iframe, Shopify and WordPress.
Deploy lists every way to add your agent. - Choose Website widget
Select Website widget. The Website bubble sheet opens.
Website widget opens the Website bubble sheet. - 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.
Copy the code under Widget setup. - 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
</body>tag, then select Save. Code in this field loads on every page of your site. - 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
- 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. - 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.
- 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.
- 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.
- Size the chat
The code sets the chat to
width="400"andheight="600"pixels. To fill your Div's width, changewidth="400"towidth="100%"in the Code Embed, and change theheightnumber to the height you want.<iframe src="https://www.qwryai.com/embed/YOUR_EMBED_KEY" width="100%" height="600" frameborder="0" title="Chatbot" allow="microphone"></iframe>Keep the
srcaddress 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):
https://www.acme.com
https://acme.webflow.ioEach 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.
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.