I'm trying to add an inQueue call flow from flowscripting sdk using the function createFlowInQueueCallAsync. The flow is actually being created but there is a validation error its because prompt for the hold music in InQueueSettings is empty.I can't find any way to set the Hold music of InQueue settings in the ArchFlowInQueueCall documentation
My code to add the InQueue flow is something like this
return flowFactory.createFlowInQueueCallAsync("Flow Name", "", languages.englishUnitedStates, function(inqueueFlow) {
// Add Starting Task
var startingTask = inqueueFlow.startUpObject;
// Add hold music flow
var holdAction = actionFactory.addActionHoldMusic(startingTask, 'Hold Music');
holdAction.prompt.setExpression('Prompt.Hold_Music');
//Publish Flow
return inqueueFlow.publishAsync(true);
Any suggestions on how to properly add an InQueue call flow using flowscripting sdk would really help
Setting the hold music in the in-queue settings is not supported by scripting yet. It will be added soon, but in the meantime here are 2 ways to set the hold music action.
To set the prompt to a literal prompt
Scripting is supposed to default the hold music prompt in the in-queue settings to the on_hold_music system prompt. You said the in-queue call flow was created without that value. That's sounds like a bug we had a while ago but it was fixed. Are you sure you're using the latest version of scripting? The version is printed in the 1st couple lines of the output
@athuldilip, I'm glad things are working. I wanted to let you know that internally we've coded up the changes in Architect Scripting so that you'll be able to set the Hold Music setting in an in-queue call flow. The updated bits still have to go through more testing before we release it so no ETA when they'll be available in npm but unless something changes, which we do not anticipate, example code to do this would look like: