What is Simple Message
Simple Message will just play one or more greetings to the caller. Any combination of audio files to <Play> or text blocks to <Say> are allowed.
How to Use Simple Message
Direct your call flow to this url:
http://twimlets.com/message
Parameters to Send
The following parameters may/must be sent:
| Attribute Name | Allowed Values | Required? |
|---|---|---|
| Message[0] | The URL of a media file to <Play>, or a string to <Say> | Y |
| Message[1] | The URL of a media file to <Play>, or a string to <Say> | N |
| Message[n] | The URL of a media file to <Play>, or a string to <Say> | N |
Example Uses
Example 1
Play a greeting, and then say some text:
http://twimlets.com/message?Message[0]=http://myserver.com/hello.mp3&Message[1]=Thank+You+For+Calling
Example 2
Play two greetings, then say two text blurbs:
http://twimlets.com/message?Message[0]=http://myserver.com/1.mp3&Message[1]=http://myserver.com/2.mp3&Message[2]=I+Just+Played+A+File&Message[3]=I+Just+Said+Some+Text
Try It Out!
Using our Twimlet Generator, you can build up a Twimlet URL right here:
Open Source
Twimlets are open sourced, you are free to download, modify and run the code on your own server. View the Source.
Note: Uses the TwilioResponse PHP library available on GitHub.