Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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 = { 
    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

  • No labels