Simple informational line using Twilio

November 20, 2008
Written by
Twilio
Twilion

Twilio Bug Logo

One of the very simplest things to do with Twilio is to provide simple static audio messages to callers. You could use this for things like a Dial-a-song, or business hours, or daily work site instructions. All you need is a little space on a dumb web host and the following bit of XML.

<Response>
<Say>
Today’s Worksite – November 20th.
Meet at 480 Frederick St at 7:30am, bring shovels and hardhats.
</Say>
</Response>

Start by copying this XML to your web server and note the url. Next, go to either your Twilio sandbox (if you’ve signed up for the free trial) or your Incoming Phone Number configuration page and add that url to your incoming phone number. Someone should now be able to call your sandbox or phone number and hear the message of day! Changing the message is just a simple matter of editing the text within the tags!

Obviously there is a lot of potential for this when combined with a database and your web language de jour.