Skip to main content
Solved

Create call handling rule without introductory greeting via API


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":[{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"tuesday":[{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"wednesday":[{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"thursday":[{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"friday":[{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"saturday":[{"from":"12:00","to":"15:00"},{"from":"18:00","to":"21:00"}],"sunday":[{"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":[{"phoneNumber":"***","action":"NoAnswer"},{"phoneNumber":"***","action":"HoldTimeExpiration"},{"phoneNumber":"***","action":"MaxCallers"}]},"greetings":[{"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":[{"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!
 

 

Best answer by PhongVu

hasfoug wrote:
PhongVu wrote:

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 [greetings.preset.id] value is invalid.

Oh sorry,

Try this id.

var bodyParams = {
        greetings: [ {
          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.

View original
Did this thread help you find an answer to your question?

4 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2312 replies
  • March 7, 2025

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

“greetings" : [ {

    "type" : "Introductory",

    "preset" : {

      "name" : "None"

    }

  }]

 


  • Author
  • New Participant
  • 4 replies
  • March 10, 2025
PhongVu wrote:

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 [greetings.preset.id] value is invalid.


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2312 replies
  • Answer
  • March 10, 2025
hasfoug wrote:
PhongVu wrote:

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 [greetings.preset.id] value is invalid.

Oh sorry,

Try this id.

var bodyParams = {
        greetings: [ {
          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.


  • Author
  • New Participant
  • 4 replies
  • March 10, 2025
PhongVu wrote:
hasfoug wrote:
PhongVu wrote:

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 [greetings.preset.id] value is invalid.

Oh sorry,

Try this id.

var bodyParams = {
        greetings: [ {
          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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings