Yonny
08/26/2025, 4:17 PMAI Evy
08/26/2025, 4:17 PMAI Evy
08/26/2025, 4:18 PMexample.com, app.example.com)
4. Save your changes
For Local Testing:
To test your integration locally, add localhost to your allowed domains list . This enables development and testing on your local machine before deploying to production .
Security Best Practices:
- Only add domains you control to the allowed domains list
- Regularly review your allowed domains to ensure they're up-to-date
- Use the most restrictive domain settings possible for your use case
Managing Your Public Keys:
You can create, view, and manage your public keys from the Retell dashboard by navigating to the Public Keys section . Once configured, you can copy the public key to use with the Retell Chat Widget on your website .
Public keys are specifically designed for authenticating the Retell Chat Widget when embedded on your website and are safe to include in frontend applications for this specific purpose .AI Evy
08/26/2025, 4:18 PMAI Evy
08/26/2025, 4:18 PMYonny
08/26/2025, 5:35 PMYonny
08/26/2025, 5:45 PMYonny
08/26/2025, 5:45 PMAI Evy
08/26/2025, 5:45 PMAI Evy
08/26/2025, 5:46 PM<head> tag with all required attributes [(1) ]() :
html
<script
id="retell-widget"
src="<https://dashboard.retellai.com/retell-widget.js%22>
type="module"
data-public-key="YOUR_RETELL_PUBLIC_KEY"
data-agent-id="YOUR_RETELL_CHAT_AGENT_ID"
data-agent-version="YOUR_RETELL_CHAT_AGENT_VERSION"
data-title="YOUR_CUSTOM_TITLE"
data-logo-url="YOUR_LOGO_URL"
data-color="YOUR_CUSTOM_COLOR"
></script>AI Evy
08/26/2025, 5:46 PMdata-agent-version line entirely [(3) ]() . If you leave the line but have versions, replace it with "0" . If you don't specify data-agent-version, it will use the latest version of the agent [(1) ]() .
Testing Steps:
1. Add localhost to your allowed domains for local testing [(4) ]()
2. Verify your public key and agent ID are correct [(1) ]()
3. Check browser console for specific error messages
Since the Website Widget feature doesn't require special enablement according to the documentation, the issue is likely with domain configuration or script implementation. If these steps don't resolve the issue, you may need to contact support for account-specific troubleshooting.AI Evy
08/26/2025, 5:46 PMAI Evy
08/26/2025, 5:46 PMYonny
08/26/2025, 5:51 PMYonny
08/26/2025, 5:52 PMAI Evy
08/26/2025, 5:52 PMAI Evy
08/26/2025, 5:55 PMAI Evy
08/26/2025, 5:55 PMAI Evy
08/26/2025, 5:55 PMAI Evy
08/26/2025, 5:57 PMYonny
08/26/2025, 5:59 PMAI Evy
08/26/2025, 5:59 PMAI Evy
08/26/2025, 5:59 PM<head> tag [(1) ]() :
html
<script
id="retell-widget"
src="<https://dashboard.retellai.com/retell-widget.js%22>
type="module"
data-public-key="YOUR_RETELL_PUBLIC_KEY"
data-agent-id="YOUR_RETELL_CHAT_AGENT_ID"
data-agent-version="YOUR_RETELL_CHAT_AGENT_VERSION"
data-title="YOUR_CUSTOM_TITLE"
data-logo-url="YOUR_LOGO_URL"
data-color="YOUR_CUSTOM_COLOR"
></script>
Testing the Widget:
After adding the widget to your website, test it by loading your website, clicking the floating button (bottom right, robot icon) , and starting a conversation with your agent . The widget will automatically handle chat sessions and persist previous chats in localStorage .
Domain Configuration:
Ensure your allowed domains are configured correctly in the Public Keys section of your Retell dashboard [(2) ]() . For testing on localhost, add localhost to your allowed domains list .
If the script loads but the UI doesn't mount, this could be a technical issue requiring direct support. You can:
- Visit [Contact Sales]()
- Visit [)
Would you like me to provide a general answer based on my knowledge instead?AI Evy
08/26/2025, 5:59 PMAI Evy
08/26/2025, 5:59 PMAI Evy
08/26/2025, 6:28 PM