Sending "Loading..Please Wait" message to users

Hi!

I have made a simple chatbot using rasa, which fetches data through an API when the user asks for it. But because the data is huge, sometimes it takes more than 2 minutes to fetch that data. I want to keep the user interacted and send proactive notifications like “Please wait, the data is currently being loaded” if it takes too long to respond.

How do I calculate the response time, as it varies with each query and send notifications to the user?

Cant tell you, how long your calculations run, but you may create an action which returns the ‘pls wait’-message (and may also estimate the loading-time) and then triggers the one which does the calculation via an FollowupAction-Event.