How to specify a user timeout

I think you can do this easily. There is a trick for this.

I assume you have one frontend App - either Web App or Mobile App where you can consuming Rasa REST API.

  1. After getting response from Rasa backend, start a counter in your App
  2. When it reaches 30 seconds, in the background call rasa Rest API with message body as “/restart”
  3. It’s inbuilt in rasa when you send “/restart” is message body it will reset conversation for that user/id.

Body Sample { “sender”: “user”, “message”: “/restart” }

  1. Then show a message to user saying something like “Session ended or thank you” - You need to handle or write this in your frontend code