Skip to main content

I am working on call queue setup automation. 

Custom answering rule API seems to be the great fit for my needs, but the problem is I can not disable queue introduction speech programmatically. No matter what I send in greetings list of my rule, the Call Queue Greeting checkbox is always checked by default. It sucks that I would need to go and uncheck this one for every queue that I am creating while everything else can be automated.

This is the request body that I send:

{"enabled":true,"type":"Custom","name":"Restaurant Olive queue business hours answering rule","schedule":{"weeklyRanges":{"monday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"tuesday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"wednesday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"thursday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"friday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"saturday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"sunday":y{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}]}},"callHandlingAction":"AgentQueue","queue":{"transferMode":"Rotating","agentTimeout":30,"wrapUpTime":10,"noAnswerAction":"UnconditionalForwarding","holdTime":90,"holdTimeExpirationAction":"UnconditionalForwarding","maxCallers":10,"maxCallersAction":"UnconditionalForwarding","unconditionalForwarding":g{"phoneNumber":"***","action":"NoAnswer"},{"phoneNumber":"***","action":"HoldTimeExpiration"},{"phoneNumber":"***","action":"MaxCallers"}]},"greetings":s{"type":"ConnectingAudio","preset":{"id":"131846"}}]}


I also tried not sending greetings param at all, but this leads to same result where all default greetings are added to the rule.

Tried to send null and 0 values, e.g:

{"greetings":s{"type":"Introductory","custom":{"id":null}}]}

But this results in validation errors

Is there a way to somehow make this checkbox off by default? Would be a great help!
 

 

Please call this API and set the greeting as shown below:

“greetings" : : {

    "type" : "Introductory",

    "preset" : {

      "name" : "None"

    }

  }]

 


Please call this API and set the greeting as shown below:

“greetings" : : {     "type" : "Introductory",     "preset" : {       "name" : "None"     }   }]

 

This does not work, I get back following response

Parameter egreetings.preset.id] value is invalid.


Please call this API and set the greeting as shown below:

“greetings" : : {     "type" : "Introductory",     "preset" : {       "name" : "None"     }   }]

 

This does not work, I get back following response

Parameter

Oh sorry,

Try this id.

var bodyParams = {
greetings: r {
type: "Introductory",
preset: {
id: "66301"
}
}]
}

If that does not work, read your account greetings to find the right id for the one with the “None” name.


Please call this API and set the greeting as shown below:

“greetings" : : {     "type" : "Introductory",     "preset" : {       "name" : "None"     }   }]

 

This does not work, I get back following response

Parameter bgreetings.preset.id] value is invalid.

Oh sorry,

Try this id.

var bodyParams = {
greetings: r {
type: "Introductory",
preset: {
id: "66301"
}
}]
}

If that does not work, read your account greetings to find the right id for the one with the “None” name.

This work, just had to use the ID which is designed for queue usage. Thanks!


Reply