https://retellai.com/?utm_source=discord&utm_medium=seo logo
Retellai chatbot widget how to open it automaticly
# ❓・ai-evy-support
a
@AI Evy Retellai chatbot widget how to open it automaticly
a
Thanks for tagging me @Agentral Elkin. I'll look through relevant sources and get back to you shortly.
### Answer You can auto-open the chat widget on page load using the
data-auto-open
attribute. [(1) ]() Set it to
"true"
in your script tag:
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-auto-open="true"
></script>
If you want a delayed popup message instead (e.g., after 5 seconds) , you can use these attributes: -
data-show-ai-popup="true"
– enables popup messages -
data-show-ai-popup-time="5"
– seconds to delay before showing the popup (default: 0)
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.