Integrations
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
- In QwryAI, open the AI agent you want on your site.
- Click Channels in the sidebar, then click Manage on the Chat bubble card.
- Click Deploy and choose Website widget.
- Under Widget setup, click Copy. The code already points to your agent, so paste it exactly as copied.
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
- Go to your site's dashboard and click Settings in the sidebar.
- Scroll to Development & integrations and click Custom code.
- Click + Add Custom Code.
4. Paste the code and apply it
- Paste your QwryAI code into the code box.
- Give it a name you'll recognize, such as QwryAI chat bubble.
- Under Add Code to Pages, choose All pages and keep Load code once.
- Under Place Code in, choose Head.
- Click Apply.
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.
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.