nishh_72802
09/22/2025, 7:42 PMAI Evy
09/22/2025, 7:42 PMAI Evy
09/22/2025, 7:42 PMAI Evy
09/22/2025, 7:42 PMid, 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) ]() .AI Evy
09/22/2025, 7:42 PMnishh_72802
09/22/2025, 7:43 PMAI Evy
09/22/2025, 7:43 PMAI Evy
09/22/2025, 7:43 PMdata-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.AI Evy
09/22/2025, 7:43 PMAI Evy
09/22/2025, 7:43 PM