# Open the chatbot widget instantly on page load

You can set the chatbot widget to open instantly on page load by setting the
OpenOnLoad configuration
[https://developers.collect.chat/#/initializing?id=collectchatconfigsettings] to
true.



For example:

<script>
var collectchat = window.collectchat || {};
collectchat.ready = function() {
    collectchat.config({
        openOnLoad:true
    });
}
</script>

Adding this to your webpage where the chatbot snippet code is added will do the
trick.



Note



Your website visitors may not like the chatbot widget auto-opening always. So,
please be cautious and take feedback when you're using this functionality.