The Field Element
For convenience, many voice platforms provide a number of built-in common data type grammars that can be accessed by the type attribute. For example, the following will permit the user only to enter or speak a value that can be interpreted as currency (for example, "Ten dollars and fifty cents"):
Some of the common data types include the following:
If the built-in data types do not satisfy your requirements, then you’ll need to define your own grammar, a rich topic that we’ll explore in more depth later in this and subsequent articles.