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:
Platform guides
WordPress
WordPress
Theme editor:
- Go to Appearance → Theme Editor.
- Select
footer.php. - Paste the widget code before
</body>. - Click Update File.
- Install and activate a plugin like “Insert Headers and Footers”.
- Go to Settings → Insert Headers and Footers.
- Paste the code into the “Scripts in Footer” section.
Shopify
Shopify
- Go to Online Store → Themes.
- Click Actions → Edit code.
- Open
theme.liquid. - Paste the widget code before
</body>. - Click Save.
Wix
Wix
- Open your Wix Editor.
- Click Add → Embed Code → Custom Embeds.
- Select Embed a Widget.
- Paste the widget code.
- Position the widget and publish.
Squarespace
Squarespace
- Go to Settings → Advanced → Code Injection.
- Paste the widget code in the Footer section.
- Click Save.
React / Next.js
React / Next.js
Add the script from your root layout or app component:
Troubleshooting
Widget not appearing
Widget not appearing
- Check that the script is actually on the page (view source and search for
smartalex-widget). - Verify your
data-tenant-idvalue is correct. - Check the browser console for JavaScript errors.
- Make sure the widget isn’t hidden by your site’s CSS.
Calls not connecting
Calls not connecting
- 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.

