Skip to content
QwryAI
Documentation
Pages

Integrations

Add an AI agent to your Framer site

Add your QwryAI agent to a Framer site with the Website widget code and Framer's Custom Code settings

You can add your QwryAI agent to a Framer site by adding the Website widget code to Framer's Custom Code settings. After you publish, a floating chat bubble appears in the bottom corner and opens the chat when a visitor selects it. The chat bubble is included on every QwryAI plan, and you can show it on the whole site or on chosen pages.

Before you start

  • A QwryAI account with an AI agent. If you haven't built one yet, follow Build your first AI agent.
  • A Framer project you can edit and publish.

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.

    Channels › Chat bubble › Manage.
  2. Open Deploy and choose Website widget

    Select Deploy in the top-right corner of the Chat bubble editor, then select Website widget.

    Deploy lists every way to add your agent.
Website widget opens the Website bubble sheet.
  1. Copy the code

    On the Website bubble sheet, select Copy under Widget setup. The code already points to your agent, so paste it exactly as copied. Not the one editing the Framer project? Send instructions via email sends the code and the steps to a teammate.

    Copy the code under Widget setup.
  2. Open Custom Code in your Framer project

    Open your project in Framer, open Site Settings (Project Settings in some Framer versions), and choose Custom Code in the sidebar.

  3. Add the code as a script
    • Select Add Script (or + if the project already has scripts) and give it a name, such as QwryAI chat bubble.
    • Paste your QwryAI code.
    • Leave it on all pages to show the chat bubble everywhere, or pick only the pages that should have it.
    • For where the code goes, any head or body option works: the code waits until the page has loaded before it adds the chat bubble.
  4. Publish your site

    Select Publish in the top right of the editor. Custom code takes effect on the published site, so check the chat bubble there.

Allow your framer.app address

If you turned on Specific domains in the Deploy sheet, add the Framer address you preview or stage on as well as your custom domain, one per line, then select Save domains. For example (example values):

Example conversation
https://www.acme.com
https://acme.framer.app
List each address, one per line, then Save domains.

Each entry matches one exact host, and an entry without https:// or http:// is saved as https://. https://*.framer.app also works, but it lets every Framer site embed your agent. See Channels.

Troubleshooting

The chat bubble shows on one page but disappears on others

The code was probably added to a single page's custom code, so it doesn't load on the others. Move it to the site-wide Custom Code in Site Settings, then publish again.

The chat bubble doesn't appear at all

Possible causes:

  • Specific domains is on and the Framer 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 an embed component on the canvas instead of Custom Code. Framer runs that component in its own frame, so the bubble is clipped to the component's box.

Solution: fix the matching setting, publish, and reload the published site in a private window.

The site's address ends in framer.website

Older Framer sites use framer.website instead of framer.app. If Specific domains is on, add that address too.

Frequently asked questions

Should I add QwryAI to one Framer page or the whole site?

The whole site, unless you only want the agent on certain pages. Site-wide custom code loads the chat bubble everywhere. For certain pages only, choose those pages when you add the script.

Can I load the QwryAI code in the head on Framer?

Yes. The code waits for the page to finish loading before it adds the chat bubble, so the head works. QwryAI's own setup steps suggest just before the closing </body> tag, which works too.

How does the chat bubble look on phones?

The chat bubble doesn't follow your Framer breakpoints. On screens narrower than 768px the chat opens full screen; on wider screens it opens as a panel in the bottom corner.

Can I place the chat bubble anywhere on my Framer page?

No. It stays at the bottom of the screen, on the left or the right. Pick a side with Position under Display › Floating bubble.

Position: Left or Right.

Next steps

Explore the documentation