repairspecialty_64579
10/03/2025, 4:32 PMAI Evy
10/03/2025, 4:32 PMAI Evy
10/03/2025, 4:32 PMhtml
<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_CHAT_AGENT_ID"
data-agent-version="YOUR_AGENT_VERSION"
data-title="YOUR_CUSTOM_TITLE"
data-logo-url="YOUR_LOGO_URL"
data-color="YOUR_CUSTOM_COLOR"
data-bot-name="YOUR_BOT_NAME"
data-popup-message="YOUR_POPUP_MESSAGE"
data-show-ai-popup="true"
data-show-ai-popup-time="5"
data-auto-open="false"
data-dynamic='{"key": "value"}'
data-recaptcha-key="YOUR_GOOGLE_RECAPTCHA_SITE_KEY"
></script>
To get your specific embed code, you'll need to replace the placeholder values with your actual credentials :
1. YOUR_RETELL_PUBLIC_KEY - Get this from your Retell dashboard under Keys → Public Keys [(2) ]()
2. YOUR_CHAT_AGENT_ID - This is the ID of your chat agent [(1) ]()
3. YOUR_AGENT_VERSION - Your agent version number
You should add this script tag within the <head> tag of your Google website's HTML . The widget uses the Retell public key system, allowing direct API calls from the frontend without needing a backend proxy .AI Evy
10/03/2025, 4:32 PMAI Evy
10/03/2025, 4:32 PMAI Evy
10/03/2025, 4:45 PMAI Evy
10/03/2025, 4:45 PM<head> tag containing the Retell chat widget embed code [(1) ]() :
html
<head>
<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_CHAT_AGENT_ID"
data-agent-version="YOUR_AGENT_VERSION"
data-title="YOUR_CUSTOM_TITLE"
data-logo-url="YOUR_LOGO_URL"
data-color="YOUR_CUSTOM_COLOR"
data-bot-name="YOUR_BOT_NAME"
data-popup-message="YOUR_POPUP_MESSAGE"
data-show-ai-popup="true"
data-show-ai-popup-time="5"
data-auto-open="false"
data-dynamic='{"key": "value"}'
data-recaptcha-key="YOUR_GOOGLE_RECAPTCHA_SITE_KEY"
></script>
</head>
The documentation specifies that you should add this script tag within the <head> tag . Make sure to replace the placeholder values with your actual Retell credentials from your dashboard.AI Evy
10/03/2025, 4:45 PMAI Evy
10/03/2025, 4:45 PMrepairspecialty_64579
10/03/2025, 4:51 PMAI Evy
10/03/2025, 4:51 PMAI Evy
10/03/2025, 4:51 PMdata-agent-version line entirely . If you leave the version line but have published versions, it will use the most recent version .
2. Verify your public key domain settings
You need to create a public key and set up the allowed domain for your website (including staging environments if applicable) . Make sure your current domain is listed in the allowed domains for your public key .
3. Ensure you're using a chat agent [(2) ]()
The chat widget requires a chat agent specifically created for text-based conversations . Voice agents won't work with the chat widget .
4. Check browser console for errors
Open your browser's developer tools and check the console for any JavaScript errors that might indicate what's preventing the widget from functioning properly.
5. Verify all required credentials are correct
Double-check that you've replaced all placeholder values with your actual:
- Retell Public Key
- Chat Agent ID
- Agent Version (if applicable)
The widget uses the Retell public key system for direct API calls from the frontend , so any misconfiguration in these credentials will prevent it from working.AI Evy
10/03/2025, 4:51 PMAI Evy
10/03/2025, 4:51 PMrepairspecialty_64579
10/03/2025, 5:38 PMAI Evy
10/03/2025, 5:38 PMrepairspecialty_64579
10/03/2025, 5:38 PMAI Evy
10/03/2025, 5:38 PMhtml
<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_CHAT_AGENT_ID"
data-agent-version="YOUR_AGENT_VERSION"
></script>
*2. Check reCAPTCHA configuration (if enabled) *
If you're using reCAPTCHA protection, ensure you have:
- Added the Google reCAPTCHA v3 script to your HTML <head> tag
- Enabled reCAPTCHA protection for your public key in the Retell Public Keys settings
- Note that only reCAPTCHA v3 is supported
3. Test with minimal configuration
Try using only the required attributes first:
- data-public-key - Your Retell public key
- data-agent-id - Your chat agent ID
Remove all optional attributes temporarily to isolate the issue.
4. Verify agent configuration
Ensure your agent is properly configured as a chat agent, not a voice agent, since the chat widget is specifically for text-based interactions .
If the widget still doesn't work after these checks, I'd recommend visiting [Contact Sales]() or [) for additional support. Would you like a general answer based on my knowledge instead?AI Evy
10/03/2025, 5:38 PMAI Evy
10/03/2025, 5:38 PM