Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
173 views
in Technique[技术] by (71.8m points)

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?

question from:https://stackoverflow.com/questions/65646686/is-there-a-way-to-create-a-call-script-in-twilio-without-creating-many-twiml-sni

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...