I am building an Alexa app that needs to be able to process answers to a question. I have an SkipIntent
intent that has sample utterances to skip a question.
I want to build an AnswerIntent
that can take answers that can be anything and process them against the correct answer. I tried using an Amazon.LITERAL
type for this with a few samples as such (from this question: How to accept the Free form text as input to Amazon Skill Kit?):
AnswerIntent {bottle|Answer}
AnswerIntent is it {bottle|Answer}
AnswerIntent is it a {bottle|Answer}
AnswerIntent is it an {bottle|Answer}
AnswerIntent a {bottle|Answer}
AnswerIntent an {bottle|Answer}
AnswerIntent {pillow|Answer}
AnswerIntent is it {pillow|Answer}
AnswerIntent is it a {pillow|Answer}
AnswerIntent is it an {pillow|Answer}
AnswerIntent a {pillow|Answer}
AnswerIntent an {pillow|Answer}
This actually works if I prepend the answer with "is it" or one of the other defined prefixes, but it doesn't get the "answer only" piece. It seems to get confused with my SkipIntent
which is defined as:
SkipIntent i don't know
SkipIntent don't know
SkipIntent skip
SkipIntent i don't know that
SkipIntent who knows
SkipIntent i don't know this question
SkipIntent i don't know that one
SkipIntent dunno
Am I defining the AnswerIntent
correctly? If not, is there a better way to catch an infinite amount of possibilities? Amazon seems to not like the LITERAL method, so I would be open to a better way.