Setting a time delay in message output


(Makoto Kern) #1

How would I control the time delay between output messages so that the flow of the conversation is more natural between the user and the bot?


(Subrahmanyam Donepudi) #2

@mkern please add service nodes between the messages and configure endpoints at them which respond back with a delay.

For instance, if I add service node which hits the end point, say, https://httpbin.org/delay/3 , after a message node m1 and then add message node m2, a three second delay will be induced between the messages during execution of the dialog .


(Subrahmanyam Donepudi) #3

Hi @mkern ,
For demonstrating the same as mentioned in my earlier comments, I have build a dialog with 2 message nodes in it with a service node between them. This service node is inducing a 3 sec delay between the responses.

Please refer to the below screenshots for your reference.

image

image


archived #4

unarchived #5

(Felipe Marquardt) #6

I tried using the above method but I´m missing someting. After some seconds, the bot shows a error message that: “Something went wrong and the task is being discarded.”

On the service task, I only have to paste the url? What Request URL method must be used?
Do I must paste the script of the URL file on the bot or just the URL?


(Subrahmanyam Donepudi) #7

@felipe The example mentioned in my previous comments is to explain the feasibility to induce a time delay between the message nodes using a service node. The endpoint used is a third party endpoint which uses the GET method but the developer could create his own endpoint which possibly does the same.