https://retellai.com/?utm_source=discord&utm_medium=seo logo
<script id="retell-widget" src="https://dash...
# ❓・ai-evy-support
n
<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="8" 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="" > Hi @AI Evy Does my script is correct now ?
a
Thanks for tagging me @nishh_72802. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) ​
### Answer Your script matches the required and optional attributes for embedding the Retell website chat widget. Here’s a checklist based on the official documentation: -
id
,
src
, and
type="module"
are correct. -
data-public-key
and
data-agent-id
are required and present. -
data-agent-version
,
data-title
,
data-bot-name
,
data-popup-message
,
data-show-ai-popup
,
data-show-ai-popup-time
,
data-auto-open
, and
data-dynamic
are all valid optional attributes. -
data-recaptcha-key
is present and can be left empty if you are not using reCAPTCHA. This script will embed the chat widget as intended. If you want reCAPTCHA protection, you’ll need to provide a valid v3 site key and include the Google reCAPTCHA script in your HTML
<head>
as described in the documentation [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
Why im still not getting response back from ai @AI Evy
a
Thanks for the follow-up, @nishh_72802. I'll get back to you soon.
### Answer Your script for embedding the Retell chat widget looks correct, but if you're not getting a response from the AI, here are a few things to check based on the documentation and community feedback: 1. Make sure your agent is published and the agent version you reference is live. If you set
data-agent-version="8"
, confirm that version 8 is published in your dashboard. If no version is published, use version
0
[(1) ]() [(2) ](

▾

) . 2. If you want the AI to initiate conversation (send the first message) , ensure your agent's settings are configured for "AI speaks first" in the agent builder. This must be set up in your agent, not just in the widget script [(3) ]() . 3. Double-check that your
data-public-key
and
data-agent-id
are valid and correspond to the published agent you want the widget to use [(1) ]() [(4) ]() . 4. If using reCAPTCHA, be sure to include a valid v3 site key and the relevant script in your HTML head. If not using it, leaving it blank is fine, but it shouldn't block responses [(1) ]() . 5. After updating your script or agent settings, fully refresh your webpage (clear cache if necessary) to ensure the latest code and agent version are loaded [(2) ](

▾

) . If you still don't get a response after checking these, confirm your agent is correctly set up in the Retell dashboard and that there are no errors in your browser's console log.
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Introducing Retell Chat - Web chat widget](

https://www.youtube.com/watch?v=SByCDIJkRhE▾

) [[3] Chat Widget Make AI speak First](https://discord.com/channels/1186424376300679209/1387927514415890602) [[4] 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.