Can I push data to rest api when session is over?

I want to push user data periodicly to a remote Rest API. Is there a way to detect when user session is over when he is interacting with the bot on WhatsApp? The user can stop interacting with the bot at any point, I am looking for a reliable way to trigger the data push

1 Like

For web channel, you can use event trigger but I don’t think that’s possible for the WhatsApp bot.