Resources

Products

How do I open the web messenger once my website loads in Freshchat ?

Modified on: Mon, 6 Jun, 2022 at 3:43 PM

The web messenger in Freshchat also known as the conversations widget, is used to deliver a convenient and contextual conversational messaging experience for customers. If you want to open it on load of the website please add the below code under 

window.fcWidget.init({
"open": True, 


If you want the widget to open in x seconds, then make use of the following code,
<script>
var timeInMillis = 5000;
setTimeout(function() {
window.fcWidget.init({
token: "webchattoken",
host: "https://wchat.freshchat.com"
});
},timeInMillis);
</script>
<script src= "https://wchat.freshchat.com/js/widget.js" async></script>