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 saw some mentions of a “Clear conversation on exit” option, but I can’t find it in the current Studio settings. Can this be done purely via Botpress, or do I need to handle it externally (e.g. via iframe or localStorage hacks)? Looking for a clean, built-in solution. Thanks!
s
I have set it to session storage and it is not working I have checked the configurl and it was set to session storage and I’m not passing a userID manually Do you know why?
p
You can use the window.botpress.restartConversation() if you want to achieve this manually.