Motorola 1 manual Input Element Type PROFILE‡

Page 34

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 platform-dependent feature.

October 1998

VoxML 1.0 Language Reference 30

Image 34
Contents VoxML Language Reference RevisionPage Contents Appendices Overview What is VoxMLPurpose of this Document Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideSyntax ACK ElementAttributes Examples Audio Element Break Element Cancel Element Next step URLExamples Case Element Class Element IntegerExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Input Element Type Date Data FormatInput Element Type Digits Input Element Type Grammar Input Element Type Hidden Input Element Type Money Input Element Type None Input Element Type Number Input Element Type Optionlist Input Element Type Phone Input Element Type PROFILE‡ Input Element Type Record Prompt Input Element Type Time Input Element Type Yorn Option Element VoxML 1.0 Element Reference Options Element Or Element Syntax AttributesPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Value Element PromptAppendices Appendix a VoxML 1.0 Document Type DefinitionOctober VoxML 1.0 Language Reference Appendix B Vcard Profile Names and Subtypes Vcard Profile Names and SubtypesFirst