# 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. > [card] What you can do | /docs/user-guides/chatbot/channels | Answer every visitor to your Framer site from a chat bubble, without them leaving the page. ## 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 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. ![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 and choose Website widget** Select **Deploy** in the top-right corner of the Chat bubble editor, then select **Website widget**. ![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.") ![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.") **3. 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. ![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.") **4. 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. **5. 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. **6. 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. > [!TIP] > > Site-wide custom code is the safest choice. Code added to a single page may not run when a visitor reaches another page by following a link inside your site. ## 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): ```text https://www.acme.com https://acme.framer.app ``` ![The Specific domains toggle switched on with https://www.acme.com and https://acme.framer.app 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 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](/docs/user-guides/chatbot/channels). ## Troubleshooting > [accordion] 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. > [accordion] 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](/docs/user-guides/chatbot/guardrails). > * **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. > [accordion] 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. > [!NOTE] > > You change how the chat looks in QwryAI, not in Framer. 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 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. > [accordion] 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 `` tag, which works too. > [accordion] 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. > [accordion] 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**. > > ![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.") ## Next steps > [card] Customize the chat bubble | /docs/user-guides/chatbot/channels | Match the chat bubble to your brand's colors, position and wording.