Ability to introduce delays if bot has many messages to send to customer?


(Ajay) #1

The way it is done is to call a web-service which responds in x seconds. You can chain these service calls after or before message nodes.

Comment down if more information needs to be followed on this post.


(Yoga Ramya Mendu) #2

Please refer the following community post for further details:

Regards,
Yoga Ramya


(Subrahmanyam Donepudi) #3

If the developer configured botkit at the bot and the botkit is to subscribed to the event “on message”, the delay can induced from the bot kit itself using a timeout function based on the on_bot_message while sending the message to the platform using sdk.sendUserMessage.


(Sharvari Dongre) #4

Could you please give any sample code of the botkit to add delay using on_bot_message?


(Subrahmanyam Donepudi) #5

@sharvari4810c, I believe you could use the setTimeout function to achieve this.
Is there any particular use case you have in mind to induce delay at each message?
If you were to induce delay only between consecutive message node, why not use a service node instead as we explained in the previous replies?

@ajay.putti @yogaramya.mendu FYI