What is Simple Menu

Simple Menu will just play a greeting, and wait for the caller to press one or more digits on their keypad. Based on what was pressed, call flow is directed to a new URL (or Twimlet).

How to Use Simple Menu

Direct your call flow to this url:

http://twimlets.com/menu

Parameters to Send

The following parameters may/must be sent:

Attribute Name Allowed Values Required?
Message The URL of a media file to <Play>, or a string to <Say> to greet the caller. Y
Options[n] The URL to which call flow should be directed, if n is pressed. See examples below. N

Example Uses

Example 1

Say a greeting, and direct the caller to http://foo.com if they press 1

http://twimlets.com/menu?Message=Hi+There&Options[1]=http://foo.com

Example 2

Say a greeting, and direct the caller to http://foo.com if they press 1, or http://bar.com if they press 2.

http://twimlets.com/menu?Message=Hi+There&Options[1]=http://foo.com&Options[2]=http://bar.com

Example 3

Say a greeting, and direct the caller to http://bob.com if they press 101, http://ann.com if they press 102 and http://operator.com if they press 0. (Where bob.com, ann.com and operator.com would be Twilio applications as well.)

http://twimlets.com/menu?Message=Hi+There&Options[101]=http://bob.com&Options[102]=http://ann.com&Options[0]=http://operator.com

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 Open Source Twilio PHP library available on GitHub.