# Framer

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

## Overview

To add your AI agent to a Framer site, copy the website widget code from QwryAI and add it as a script in your project's Custom Code settings. After you publish, the chat bubble appears in the corner of your pages.

### What you can do

Answer visitors' questions on your Framer site from a chat bubble, without them leaving the page.

## Before you start

- A QwryAI account with an AI agent
- A Framer project you can edit and publish

## How to add your AI agent to Framer

#### 1. Copy your embed code

1. In QwryAI, open the AI agent you want on your site.
2. Click Channels in the sidebar, then click Manage on the Chat bubble card.
3. Click Deploy and choose Website widget.
4. Under Widget setup, click Copy. The code already points to your agent, so paste it exactly as copied.

![The Website bubble panel in QwryAI with the widget code and its Copy button](/docs/screenshots/original/qwryai-deploy-website-widget.png)

Deploy → Website widget shows your agent's code, ready to copy.

#### 2. Open Custom Code in your project

Open your project in Framer, open Project Settings, and choose Custom Code in the sidebar.

#### 3. Add the code as a script

1. Click Add Script (or + if the project already has scripts) and give it a name, such as QwryAI chat bubble.
2. Paste your QwryAI code.
3. Leave it on all pages to show the chat bubble everywhere, or pick only the pages that should have it.
4. For where the code goes, choose any head or body option. The code waits for the page to load, so either works.

#### 4. Publish your site

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

## Check it works

Open your published Framer site in a new browser window, open the chat bubble, and ask a question your agent should know. The conversation appears in your QwryAI Inbox.

> **Specific domains**: If Specific domains is on in the same Deploy panel, your site's address must be on its list. Add it, for example *.framer.app, and click Save domains.

> To change the chat bubble's colors, text, and position, open Channels → Chat bubble → Display in QwryAI. Your site picks up the changes without new code.

## Troubleshooting

### The site's address ends in framer.website

Older Framer sites use framer.website instead of framer.app. If Specific domains is on, add *.framer.website as well.

## Next steps

- [Channels: customize the chat bubble](/docs/user-guides/agent-management/channels)
- [Website platforms: every way to add QwryAI to a site](/docs/user-guides/integrations/website-platforms)
