/
How do I delay delivering bubbles in Chatbot using waitTime?

How do I delay delivering bubbles in Chatbot using waitTime?

If you want to delay your chat bot's responses, you can specify a static or dynamic response delay with the waitTime global setting in the Bot out Parser in Bot Provider V2 node or App Settings nodes.

The waitTime specified in Bot out Parser in Bot Provider V2 node overrides the waitTime specified in App Settings.

Static waitTime

  1. In your Orbita Voice project, open Experience Designer.

  2. Open the Bot out Parser in Bot Provider V2 node, or the App Settings node.

  3. Add the code msg.payload.waitTime = 5000. The value is specified in milliseconds.

Dynamic waitTime

The admin user can set wait time dynamically based on the text in the previous chat bubble.

  1. In your Orbita Voice project, open Experience Designer.

  2. Open the Bot out Parser in Bot Provider V2 node, or the App Settings node.

  3. Add the below code.

msg.payload.waitSettings = { mode: 'dynamic', wpm: 165 };

The mode can be dynamic or static.

  • If set to dynamic, the duration of wait time animation will be calculated based on the number of words rendered on the previous bubble. ((#of words in the last bubble ) / (Word Per Minute) ) * 1000

  • If set to static, the duration of wait time animation is taken from the property msg.payload.waitTime

 

Note: WaitTime field is available under Directive Tab controls such as Options, Yes/No, for more information visit 3.3.9 Flow Studio Controls

Related content

How do I add a wait indicator to my chat bot?
How do I add a wait indicator to my chat bot?
More like this
Chatbot Settings
Chatbot Settings
Read with this
3.3.9 Flow Studio Controls
3.3.9 Flow Studio Controls
More like this
Main menu directive
Main menu directive
Read with this
Chatbot V3
More like this
Bot Provider V2 node
Bot Provider V2 node
More like this