### 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:
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>