Warn user that he's session has expired

Hi, I’m trying to build a chatbot to make orders, and I have a problem with the session. The session expires in 5 minutes, and everything works perfectly, but I need to warn the user in the very moment the session expires that he has lost all data for any form he was filling. A message like Your session has expired, if you want to continue restart conversation, or something like that.

I’ve seen that you can override action_session_start, but that doesn’t warn the user about the session, the only thing you could do with that is warn that a new session was created on the moment the user writes after those 5 minutes. Is there any way to warn the user, without any user interference, like in 5 minutes of inactivity forward a message programmatically.

Not in Rasa, but you could do this in your front end (widget or app).

Why delete the users slots after 5 minutes? Why not keep them even if they come back in 30 mins or ask them if they want to resume their order in action_session_start.

Okey, I’ll try to check if there were some form slots filled to let the user know that he has lost every progress. Is there any way to prevent that if that “event” it’s “triggered”, that the bot utters nlu_fallback or any other action? I mean, when the user comes back he gets the message, sorry but you’ve been afk for too long, but also gets the response for the intent.