https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Chatbot widget does not wor...
# ❓・ai-evy-support
p
@AI Evy Chatbot widget does not work, why?
a
Thanks for tagging me @paulogaudencio. I'll look through relevant sources and get back to you shortly.
### Answer The Retell Chat Widget might not work for several common reasons: Domain Whitelisting Issues The most common issue is domain whitelisting [(1) ]() . You need to ensure your domain is properly whitelisted in the Retell dashboard for your public key . If you're hosting on a platform like Google Sites, you may need to whitelist both your custom domain and the hosting platform domain . Required Setup Components To embed the chat widget, you need [(2) ]() : - Your Retell Public Key - Your Retell agent ID (the ID of the chat agent you created) - Proper script tag placement in the HTML head section Script Tag Configuration The widget must be embedded using the correct script tag format :
Copy code
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>
Agent Configuration If the initial message from the agent doesn't trigger when opening the chatbot, you need to set conversation initiation to Agent-First and ensure the correct agent version is specified in the embed script [(3) ]() . Testing Steps After adding the widget to your website, test it by [(2) ]() : 1. Loading your website 2. Clicking the floating button (bottom right, robot icon) 3. Starting a conversation with your agent If you're still experiencing issues, double-check that your public key domain whitelist matches exactly where the widget is embedded [(1) ]() .
​ To learn more, see the sources I considered: [[1] Chat bot not responding](https://discord.com/channels/1186424376300679209/1384593638499160124) [[2] Retell Chat Widget](https://docs.retellai.com/deploy/chat-widget) [[3] few questions regarding new chatbot](https://discord.com/channels/1186424376300679209/1385447905942306846) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.