Sleep/Delay

63 views
Skip to first unread message

Ramesh Krishnamoorthy

unread,
Oct 12, 2021, 6:44:41 AM10/12/21
to rapidpro-dev
Is there a way to introduce an artificial delay/sleep in the conversational flow? I remember seeing something in those lines but unable to find it anymore. 

We want to introduce a delay of few secs at specific points in the flow. Possible?

Thanks in advance

Ian Lawrence

unread,
Oct 12, 2021, 8:40:40 AM10/12/21
to Ramesh Krishnamoorthy, rapidpro-dev
Hi

You can use a Wait for Response and Continue after waiting (see image). We use this to make sure all media has loaded and to prevent messages getting out of sync
image.png
The issue you might find is that the minimum wait time is 1 minute so we just break out of it if the user sends any message. If it becomes an issue as we are scaling we might patch this to allow more granular wait times

Regards

--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/8a3c7a4c-f502-4134-ac23-4a16884ba733n%40googlegroups.com.


--

Ian Lawrence 

Jozian Ltd is a company registered in England and Wales. Registered offices: 13-15 Commercial Road, Hayle Cornwall UK TR27 4DE 
Company No. 7532806  

Ramesh Krishnamoorthy

unread,
Oct 12, 2021, 10:43:38 AM10/12/21
to rapidpro-dev
Cool. Thanks for the response Ian. Will give it a try and reach out to you if more clarifications are required. Thanks

Eric Newcomer

unread,
Oct 12, 2021, 11:48:37 AM10/12/21
to rapidpro-dev, Ramesh Krishnamoorthy
Just a heads up that it is not recommended to reduce the wait times below one minute. 

There’s been discussion around intentional outbound delays. 

https://github.com/rapidpro/rapidpro/issues/875

Donald Lobo

unread,
Oct 12, 2021, 1:17:37 PM10/12/21
to rapidpro-dev

We ran into the same issue, and in Glific, we introduced a Wait for Time node to make it easier for our NGOs to introduce delay, A lot easier for them to understand :)

lobo

Eric Newcomer

unread,
Oct 12, 2021, 1:43:44 PM10/12/21
to rapidpro-dev, Donald Lobo
To summarize, the current thinking is that to instead introduce a "be more human" checkbox at the channel level, not having to instrument it for every response. This feels like a more natural fit and would avoid aggressive timeout windows that would melt at scale.
Reply all
Reply to author
Forward
0 new messages