The widget renders your published configuration from the server at load time. That means the same snippet works for every widget variant and colour scheme. Restyle in Widget Studio any time, with no change to your Wix site.
What you need
- A published SmartAlex agent and an active widget (see Widgets).
- Your workspace tenant ID (a UUID). Find it in the widget code panel inside SmartAlex, or ask the MCP tool
smartalex_get_widget_install_code. - For a site-wide floating widget: a Wix Premium plan with a connected domain. Wix only runs Custom Code on published sites that have a paid plan and a custom domain.
Get your widget snippet
Copy the SmartAlex widget snippet and replaceYOUR_TENANT_ID with your workspace ID.
data-tenant-id. There is no data-variant or data-color on the tag: the widget reads its variant, colours, and agent from your published config, so the snippet is byte-identical for all five variants.
Choose your widget variant
Pick the variant in Widget Studio inside SmartAlex, not in the snippet. One widget is active per workspace at a time.The Voice pill and Ask Alex variants appear only when your agent runs on the SmartAlex voice engine. If you do not see them in Widget Studio, deploy the agent to the voice engine first. Pill, Chat bar, and Side panel are always available.
Embed it in Wix
1
Open Custom Code in your Wix dashboard
Go to your site’s dashboard, then Settings, then Custom Code (under Advanced). Click + Add Custom Code.
2
Paste the snippet
Paste the SmartAlex script tag into the code box and name it something like
SmartAlex Widget.3
Set placement
Set Add Code to Pages to All pages and load it Once. Choose Body - end for placement, and apply it to All visitors.
4
Apply and publish
Click Apply, then Publish your site from the Editor. Custom Code runs on the live published site, not in the Editor preview.
Inline option: Embed HTML element
If you want the widget inside one specific section rather than floating site-wide:- In the Wix Editor, click Add Elements (the +), then Embed Code, then Embed HTML.
- On the element, click Enter Code, choose Code mode (not Website address), and paste the snippet.
- Resize and position the box, then Publish.
Wix renders Embed HTML inside an iframe, so the widget is confined to that box. That is fine for dropping a chat bar into a single section, but for a floating pill or side panel across the whole site, use the Custom Code path above.
How it loads
Verify it
- Open your published Wix site in a normal browser tab, not the Editor.
- Look for the widget in the bottom corner and open it.
- Send a message or start a call to confirm Alex responds.
Prefer to drive it from an AI assistant?
Connect SmartAlex to Claude, Cursor, or ChatGPT over MCP and let your assistant fetch the snippet and manage the widget for you.Do more after embedding
The widget captures leads and books calls on its own. To push those events into your own systems, add Custom HTTP Tools so Alex can call your HTTPS endpoints mid-conversation. Custom HTTP Tools are part of the Power Tools add-on ($29/mo), which also unlocks the Developer Portal and MCP keys. Platform webhook events are in private beta today, so see Automation for the honest state of webhooks.Related
Widget install reference
Every place to paste the snippet, plus the React and Next.js version.
Choose a widget variant
Compare the five variants and how each looks on your site.
Add it to Shopify
The same snippet on a Shopify theme.
Automate with webhooks and MCP
Connect calls and deals to your own tools.

