danday9
10/23/2025, 8:56 PMAI Evy
10/23/2025, 8:56 PMAI Evy
10/23/2025, 8:57 PMYOUR_RETELL_PUBLIC_KEY with your actual Retell public key and YOUR_CHAT_AGENT_ID with your actual chat agent ID. [(1) ]() [(2) ]() You can find your public key in the Retell dashboard under Keys → Public Keys. [(2) ]()
2. Verify agent version
The data-agent-version attribute should contain your agent version number (e.g., "0" for version 0) . [(1) ]() If you're unsure of the version, you can retrieve agent versions using the API. [(3) ]()
3. Check allowed domains
Your public key must have your website domain added to its allowed domains list. [(2) ]() Navigate to Public Keys in your Retell dashboard, click on your public key, and add the domain where your widget is embedded (e.g., example.com) . For local testing, add localhost to the allowed domains.
4. Remove reCAPTCHA if not configured
Since you're not using Google reCAPTCHA, remove the data-recaptcha-key attribute entirely from your script tag. [(1) ]()
5. Ensure you're using a chat agent
The chat widget requires a chat agent specifically created for text-based conversations, not a voice agent. [(1) ]() [(4) ]()
Here's a minimal working example: [(1) ](AI Evy
10/23/2025, 8:57 PMAI Evy
10/23/2025, 8:57 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="0"
></script>
Check your browser's developer console for any error messages that might indicate what's preventing the AI from responding.
**AI Evy
10/23/2025, 8:57 PMAI Evy
10/23/2025, 8:57 PMdanday9
10/23/2025, 9:00 PMdanday9
10/23/2025, 9:02 PMAI Evy
10/23/2025, 9:04 PMAI Evy
10/23/2025, 9:04 PMdata-dynamic attribute allows you to pass dynamic variables to your chat agent. [(1) ]() [(2) ]() These variables inject personalized data into your agent's responses for each specific chat session. [(1) ]()
The format is JSON key-value pairs: [(2) ]()
html
data-dynamic='{"key": "value"}'
Common use cases include passing customer information like names, order IDs, or other context-specific data that your agent can reference during the conversation. [(1) ]()
For example, if you wanted to pass a customer name and order number, you might use:
html
data-dynamic='{"customer_name": "John Doe", "order_id": "12345"}'
These variables can then be referenced in your agent's prompts using the {{variable_name}} syntax. For instance, your agent could greet users with "Hello {{customer_name}}, I see you're asking about order {{order_id}}".
Since you've verified all the basic setup steps and the widget window opens but the AI isn't responding, check your browser's developer console for any JavaScript errors. Also verify that your chat agent is properly configured and published in the Retell dashboard. [(2) ]()AI Evy
10/23/2025, 9:05 PMAI Evy
10/23/2025, 9:05 PMdanday9
10/23/2025, 9:12 PMAI Evy
10/23/2025, 9:12 PMAI Evy
10/23/2025, 9:12 PMexample.com, app.example.com)
4. If testing locally, ensure localhost is also in the allowed domains
5. Save any changes you make
Important: The domains must match exactly. For example, if your widget is on www.example.com, you need to add www.example.com specifically, not just example.com.
After updating your allowed domains, refresh your webpage and test the widget again. The chat widget will only work on domains that are explicitly listed in your public key's allowed domains configuration.
If the issue persists after verifying the domain configuration, check your browser's developer console for any error messages that might indicate authentication or connection issues.AI Evy
10/23/2025, 9:13 PMAI Evy
10/23/2025, 9:13 PMdanday9
10/23/2025, 9:14 PMAI Evy
10/23/2025, 9:14 PMAI Evy
10/23/2025, 9:14 PMcodepen.io to your allowed domains list, which is correct. [(1) ]()
However, CodePen serves content from multiple subdomains depending on the view mode. You may need to add these specific domains to your allowed domains list:
- codepen.io (for the editor view)
- cdpn.io (CodePen's CDN domain where live previews are served)
To configure this:
1. Navigate to the Public Keys section in your Retell dashboard
2. Click on the public key you're using
3. Add both codepen.io and cdpn.io to your allowed domains list
4. Save your changes
The allowed domains feature prevents unauthorized use of your public key on other websites, so the domains must match exactly where your widget is being loaded.
After adding cdpn.io, refresh your CodePen preview and test the widget again. Check your browser's developer console for any error messages that might indicate domain authentication issues.AI Evy
10/23/2025, 9:14 PMAI Evy
10/23/2025, 9:14 PMdanday9
10/23/2025, 9:22 PMAI Evy
10/23/2025, 9:22 PMAI Evy
10/23/2025, 9:23 PMdata-public-key, data-agent-id, data-title, data-color, and data-dynamic, but don't mention any built-in typing indicator functionality or customization options for response loading states.
If you'd like to explore this further, you might want to:
- Check out the [Retell Website Widget documentation]() for any updates on customization options
- Visit [Contact Sales]() to inquire about this feature
- Visit [) for community discussions
Would you like a general answer based on typical chat widget implementations instead?AI Evy
10/23/2025, 9:23 PMAI Evy
10/23/2025, 9:23 PMdanday9
10/23/2025, 9:35 PMAI Evy
10/23/2025, 9:35 PMAI Evy
10/23/2025, 9:35 PMYOU need to start the conversation.
Start the chat with "Hey! Saw your replied to our ad about an apartment in Atlanta. Want me to send you some available options?"
Additionally, there was a fix implemented where you can send a starting message with empty content to trigger the beginning message behavior.
If you're still experiencing issues with the initial message not appearing, verify that your agent is configured with "Agent-First" conversation initiation and that you've set either a fixed welcome message or appropriate prompt instructions. [(1) ]()
---
**AI Evy
10/23/2025, 9:35 PMAI Evy
10/23/2025, 9:35 PM