Hi Subramanian
Thanks for reaching out to Kore.ai Community.
Please find the below solutions to add the filler music during the API call execution. There might be two cases where you can have the service node which calls an API.
- Service node is added after the Entity, Confirmation node (where the bot expects the input from the user).
- Service node is added after the Message node.
Case 1: Service node is added after the Entity, Confirmation node:
- In the entity node, please add the below call control parameters at Entity node → Configuration → IVR Properties → Advanced Controls → Call Control Parameters.
botNoInputGiveUpTimeoutMS : 30000
botNoInputTimeoutMS : 3000
botNoInputRetries : 1
botNoInputUrl :
Attaching the screenshot for reference:
Here, the time you have at botNoInputGiveUpTimeoutMS , botNoInputTimeoutMS is in milliseconds (ms).
The time you have configured at botNoInputTimeoutMS makes that the bot to play the Audio File that you have configured at botNoInputUrl.
- After the service node (Bot Action node), have a message node and use the below script to abort the audio file.
print(voiceUtils.play("<Sample_Message_prompt>",false));
This script will abort the Audio which is being played by the bot once the service node executed successfully.
Attaching the screenshot for your reference:
Attaching the complete flow for your reference:
Case 2: Service node is added after the Message node:
- Have a message node before the Service node to play the Audio. Please configure the below channel override script for SAVG channel in the Advanced mode.
var message = { "type": "command", "command": "redirect", "queueCommand": true, "data": [ { "verb": "play", "url": "<Audio_File_URL>" } ]}print(JSON.stringify(message));
Attaching screenshot for your reference:
- After the Service node, please have a message node and use the below script to abort the audio file.
print(voiceUtils.play("<Sample_Message_prompt>",false));
This script will abort the Audio which is being played by the bot once the service node executed successfully.
Attaching the complete flow for your reference: