Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Note

The waitTime specified in Bot out Parser inBot Provider V2node overrides the waitTime specified in App Settings.

Static waitTime

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

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

  3. Add the waitTime parameter to the settings JSON (waitTime: “5000”)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 inBot Provider V2

...

  1. node, or the App Settings

...

  1. node.

  2. Add the below code.

Bot out Parser in Bot Provider V2 code sample with waitTime

...

App Settings code sample with waitTime

...

Code Block
msg.payload = { 
    micInput: false,
    waitTime: 7000,
    waitSettings: {
        mode: 'dynamic',
        wpm: 165
    },
};
return msg;

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