Yosef
Yosef

Reputation: 3

Is there a way to create a call script in Twilio without creating many TwiML snippets in separate URLs?

I want to use Twilio to create appointment reminder calls. Each call can have a different call flow with different options for the call recipients to press phone keys, different messages, different languages, etc.

I currently use a service that allows a script to be attached to a call and that script runs on the phone service side so that I don't have to deal with scaling issues when making many thousands of calls at once. I can generate different scripts for each call (or each type of call). I want to switch from that service to Twilio if it's practical.

Since TwiML doesn't have the ability to include logic within a single TwiML file, it seems that in order to do the equivalent would require each call to have many TwiML files. Since I would need each call, or at least each type of call to have different TwiML, I would need to programmatically create each of those files (hosted on Twilio to avoid scaling issues with self-hosting), and somehow manage the many thousands of TwiML files that would remain after each call.

Is there a way to make calls where each call can be attached to a script that incorporates call flow logic?

Upvotes: 0

Views: 141

Answers (1)

Alan
Alan

Reputation: 10771

You can use Twilio Studio or Twilio Functions to do that and more. You can find more information at the respective links. It is pretty straightforward to get started.

Studio (REST API Trigger)

Functions

Function Examples

Upvotes: 1

Related Questions