question

mkachendo avatar image
mkachendo asked

Choices API

I'd like to see a way to be able to dynamically supply a list of possible choices for any given slot and have the API phonetically find the closest match. My current flow is: * User: "tell X to turn bob's office lights on" * App: only "office" is returned, so the app asks user which lights and lists all possible choices * User: "bob's office" * App: only receives "office", and thus prompts again and the user is unable to achieve their intent The only way to make this work currently is to have "bob's office" in the sample utterances file, which obviously is not a realistic option. The other option is to be able to receive the full text of what Alexa heard, and do the choice logic ourselves.
alexa skills kit
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Thanks for posting. If I understand you correctly, you'll have to manage this within your code using the room owner's name as variable like '{steve|UserName}' in your sample utterances. For example: HelloUserIntent say hello to {steve|UserName} You should then be able to manage this within your code as you said in terms of the choice the user can make. Regards, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.