Sleep Statements in Rasa Custom Connector

Hi All, I created a Rasa custom connector and it is working perfectly, but now I want to send the bot messages with some time delay in between. My first instinct was to add a time.sleep statement in between sending each message. But my doubt is will the connector be able to handle other post requests during the time it is sleeping or will all the other post requests be on hold until this is finished? Would it help if the time.sleep is made asynchronous using asyncio.sleep?

Thanks in advance.

1 Like

hi @saurav2000, welcome to forum! Yes, asyncio.sleep should do what you want, pausing the response without blocking other messages from being handled