TwiML — Twilio Markup Language
Was ist TwiML?
Dieser Eintrag liegt derzeit nur auf Englisch vor.
TwiML (Twilio Markup Language) is Twilio's XML-based instruction language for controlling programmable voice calls and messages. A TwiML document tells Twilio what to do — for example, speak text, play audio, gather keypad input, record a call, or send a message — when a webhook returns it in response to an event. It describes call or message behavior declaratively rather than requiring each step to be hard-coded in an application.
More detail
A TwiML document is made of verbs and nouns: verbs describe an action such as <Say>, <Play>, <Gather>, or <Dial>, while nested nouns provide the phone number, URL, or other data that action needs. Twilio fetches the document from an application endpoint and executes the instructions in order.
TwiML is specific to Twilio's programmable communications APIs, so it is not a general-purpose XML standard and is not the same as an API request format. Other programmable voice platforms may use webhooks, JSON, or their own call-control model for the equivalent interaction.
Häufige Fragen
- What does TwiML stand for?
- TwiML stands for Twilio Markup Language. It is Twilio's XML-based language for describing how a programmable call or message should be handled.
- What can TwiML control?
- TwiML can control actions such as speaking text, playing audio, collecting keypad or speech input, recording a call, dialing another number, and sending a message, depending on the Twilio product and supported verb.
- Is TwiML the same as a voice API?
- No. A voice API provides the interface for starting or managing communications, while TwiML is Twilio's XML instruction language that describes what Twilio should do during a programmable interaction.
See also
Build it on Orbit
Voice, messaging, email, video, and AI agents on one platform and one pay-as-you-go bill. Start free — no credit card required.