How do I make the Messaging Chat Widget pop up automatically after the website loads | Community
Skip to main content

How do I make the Messaging Chat Widget pop up automatically after the website loads

  • November 23, 2022
  • 7 replies
  • 0 views

Izdine

No text available

7 replies

  • November 25, 2022
Hi Izdine,
 
At the moment there's no option to trigger the Messaging widget to pop up after a minute. But, you can work with your developer to keep the widget open. You can provide them this developer documentation API that you can add to the Messaging snippet code to keep the widget open:
 
Web Widget API
 
I hope this helps! Thank you!
 

Izdine
  • Author
  • November 25, 2022

It works well, Thank you!

To whom it may concern:

<script type="text/javascript">
  zE(function(){
        zE('messenger', 'open');
    });
</script>

Izdine
  • Author
  • November 25, 2022

If you want to add time to load Messaging Widget

<script type="text/javascript">
  window.setTimeout(function() {
     zE(function(){
        zE('messenger', 'open');
    });
    //You can add more APIs on this line
  }, 10000); //time’s in milliseconds - 10 seconds = 100000
</script>

 


John160
  • June 8, 2023

Where do I insert this code in my template to have this happen?


  • June 12, 2023
Hi John,
 
You will need to insert the zE script / code after the messaging web widget snippet code. For reference, please see below screenshot:
 

I hope that helps!
 

John160
  • June 12, 2023

That is helpful, but which file within my help center contains that snippet?


  • June 13, 2023
Hi John,

If you're using Help Center portal you will need to paste the code inside the script.js template. For reference, please see below screenshot:


I hope that helps. Thank you!