AI Chat Widget for Wix
An AI chat agent on every page of your Wix site, added once through Settings → Custom Code on a paid Wix plan. 25 conversations a month on Sorraia’s Free plan.
Needs a paid Wix plan with a connected domain
Free plan with no time limit, no card.
See it working
There is a live one on this page already: the chat button in the bottom corner is a Sorraia AI chat agent — ours, answering from the pages it has indexed on this site and saying so when the answer isn’t there, with the AI disclosure line every chat carries. Open it and ask it something.
How to add an AI chat widget to Wix
This is the one Wix install where the method isn’t a preference. Embed HTML is a sandboxed iframe with no direct access to the page around it, so a floating launcher placed there is pinned to the frame: stuck inside the rectangle you drew, unable to overlay the header or footer, and gone when the visitor changes page. Settings → Custom Code puts the snippet into the real page instead, and Wix offers it only on a published site with a connected domain.
In Sorraia, add the website and verify it — a DNS TXT record, or a meta tag in your homepage’s <head>. Verification is what lets you attach a widget to that site, so it comes before there is anything to paste.
Save the agent, then copy the snippet from the Embed code box in the right-hand panel of the chat builder. (Chat has no install wizard — the box is the whole thing.)
Publish the site and connect your own domain first — Wix offers Custom Code only on a published site with a connected domain.
In the site dashboard, go to Settings → Custom Code (in the Development & integrations section) and click + Add Custom Code.
Paste the Sorraia snippet, give it a name, and under Add Code to Pages choose All pages, loading the code once per visit.
Under Place Code in, choose Body – end, then click Apply. Custom code doesn’t run in the editor, so open the published site to see the launcher.
Where these steps come from:12
Connect your own domain first. Then add the DNS TXT record, or put the meta tag on your homepage: Pages & Menu → the page’s More Actions → SEO basics → Advanced SEO → Additional Tags → + Add New Tag.3
Wix offers Custom Code only on a published site with a connected domain, and connecting a domain takes a paid plan — Premium for a Wix Editor site, a Studio plan for a Wix Studio site. On a free Wix address there is no way to put a script on every page.145
Worth knowing for this one
- Custom Code is added from the site dashboard, so it works the same whichever editor built the site — Wix Editor, Studio or Harmony — and it runs only on the published site, never in the editor.2
- In December 2025 Wix introduced frontend security measures for custom code that block some operations outright, so re-test the live site after adding the snippet.16
- Wix ties each Custom Code snippet to the site’s domain and deletes it if the domain changes, so re-add the chat after moving a client to a new domain.1
What Wix already has
Since March 2026, new Wix sites get Wix Smart Chat in place of AI Site Chat. It answers visitors from the site’s content using the plan’s AI credits, and stops giving AI replies when they run out. If Smart Chat covers what a client needs, it is already there. Sorraia’s agent is for the case where your client sites are not all on Wix: it answers from the pages it has indexed, says so when the answer isn’t there, and keeps every site’s conversations in one dashboard.78
What’s included
- Answers from the pages it has indexed on your site
- Says so when the answer isn’t there
- An AI disclosure line on every chat
- 25 conversations a month on Free
- Live with one copy-paste
Free plan with no time limit, no card.
More detail in the Help Center: The AI chat agent · Embedding on your website
Questions
Can I put the chat in a Wix Embed HTML element instead?
No. Embed HTML is a sandboxed iframe with no direct access to the rest of the page, so a floating launcher inside it is pinned to the frame: clipped, stuck on one page, and unable to cover the header or footer.
Why isn’t the chat showing in the Wix editor?
Custom code doesn’t take effect in the editor and only runs on the published site. Publish, then open the live URL.
Does the chat launcher work on a free Wix site?
No. Wix offers Custom Code only on a published site with a connected domain, and connecting a domain takes a paid plan — Premium for a Wix Editor site, a Studio plan for a Wix Studio site.
How is this different from Wix Smart Chat?
Smart Chat is Wix’s own assistant on new sites, answering from your site’s content with the plan’s AI credits until they run out. Sorraia’s agent answers from the pages it has indexed, says so when it can’t, and works the same on client sites built outside Wix.
Which consent category should the chat snippet use?
Wix files custom code as Essential by default, which means it loads before consent and visitors can’t switch it off. If your consent banner should control the chat, pick another category — Marketing, Analytic or Functional — on the snippet’s Code Type tab.
Sources
- Embedding custom code · support.wix.com
- About custom code · dev.wix.com
- Custom meta tags · support.wix.com
- Premium plan pricing · support.wix.com
- Building a site for free · support.wix.com
- Frontend security · dev.wix.com
- The Wix AI chat assistant · support.wix.com
- Smart Chat and AI credits · support.wix.com
- Working with the HTML iframe element · dev.wix.com
- HTML iframe element (Studio) · support.wix.com
- Categorizing custom code · support.wix.com
Each page read and checked on 20 October 2026.
Add an AI chat widget to Wix
Build it in Sorraia, put it live on your Wix site with one copy-paste, and change it later without touching the embed again.