SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How To Dial Sequentially using Twiml in Studio

Objective

To dial sequentially (also known as “hunt group” or “find me” dialing) using TwiML inside Twilio Studio, you can use the Run Function or Run TwiML Bin widget to return custom TwiML that dials numbers one after another until someone answers.

 

Product

Twilio Studio

 

Environment

legacy Twilio Console

 

Procedure 

How Sequential Dialing Works

  • You provide a list of phone numbers.
  • The TwiML <Dial> verb is used with the action attribute to handle what happens if the call is not answered.
  • If the first number doesn’t answer, the flow continues and dials the next number, and so on.
  1. Create a TwiML Bin or Twilio Function
  • In your Twilio Console, create a TwiML Bin or a Twilio Function.
  • Use the <Dial> verb with the sequential="true" attribute and list all the numbers you want to dial in order.
  1. Sample TwiML for Sequential Dialing
<Response>
  <Dial sequential="true" timeout="20">
    <Number>+15551234567</Number>
    <Number>+15557654321</Number>
    <Number>+15559876543</Number>
  </Dial>
</Response>
  • This will try each number in order, moving to the next if the previous is not answered.
  • You can set the timeout (in seconds) for how long each number should ring.
  1. Integrate with Studio
    • In your Studio Flow, use the Run TwiML Bin or Run Function widget right after your trigger.
    • Point it to your TwiML Bin or Function containing the above TwiML.

 

Additional Information 

Have more questions? Submit a request
Powered by Zendesk