My intent schema uses an AMAZON.NUMBER slot:
{
"intents": [
{
"intent": "MyIntent",
"slots": [
{
"name": "Foo",
"type": "AMAZON.NUMBER"
}
]
}
]
}
Smaller numbers like "two thousand" show up properly in the IntentRequest...
{
"version": "1.0",
"request": {
"Intent": {
"name": "MyIntent",
"slots": {
"Foo": {
"name": "Foo",
"value": "2000"
}
}
},
"type": "IntentRequest"
}
}
Unfortunately, it doesn't seem to handle expressions such as "four point five million":
{
"version": "1.0",
"request": {
"Intent": {
"name": "MyIntent",
"slots": {
"Foo": {
"name": "Foo",
"value": "?"
}
}
},
"type": "IntentRequest"
}
}
Do I need to use an AMAZON.LITERAL slot and feed the value into my own number expression parser? Or is there a better way?