I’m developing a global fallback counter flow that increments the fallback counter every time the user gives an invalid entry and after n retries, I’ll send him to another flow. Since the switch flow is not working I’m using execute flow-node. So after going to fallback and sending a text message, I’m being redirected to the previous flow and continue with the flow. So I’m looking for a solution to clear the history and stop the execution after giving the end fallback message. I tried looking at the context.history param in the function and tried making it undefined/null but I’m getting an empty Object.
The last message in the image should not appear as this is the end of user and bot conversation