VoxML 1.0 Element Reference
INPUT Element : Type PROFILE‡
INPUT Element : Type PROFILE‡
The PROFILE input is used to collect the user's profile information (e.g. home address) from the voice browser directly. This INPUT type is different from the others in that the input does not come from the interactive user, but instead is provided by the voice browser itself, using information from the system’s subscriber database. (The user’s information is provided by each subscriber when the account is activated.)
Syntax
<INPUT TYPE="PROFILE" NAME="value" PROFNAME="value" [SUBTYPE="value"] />
Attributes
Attribute Name | Allowed Values |
|
|
NAME | identifier |
|
|
PROFNAME | profile element name (string) |
|
|
SUBTYPE | profile element subtype (string) |
* For information on valid profile names and subtypes, see Appendix B.
Examples
1 <STEP NAME="getinfo">
2<INPUT TYPE="profile" NAME="firstname"
3PROFNAME="N" SUBTYPE="first"/>
4<PROMPT> Hello, <VALUE NAME="firstname"/>.
5Please say your pin. </PROMPT>
6<INPUT TYPE="digits" NAME="pin" NEXT="#verify"/>
7</STEP>
In the code on lines 2 and 3, the PROFILE input is used to retrieve the user's first name and store the string in the VoxML variable named “firstname”. The string containing the name is then inserted into the PROMPT on line 4 using the VALUE element.
Notice that when using the PROFILE INPUT that it is permissable to have more than one INPUT element in the same STEP. This is because the PROFILE INPUT is not an interactive INPUT. Each STEP can contain only one INPUT that accepts a response from the user.
‡The PROFILE input type is a
October 1998 | VoxML 1.0 Language Reference 30 |