How to re-prompt when the last message from bot is prompting

everytime the bot opened, it always sent an event that can trigger a journey to collect some profile data. the issue is when the user is closing the bot and the bot is prompting the user, the bot lost the prompt context. Please suggest how to solve this condition.

Thank you

The bot maintains the context of the session as long as the session remains active (i.e. if you haven’t closed the website or cleared website cookies). If you continue to experience issues, please provide us with some screenshots/screen recordings. This will help us provide accurate assistance.