https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hi <script id="retell-widget" src="https:...
# ❓・ai-evy-support
n
Hi @AI Evy <script id="retell-widget" src="https://dashboard.retellai.com/retell-widget.js" type="module" data-public-key="public_key_a0acf11a28161ca549599" data-agent-id="agent_0c23b39db137ea05a7ff005be4" data-agent-version="V8" data-title="Art of a Man" data-bot-name="May" data-popup-message="Hello! I’m May. Ask me anything about Art of a Man!" data-show-ai-popup="true" data-show-ai-popup-time="5" data-auto-open="false" data-dynamic='{"source":"website"}' data-recaptcha-key="" > why this script isnt working ?
a
Thanks for tagging me @nishh_72802. I'll look through relevant sources and get back to you shortly.
### Answer Your script setup closely matches the documented example for embedding the Retell website widget, but there are a few things to check based on the official requirements: 1. The value for data-agent-version should be a number (like 0, 1, 2, etc.) , not a string like "V8". If you want to use a specific version, set it as a number (e.g., data-agent-version="8") . If omitted, it will use the default published version [(1) ]() . 2. The attributes data-public-key and data-agent-id must be correct and correspond to a valid public key and an existing chat agent ID. Double-check these values in your Retell dashboard [(1) ]() [(2) ]() . 3. If you are not using reCAPTCHA, you can omit the data-recaptcha-key attribute or leave it unset. If you want to enable bot protection, ensure you use a valid Google reCAPTCHA v3 site key (v2 is not supported) [(1) ]() . 4. Make sure the script tag is placed inside your HTML tag as documented . Here is the official example for reference:
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_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 learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Retell AI Chat Agent – Real-Time Web Chat Automation Widget | Retell AI](https://www.retellai.com/blog/meet-retell-chat-agents-build-smarter-web-chats) ​
Check your browser console for errors, and verify your agent is published and accessible. If you still have issues, ensure there are no CSP or adblocker restrictions preventing the widget from loading.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.