I made a chatbot that collects the data from the users and stores them in a database. If a user just fills half of the form and goes idle then I don’t want already filled data to be lost. Currently, I am performing a custom action that stores slots in the database at the end of the form (custom action is triggered when all the slots are filled). I don’t want to perform a database call every time a slot is filled. Instead, if any slots are not filled and the user goes idle I want to perform the action just before the session expires.
Thanks in advance.