Skip to main content
Once you’ve configured a widget in Widget Studio, installing it is one script tag. Your data-tenant-id value is shown in the widget code panel inside SmartAlex, or ask your AI assistant for it through the MCP tool.

Basic install

Add the widget script to your site and place it just before the closing </body> tag:
That’s the whole install. The widget reads your published configuration (variant, colours, agent) at load time, so you can restyle it in Widget Studio later without touching your site again.

Platform guides

Theme editor:
  1. Go to Appearance → Theme Editor.
  2. Select footer.php.
  3. Paste the widget code before </body>.
  4. Click Update File.
Or with a headers-and-footers plugin:
  1. Install and activate a plugin like “Insert Headers and Footers”.
  2. Go to Settings → Insert Headers and Footers.
  3. Paste the code into the “Scripts in Footer” section.
  1. Go to Online Store → Themes.
  2. Click Actions → Edit code.
  3. Open theme.liquid.
  4. Paste the widget code before </body>.
  5. Click Save.
  1. Open your Wix Editor.
  2. Click Add → Embed Code → Custom Embeds.
  3. Select Embed a Widget.
  4. Paste the widget code.
  5. Position the widget and publish.
  1. Go to Settings → Advanced → Code Injection.
  2. Paste the widget code in the Footer section.
  3. Click Save.
Add the script from your root layout or app component:

Troubleshooting

  • Check that the script is actually on the page (view source and search for smartalex-widget).
  • Verify your data-tenant-id value is correct.
  • Check the browser console for JavaScript errors.
  • Make sure the widget isn’t hidden by your site’s CSS.
  • Verify the widget’s agent is active.
  • Check that microphone permissions are granted in the browser.
  • Test in an incognito window to rule out extensions.
  • Try a different browser.

Back to Widget Studio

Configure the variant, appearance, and behaviour before you install.