https://discord.gg/botpress logo
Clear conversation on exit
# šŸ¤help
s
Hi, I’m using Botpress Cloud 2025 for a production chatbot. I want to make sure that every time a user closes the tab or reloads the page, the conversation resets – meaning all messages are cleared and the conversation starts fresh. I’ve tried to set the storage location to session storage And it still didn’t work. Can this be done purely via Botpress, or do I need to handle it externally (e.g. via iframe)? Looking for a clean, built-in solution. Thanks!
p
You would need to identify those events in your code and call window.botpress.restartConversation(). Hope this helps!
11 Views