Overview
SmartAlex Widgets let your website visitors call your AI agent with one click. No phone required - calls happen directly in the browser.Widget Types
Click-to-Call Button
A customizable button that opens a calling interface:- Floating button (corner of screen)
- Inline button (within page content)
- Custom trigger (your own button/link)
Embedded Call Widget
A full calling interface embedded in your page:- Shows agent avatar and name
- Call controls (mute, end)
- Call status indicator
Creating a Widget
Customize Appearance
Configure colors, position, and text to match your brand:
- Button color (hex code or picker)
- Button text (e.g., “Talk to Alex”)
- Position (bottom-right, bottom-left, etc.)
- Icon style
Customization Options
Appearance
| Setting | Options |
|---|---|
| Primary Color | Any hex color (default: #010033) |
| Button Text | Custom text or icon only |
| Position | Bottom-right, bottom-left, custom |
| Size | Small, medium, large |
| Border Radius | Square to fully rounded |
Behavior
| Setting | Description |
|---|---|
| Auto-open | Automatically open on page load |
| Delay | Wait before showing button (seconds) |
| Mobile Display | Show/hide on mobile devices |
| Greeting Message | Initial message in chat interface |
Installation
Basic Installation
Add the widget script to your website’s HTML:</body> tag.
Platform-Specific Guides
WordPress
WordPress
- Go to Appearance → Theme Editor
- Select
footer.php - Paste the widget code before
</body> - Click Update File
- Install and activate the plugin
- Go to Settings → Insert Headers and Footers
- Paste the code in the “Scripts in Footer” section
Shopify
Shopify
- Go to Online Store → Themes
- Click Actions → Edit code
- Find
theme.liquid - Paste the widget code before
</body> - Click Save
Wix
Wix
- Go to 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 to your main layout or app component:
Live Preview
Widget Studio includes a live preview:- See changes in real-time
- Test on different device sizes
- Preview light and dark modes
- Test the calling interface
Widget Analytics
Track widget performance:| Metric | Description |
|---|---|
| Impressions | Times widget was displayed |
| Clicks | Times button was clicked |
| Calls Started | Calls that connected |
| Calls Completed | Successfully finished calls |
| Conversion Rate | Clicks to completed calls |
Best Practices
Placement
Placement
- Floating button: Best for most sites, always visible
- Bottom-right: Standard position users expect
- Avoid: Covering important content or CTAs
Call-to-Action
Call-to-Action
- Use action-oriented text: “Talk to Us”, “Get Help Now”
- Keep it short (2-3 words)
- Match your brand voice
Mobile Optimization
Mobile Optimization
- Test on actual mobile devices
- Ensure button isn’t too small to tap
- Consider hiding on mobile if calls don’t make sense
Troubleshooting
Widget Not Appearing
Widget Not Appearing
- Check that the script is properly added to your page
- Verify the widget ID is correct
- Check browser console for JavaScript errors
- Ensure the widget is not hidden by CSS
Calls Not Connecting
Calls Not Connecting
- Verify the widget’s agent is active
- Check that microphone permissions are granted
- Test in an incognito window
- Try a different browser

