How to Build a Protected Conference Line in a Few Minutes using Studio
Time to read: 3 minutes
With many people shifting to working remotely, the need for collaboration tools is increasing. Twilio offers many options that allow developers to build collaboration solutions like video chat or voice conferencing solutions.
This blog post walks you through how to create a protected voice conferencing line using Twilio Studio in a couple of minutes - to help your remote workforce continue to communicate.
In Studio, a Flow is executed from an incoming call or SMS to your Twilio number, or you could trigger an outbound flow via a REST API request. Once in a Flow, Studio offers various ways to control calls and message flows, including but not limited to:
- Saying or playing messages to a callee
- Gathering input from the callee such as digits or voice messages
- Making an HTTP request to a third-party system
It is simple to build a protected conference line using Twilio Studio and studio widgets. Let us see how it is done.
Prerequisites
- A Twilio account - sign up for a free one here
- Buy a Twilio phone number with voice capabilities
- Optionally, you can check out the docs for Twilio Studio if you're unfamiliar with the product
Twilio Studio Flow
We will walk through setting up the Studio Flow for a conference line, and configure our Twilio number. Twilio Studio is managed from a UI. You use widgets to describe how you want to control your communication flows, and little to no code is required.
Set up a protected Conference line
Now that you have seen how to build a simple conference line, we can build a protected line as demonstrated in this post. A customer can call our Twilio number, hear a greeting and enter a PIN, and join the conference bridge. If they enter the wrong PIN they can re-enter.
The Flow looks like this:
In this Flow, when a customer calls our number, they hear a welcome message that asks the user to enter a conference pin. The callee can enter the pin using their keypad. The flow diverts the call to check if they have entered the correct pin for the conference line. If they entered the wrong pin or did not enter anything, they will be prompted to re-enter the pin again. Once the right pin is entered, the call is diverted to the Twilio conference.
In my example, the pin is 1368. You can edit it by clicking the 'checkPin' widget and switching to the 'Transitions' tab.
Import the Studio Flow
To quickly get you going, we're going to import my Studio flow. I'll walk you through step-by-step, but for a longer description of importing and and exporting, see the Studio documentation.
- First, visit the Studio console. Click the red plus ('+') button to 'Create new Flow'.
- Name it something like "Protected Conference Line" and hit the red 'Next' button.
- In the next screen, scroll down to 'Import from JSON' and hit the red 'Next' button.
- Now, paste in the JSON for the protected conference flow and continue:
Looking good! Next, let's try it out.
Run the Studio call for a Conference Line
Now you're ready to try this for real.
- Go to your incoming numbers configuration and select a Twilio number that will receive the calls from your customers (or, select more than one number!)
- Navigate to the phone number you like and configure it so that when a call comes in, it directs the call to your new Studio Flow.
- Now, once a call comes into your Twilio number, it will ask the caller to enter a pin after the welcome message
That’s all for now, but please get in touch with any questions or comments.
We can’t wait to see what you build!
Arvind Rangarajan is a senior member of the Product Marketing team at Twilio. He has many years of experience in developing technology and commercial solutions. He is a hands-on marketer, and to write this blog post, he built the Studio flow himself. He can be reached at arangarajan [at] twilio.com
Related Posts
Related Resources
Twilio Docs
From APIs to SDKs to sample apps
API reference documentation, SDKs, helper libraries, quickstarts, and tutorials for your language and platform.
Resource Center
The latest ebooks, industry reports, and webinars
Learn from customer engagement experts to improve your own communication.
Ahoy
Twilio's developer community hub
Best practices, code samples, and inspiration to build communications and digital engagement experiences.