question

newuser-b27eb1e7-aeb3-4e96-b715-0fd0ea7ca76c avatar image

same slot-type using different Intent

I have two intent like surveyIntent and QuestionIntent in SurveyIntent slot-type is AMAZON.NUMBER and in QuestionIntent have also slot-type is AMAZON.NUMBER when I say a number like 123456 it will be store both slots. I need to store only the First SurveyIntent slot and when I say 1 it will be store on the QuestionIntent slot.

if you have a solution then please share it with me.

alexa skills kitalexa voice servicealexa
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

Chihiro@Amazon avatar image
Chihiro@Amazon answered

Hi there,

It looks you have the same utterance for SurveyIntent and QuestionIntent. If there are two intents with overlapping sample utterances, we're unable to confidently predict which intent will be picked. Instead of having 2 intents, I would recommend having 1 intent and keep track of the slot value with sessionAttributes.

Manage the Skill Session and Session Attributes:
https://developer.amazon.com/en-US/docs/alexa/custom-skills/manage-skill-session-and-session-attributes.html

10 |5000

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