Use this guide to install the AI Agent widget on Wix. Copy the Embed Code from your portal as described in Installation Overview.Two embed methods are supported:
1.
Script-based loader (recommended): Adds an AI Agent bubble. The chat opens in an iframe popover when the visitor clicks the bubble.
2.
Iframe-based embed: Loads the AI Agent directly as an iframe appended to the page body (best for a dedicated page).
Script-based loader: Add using Wix Custom Code and apply it to All Pages. If Wix provides a placement option, choose a placement that runs late (end of body/output).
Iframe-based embed: Add only on a specific page where you want a direct embedded chat experience.
Important:
The embed code appends to document.body, so later placement is safer.
This method appends the iframe to the page body and is best used on a dedicated page.Important:
Do not use Wix’s plain “iframe URL embed” field for this method, because your embed is a script that creates an iframe. Use an embed type that allows HTML/script.
Add an Embed element that supports custom HTML (example: Embed HTML).
3.
Paste the Iframe-based embed code.
4.
Publish the site.
Notes:
To control size, adjust iframe.style.width and iframe.style.height in the code (example: 600px, 80vh, 100vh).
Some Wix embed elements or settings may sandbox scripts. If the embed does not run, use Custom Code for that specific page instead of an Embed element.