Receiving Information from Customerly Live Chat

If you'd like to send Customerly events to an outside platform or customize Customerly using specific events, you can use our Live Chat API.


First Inizialize your Customerly Live Chat script


chatOpened is the event fired when someone clicks on the live chat button to open the widget.


customerly("onEvent", "chatOpened", function () {
     //Put your code here
});


chatClosed is the event fired when someone closes the live chat button to open the widget.



customerly("onEvent", "chatClosed", function () {
     //Put your code here
});



profilingQuestionAsked is the event fired when the bot asks for a specific question



customerly("onEvent", "profilingQuestionAsked", function () {
     //Put your code here
});