Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!

question

felixTEOP avatar image
felixTEOP asked

How to Fulfill required Number Slot with something other than a Number

Following Scenario:

I have a Slot within an Intent which is required The slot is of type AMAZON.Number. I send the ElicitSlotDirective with the following list as speech, and the user is supposed to say the numbers which he wants, e.g.:

'Number 1: Cheese, Number 2: Tomato, Number 3: Onions. Which would you like?'

Now, what works is the user saying "1 and 2" by simply having "{number} and {number}" in the utterances. However, I would like to implement "all", so that the user does not have to say "1, 2 and 3".

I already tried adding "all" to the slots "User utterances", but it does not work, it resolves to a '?' as slot value. It seems like the numbers slot only accepts numbers to have it fulfilled. Is there a way of the slot also accepting other values? Or defining the slot as fulfilled within the code, then being able to define how the slot was fulfilled?

alexa skills kitslotsutterances
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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hi @felixTEOP and thanks for posting in the forum.

Are you still facing this issue? Have you tried to map the "all" utterance to another intent? If you could share your skill ID I could look further into this.

Regards,
Barry

2 comments
10 |5000

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

felixTEOP avatar image felixTEOP commented ·

Yes the problem still persists. I have the word "all" both in the "User Utterances" for the slot, and also tried adding it to the intent the slot belongs to. It resolves to "?" either way.

0 Likes 0 ·
Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra felixTEOP commented ·

Hello @felixTEOP,

Have you tried creating an intent to deal specifically with the case of a user using the all utterance?

Can you please provide your skill's ID so I can take a better look at it?

Regards,
Barry

0 Likes 0 ·