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
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
October 1998 | VoxML 1.0 Language Reference 6 |