# Wix

Add your AI agent to every page of a Wix site with the website widget code and Wix Custom code

## Overview

To add your AI agent to a Wix site, copy the website widget code from QwryAI and add it to your site's Custom code settings. The chat bubble then appears in the corner of every page.

### What you can do

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

## Before you start

- A QwryAI account with an AI agent
- A Wix site you can edit. Custom code works on the free plan, but Wix only accepts it once the site has been published.

## How to add your AI agent to Wix

#### 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. Publish your site

If you haven't published your Wix site yet, open it in the editor and click Publish. Wix adds custom code only to published sites.

#### 3. Open Custom code

1. Go to your site's dashboard and click Settings in the sidebar.
2. Scroll to Development & integrations and click Custom code.
3. Click + Add Custom Code.

![Wix dashboard Settings page with Custom code under Development & integrations](/docs/screenshots/original/qwryai-wix-settings.png)

Custom code is under Development & integrations in your site's Settings.

#### 4. Paste the code and apply it

1. Paste your QwryAI code into the code box.
2. Give it a name you'll recognize, such as QwryAI chat bubble.
3. Under Add Code to Pages, choose All pages and keep Load code once.
4. Under Place Code in, choose Head.
5. Click Apply.

![Wix Add Custom Code dialog with the QwryAI code pasted, named QwryAI chat bubble, set to All pages and Head](/docs/screenshots/original/qwryai-wix-custom-code.png)

The QwryAI code set to load once on all pages, in the head.

## Check it works

Open your published Wix 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.

![A published Wix site with the QwryAI chat bubble and its greeting in the bottom-right corner](/docs/screenshots/original/qwryai-wix-live.png)

The chat bubble on the published Wix site.

> **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 *.wixsite.com, 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 chat bubble doesn't show in the Wix editor

That's expected. Wix runs custom code only on the published site, not in the editor or its preview. Open the live site to check.

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