Embed Code
How to get and install the widget embed code
The embed code is the JavaScript script that adds the widget to your site.
Get the Code
- Go to Widget in the dashboard
- Select your widget
- Click Embed Code
- Copy the displayed code
Standard Code
The code to copy and paste:
html
Where to Insert It
Paste the code before the closing body tag:
html
Customization
Configure from Dashboard
All customization options (colors, position, messages, avatar, theme, etc.) are configured from Dashboard → Widget → Settings.
Changes apply automatically without needing to change the code on your site.
Specific Platforms
WordPress
- Go to Appearance > Theme Editor
- Open
footer.php - Paste the code before closing body
- Save
Or use a plugin like "Insert Headers and Footers".
Shopify
- Go to Online Store > Themes
- Click Actions > Edit code
- Open
theme.liquid - Paste the code before closing body
Wix
- Go to Settings > Custom Code
- Click + Add Code
- Paste the code
- Select "Body - end"
Squarespace
- Go to Settings > Advanced
- Click Code Injection
- Paste in the Footer field
Verify Installation
After installation:
- Reload the page
- You should see the widget icon in the corner
- Click to open the chat
- Test by sending a message
Common Problems
Widget doesn't appear
- Verify
agentIdis correct - Check browser console for errors
- Make sure the widget is active in the dashboard
Widget appears but doesn't respond
- Verify the agent is active
- Check network connection
- Check logs in the dashboard
Security
Important
- The
agentIdis public and visible in source code - Don't include sensitive data in the configuration
- Rate limiting is enabled by default to prevent abuse
Next Steps
- Customize appearance from the dashboard
- Monitor conversations
- Analyze metrics