VoxML 1.0 Element Reference

ACK Element

Examples

1<STEP NAME="card_type">

2<PROMPT>

3What type of credit card do you have?

4</PROMPT>

5<INPUT NAME="type" TYPE="optionlist">

6<OPTION NEXT="#exp"> visa </OPTION>

7<OPTION NEXT="#exp"> mastercard </OPTION>

8<OPTION NEXT="#exp"> discover </OPTION>

9</INPUT>

10<ACK CONFIRM="YORN" REPROMPT="Y">

11I thought you said <VALUE NAME="type"/>

12<BREAK/> Is that correct?

13</ACK>

14</STEP>

In this rather complex example, the ACK element is used to confirm the user's choice of credit card. When this code is interpreted by the VoxML voice browser, it will speak the text of the PROMPT element using text-to-speech technology, wait until the user responds with “visa”, “mastercard”, or “discover”, and then ask the user to confirm the type of card was recognized correctly.

If the user answers “yes” to the ACK, the browser will proceed to the STEP named “exp”. If the user answers “no” to the ACK, the text of the PROMPT will be read again, and the user will be allowed to make his or her choice again

— the browser re-enters the STEP as if for the first time.

October 1998

VoxML 1.0 Language Reference 6

Page 10
Image 10
Motorola 1 manual Examples