These annotations are used to collect and then display values of variables that are generated by the IVR during runtime. A {StartData} annotation initiates collection of data. The annotation is generally used to collect data inside a prompt that is not a hard coded VXML element. To display the gathered data, a {DisplayData} annotation is used. The {DisplayData} annotation needs to immediately follow the the {StartData} annotation. 

The following example shows how to map an audio prompt informing the caller of the balance in an account. The Voice prompt is:

<prompt>
<audio src="http://10.100.40.44:9085/Loop/Audio/VAS/english/bank.wav"/>
150
</prompt>

A {Title} annotation is used to translate the content of the .wav file (in this case, Your account balance is). Then, a {StartData} annotation is used to capture the value of the variable that is sent from the IVR (in this case, 150). Finally, a {DisplayData} annotation is used to show the value to the Visual IVR user.
After mapping, the annotations are:

{Title} Your account balance is {StartData:<data name>}{DisplayData:<data name>}

Verify that the name of the variable (in the above example,< data name>) is identical in both annotations. This name links the two annotations.

Formatting {StartData} and {DisplayData} Annotations

{StartData} and {DisplayData} annotations are generally used together with HTML tags. The following example uses HTML tag formatting in both the static text portion and the variable portion. The figure after the example shows how this formatting is displayed in a VIVR VXML Connector page.

{Title}<b>Your account balance is: </b><font color="red">
{StartData:credit}</font>{DisplayData:credit}

 

 

Revision:

Comments