• Resolved andreapari

    (@andreapari)


    Hello,
    is there a way to automatically open the entire chat window after N seconds? I know I can customize this with a JS script, but what event I have to trigger?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kamiltidio

    (@kamiltidio)

    Hi!

    Thank you for writing in.

    The following code should fully open the chat after 10 seconds.

    <script>
      (function() {
        function onTidioChatApiReady() {
          var timeoutInSeconds = 10;
          setTimeout(function() {
            tidioChatApi.open();
          }, timeoutInSeconds * 1000)
        }
        if (window.tidioChatApi) {
          window.tidioChatApi.on('ready', onTidioChatApiReady)
        } else {
          document.addEventListener('tidioChat-ready', onTidioChatApiReady);
        }
      })();
    </script>

    Please let me know if you’ll need any further assistance!

    Thread Starter andreapari

    (@andreapari)

    Hi kamiltidio,
    thank you, this is what I needed!

    Greetings,
    Andrea

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Automatically open the entire chat window’ is closed to new replies.