Listen to events from your Bot; this is useful to make your website react to the ongoing conversation on the webchat.
There are Built-In events you can use to customize the behaviour of your application.
Here is a comprehensive list of the predefined events on the platform:
Webchat initialized and interlocutor created.
The webchat window has been opened by the user.
The webchat window has been closed by the user.
The user sent a reply to the bot in the webchat.
Last reply send by user, as a string.
The user interacted with the webchat
Last reply send by user,
The bot was successfully swapped.
Bot id of the new bot, as a string.
The user was successfully swapped.
User Id of the new user, as a string.
The user used autocomplete
Label of the autocomplete selected
The user clicked on a link ( text or card )
Url and label of the link.
Use the Send Event action to send a custom event from one of the steps of your stories.
When listening to the event, take care of using the exact same syntax as the one configured on the Send Event action of your bot.