CallXML 3.0 Development GuideHome  |  Frameset Home


<prompt>  element

The <prompt> element is a new addition to the CallXML3.0 markup that serves as a replacement for the <menu> element...but comes with much, much more in the way of features. Using the <prompt> element allows you to queue up a series of comma-delimited wav files and/or TTS strings, ("prompt lists"), to play to the caller. This differs from the <menu> tag in that we specify a singular value for both the .wav file, and the TTS string within the value and choices attributes:


<prompt value="hello, say the name of the person you want to punch in the face"
            choices="Tyler Durden, Cornelius, Robert Paulson">


Upon execution, the application will attempt to fetch the following .wav files; if they are not present, (returning a server error 404), then the string will be played as TTS instead: