Interaction between webpage and Rasa bot

Hi guys! I’ve built a bot and I’ve integrated it in my webpage with some funny interactions like for example: according to the photo that the user is seeing, if the user ask what is the character in the photo without specifying the name of the character, the bot can answers without problem, and other similar interactions.

Now I’m thinking to create an interaction that warns the user with a funny message after a period of inactivity. Like for example the bot isn’t used for one minute, so the bot asks “How can I help you?”. It’s just an example. Can you help me about this interaction?