TwiML Bins
TwiML Bins are a serverless solution that help you provide Twilio-hosted instructions to your Twilio applications. They’re a useful way to prototype and explore Twilio’s capabilities without needing to set up your own web server to respond to requests.
Create your first TwiML Bin
<Response>
<Message>Hello, {{From}}! You wrote: "{{ Body }}"</Message>
</Response>
Get Started
You can use Twilio's Markup Language (TwiML) to instruct Twilio what to do when you have an incoming message, or what should happen during a phone call. With TwiML Bins, you can host any valid TwiML directly with Twilio, and Twilio will handle hosting and scaling as you launch your app.
- Voice TwiML
- Messaging TwiML
Create your first TwiML Bin
Build your Application
Create your first TwiML Bin, connect it to your phone number, test it, and learn how you can pass additional data into your TwiML Bins.
Start Building
Advanced Features
TwiML Bins support limited logic-based templating using Handlebars to modify your TwiML response. For example, based on the text from an incoming SMS, or if the message contained a picture.