JS API - how to use the addEvent() method?

From the api docs I see that there is a method addEvent that can be used to send custom events.
Where are these events received/listened to?
Would it be possible to implement the following feature with them:

  • user is struggling in my webpage (multiple times attempting to perform the same task)
  • i detect this behaviour and use the api to call addEvent(‘user_struggling’)
  • this event is received on the tawk.to dashboard and an automatic message is sent to the user
    Thanks!
1 Like

Hi @mmribeiro,

Thanks for your query. The events are saved on the contact’s timeline.

Regarding your feature request, this isn’t possible with the current scope of our API, but we will consider the idea for future development.

Let me know if you have any other questions.

Thanks,
Kristaps

2 Likes