Is it possible to extend AMAZON.NUMBER with synonyms or new values?
I'm asking, "How many guests?" for a hotel room and trying to collect the answer using the AMAZON.NUMBER slot type. Numeric answers (1, 2, 3 ...) appear in the slot as expected. I've tried to extend AMAZON.NUMBER with non-numeric synonyms for 1 - "just me", "i'm solo", and so on but can only get "?" as the value of my filled slot.
Specifically, I'm defining the interaction model in the ASK console. I've created a slot, guestCount of type AMAZON.NUMBER. Under AMAZON.NUMBER, I've created a slot value=1 with synonyms "just me", "i'm solo". The Lambda function receives:
"guestCount": { "name": "guestCount", "value": "?", "confirmationStatus": "NONE"},
I get the same thing when I change the slot value from 1 to "solo". I've also tried adding synonyms as user utterances to the guestCount user utterances with no luck:
{
"name": "guestCount",
"type": "AMAZON.NUMBER",
"samples": [
"Only me.",
"I'm alone.",
"I'm solo.",
"Just me.",
"{guestCount}"
]
},
I get the same results whether I'm using the simulator and or speaking through an Echo.
I realize that I can make note of the "?" and reprompt for a number, but that's no fun.
Thanks in advance.