Our bot is selection based and on click of particular button it sends a specific payload that triggers custom action.
In custom action I am fetching various user details and setting the slots with the values received in custom action.
(just to check events) I have created a loop that runs 50 times and passes the same payload and triggers that custom action mentioned above.
Every time the custom action is new events are appended in the previous ones thus making the event data so large.
We have a short journey of 7-8 steps after that user comes again and flow starts again. I don’t want to store events for that user in memory after chat is done.
Is there any way to manage such large number of events in memory, because after a period of time it results in significant delay in response.