I encountered a problem where a user abandons their chatbot flow (ex: closes their tab).
Since I'm managing a queue of users to perform an action (make payment) with an array, their position in the array gets stuck there.
With my current chatbot setup, the only way a user can get removed from the array (queue) is to restart or complete the chatbot flow.
Btw, I'm managing the queue via API calls to my database using Twidget.io.
With Typebot, is it possible to execute a script when a user abandons their chatbot session? Something like an event listener?
I would love to be able to execute a script to remove the current user from the array (queue).
Thanks!