kavindya_k
09/18/2025, 9:17 AMAI Evy
09/18/2025, 9:18 AMAI Evy
09/18/2025, 9:18 AM<script> tag:
- data-public-key (your Retell public key)
- data-agent-id (your voice agent ID)
- data-widget="callback"
- data-phone-number (your Retell phone number)
If any of these are missing or incorrect, the widget will not function properly. Also, if you enabled reCAPTCHA, make sure data-recaptcha-key is set correctly and your site has loaded the reCAPTCHA script. Here’s the example from the documentation:
html
<script
id="retell-widget"
src="<https://dashboard.retellai.com/retell-widget.js%22>
data-public-key="key_xxxxxxxxxxxxxxxxxxxxx"
data-agent-id="agent_xxxxxxxxxxxxxxxxxxx"
data-widget="callback"
data-phone-number="+15551234567"
data-title="Request a Call"
data-countries="US,CA,GB"
data-tc="<https://example.com/terms%22>
data-color="#FFA07A"
data-recaptcha-key="YOUR_GOOGLE_RECAPTCHA_SITE_KEY"
></script>
If all fields are present and the error persists, check your browser console for more details—there might be an issue with the credentials, agent ID, phone number, or reCAPTCHA integration [(1) ]() .AI Evy
09/18/2025, 9:18 AMAI Evy
09/18/2025, 9:18 AMkavindya_k
09/18/2025, 9:20 AMAI Evy
09/18/2025, 9:21 AMAI Evy
09/18/2025, 9:21 AMAI Evy
09/18/2025, 9:21 AM