Overview
Once you’ve configured and tested your agent in the Playground, deploying it to your website is straightforward. The platform provides deployment channels that let you add your AI assistant to any website with just a few lines of code.Deployment Channels
The Deploy section offers multiple ways to integrate your agent:Chat Widget
The most common deployment option. Adds a floating chat bubble to your website that visitors can click to interact with your agent.
Help Page
Host a dedicated help page where users can chat directly with your agent. Ideal for support centers and documentation sites.
Chat Widget Deployment
The chat widget is an embeddable component that adds AI-powered chat to any website. It appears as a floating bubble in the corner of your page.Getting the Embed Code
Navigate to Deploy → Chat Widget in your agent’s menu. The embed code section displays two script tags that you’ll need to add to your website:Your agent’s unique public key is automatically included in the embed code. This key identifies your specific agent and loads its configuration, styling, and knowledge base.
Copying the Code
- Locate the Embed Code section at the bottom of the Playground page or in the Chat Widget deployment settings
- Click the copy button (clipboard icon) in the top-right corner of the code block
- The complete embed code is copied to your clipboard
Adding the Script to Your Website
Basic Installation
Add the embed code to your website’s HTML. The scripts should be placed near the closing</body> tag for optimal performance:
Placement Options
| Location | Recommendation | Use Case |
|---|---|---|
Before </body> | Recommended | Most websites - ensures page content loads first |
Before </head> | Alternative | Sites needing the widget immediately available |
| Via tag manager | Advanced | Sites using Google Tag Manager or similar tools |
Platform-Specific Instructions
WordPress
For WordPress sites, you can add the embed code using one of these methods:Theme Customizer
Theme Customizer
- Go to Appearance → Customize in your WordPress admin
- Find the Additional CSS/Scripts section (varies by theme)
- Add the embed code to the footer scripts area
- Click Publish to save changes
Plugin Method
Plugin Method
- Install a header/footer scripts plugin (e.g., “Insert Headers and Footers”)
- Navigate to the plugin settings
- Paste the embed code in the Footer Scripts section
- Save your changes
Theme Files
Theme Files
- Go to Appearance → Theme File Editor
- Select
footer.phpfrom the right sidebar - Add the embed code just before the closing
</body>tag - Click Update File
Shopify
Add the chat widget to your Shopify store:- Go to Online Store → Themes in your Shopify admin
- Click Actions → Edit code on your active theme
- Open
theme.liquidfrom the Layout folder - Paste the embed code just before the closing
</body>tag - Click Save
Webflow
For Webflow sites:- Open your project in the Webflow Designer
- Go to Project Settings → Custom Code
- Paste the embed code in the Footer Code section
- Publish your site to apply changes
React / Next.js
For React-based applications, add the script dynamically:Vue.js
For Vue applications:Google Tag Manager
To deploy via Google Tag Manager:- Create a new Custom HTML tag in GTM
- Paste the embed code in the HTML field
- Set the trigger to All Pages (or specific pages)
- Test in Preview mode
- Publish your container
Widget Customization
Before deploying, customize your widget appearance in the Deploy → Chat Widget settings:Styling Options
| Setting | Description |
|---|---|
| Avatar | Choose the 3D avatar that represents your agent |
| Appearance | Light or dark theme for the chat interface |
| Brand Color | Your primary accent color |
| Bubble Position | Left or right corner of the screen |
| Bubble Icon | Custom icon for the chat bubble |
Content Settings
| Setting | Description |
|---|---|
| Welcome Message | Initial greeting when chat opens |
| Header Title | Custom title in the widget header |
| Suggested Questions | Pre-populated questions to help users start |
| Languages | Available language options for visitors |
All customization changes require clicking Save before they take effect. The live preview in the settings page shows how changes will look.
Verifying Your Deployment
After adding the embed code to your website:Troubleshooting
Widget not appearing
Widget not appearing
Possible causes:
- Script not loading due to Content Security Policy (CSP)
- JavaScript error on the page blocking execution
- Ad blocker interfering with the widget
- Check browser console for errors (F12 → Console)
- Add the widget domain to your CSP allowlist
- Disable ad blockers temporarily to test
- Verify the embed code is correctly placed in your HTML
Widget loads but doesn't respond
Widget loads but doesn't respond
Possible causes:
- Invalid or expired public key
- Network connectivity issues
- Agent not properly configured
- Verify the public key matches your agent
- Check your agent is active in the dashboard
- Test in the Playground to ensure the agent works
Styling looks incorrect
Styling looks incorrect
Possible causes:
- CSS conflicts with your website styles
- Unsaved changes in widget settings
- Browser caching old styles
- The widget uses shadow DOM to isolate styles, but global resets may affect it
- Save changes in the Chat Widget settings page
- Hard refresh your page (Ctrl+Shift+R / Cmd+Shift+R)
Widget appears on wrong pages
Widget appears on wrong pages
Possible causes:
- Embed code added to global template
- Use conditional logic in your CMS to show the widget only on specific pages
- Use Google Tag Manager with page-specific triggers
- For developers: conditionally render the script based on route
Security Considerations
Best Practices
- Use HTTPS: Always serve your website over HTTPS to ensure secure communication with the widget
- Review content: The agent only responds based on its knowledge base - ensure no sensitive information is included in sources
- Monitor conversations: Regularly review conversation logs for any issues or abuse
Help Page Deployment
For a standalone help page experience:- Navigate to Deploy → Help Page in your agent’s menu
- Click Setup to configure your help page
- Customize the page appearance and branding
- Share the provided URL or embed it in your site
- Dedicated support portals
- Documentation search
- Customer self-service centers