How to delay the load of a chatbot?

How can I delay the loading of a chatbot?
I want to load this bot after 10 seconds:

<script>var Chatbot={appId:"s45a589f2-72f4-4d76-9d2d-XXXXXXXXXX",mode:"livechat"};!function(t,a){var e=function(){(e.q=e.q||[]).push(arguments)};e.q=e.q||[],t.ChatbotApi=e;!function(){var t=a.createElement("script");t.type="text/javascript",t.async=1,t.src="https://widget.installchatbot.com/static/js/widget.js";var e=a.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();}(window,document)</script>

I tried to address it by getElementsByTagName("script") but had no success.

8 thoughts on “How to delay the load of a chatbot?”

Leave a Comment