# Open your chat widget based on a timer

Select the form. Go to Settings. Open Behaviour. Here, you will find the option
to open the widget after 'x' seconds.





If you set it to '5', then the chat widget will open automatically after a delay
of 5 seconds from the moment the visitor has loaded the website.


HOW IT WORKS

When the user visits for the first time, the chat widget will open after x
seconds. If the user closes the chat widget by pressing the 'X' button, then we
set a cookie to prevent it from opening for the same person.



In other words, the auto-open settings will work only for the first time for a
new user. It doesn't work the second time. This is to make the chat widget less
intrusive.



If you are testing to see if the chat widget opens after x seconds, then we
recommend you to test it in the incognito mode of your browser or a different
browser from your current one.



Note

 * The auto-trigger will be disabled on mobile devices. The above setting will
   only work on desktop devices.
   
   

 * It has to be set to 5 seconds or a greater value.
   
   

 * Setting the timer to '0' seconds, will disable the auto-trigger.
   
   

 * This setting is only available for the form when it is used as Widget. It is
   not applicable when used as Embed or Link.
   
   

 * Please do not mistaken Widget with Launcher. Launcher
   [https://developers.collect.chat/images/chatbot.png] will be loading
   instantly.
   
   

 * If you want the chat widget to open instantly without a delay you can follow
   the steps here
   [https://collect.chat/help/article/1109-open-the-chatbot-instantly-on-page-load].
   
   

Caution



If you think that auto-triggering the chat widget can be annoying, then we
recommend setting it to '0' or turning it off.

Tip

If you want to enable auto open of widget on mobile devices, add the following
code along with the widget code.

var collectchat = window.collectchat || {}; 
collectchat.ready = function() { 
    collectchat.config({
        triggerMobile: true,
    });
}



Also don't forget to publish your changes
[https://collect.chat/help/article/1065-publish-the-chatbot] before testing.