From the course: Developing Skills for AWS Alexa
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Handling yes/no questions - Amazon Web Services (AWS) Tutorial
From the course: Developing Skills for AWS Alexa
Handling yes/no questions
- [Instructor] Now that we know how to save user data permanently, let's put that ability to good use. When the user has finished a pizza order, we want to follow up with a question: "Do you want to save this order as the usual?" So let's go to the OrderPizzaIntentHandler. The first part's easy. Go to the end of the speech text and add a question: Would you like to save this order as, do double quotes, the usual, question mark. Okay, now at this point, all we want is for the user to answer yes or no. And there are a few ways we could do this. One you might consider is slot elicitation. We can add a single intent whose only purpose is to save the user's favorite pizza order. It could have a single slot which is their response and in the handler, we check that slot, and we'd see: is it yes or is it no? However, having a single slot as a sample utterance for an intent is going to get you into trouble. If for no other…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Modifying speech with SSML4m 34s
-
(Locked)
Adding and playing media6m 35s
-
(Locked)
Keeping context with session persistence13m 27s
-
(Locked)
Adding a request interceptor3m 41s
-
(Locked)
Manual dialog delegation and slot elicitation8m 11s
-
(Locked)
Handling interruptions by restoring intent state9m 37s
-
(Locked)
Remembering key information with long-term persistence7m 47s
-
(Locked)
Handling yes/no questions9m 5s
-
(Locked)
Restoring data from persistence3m 43s
-
(Locked)
Personalize your skill by requesting user profile data11m 8s
-
(Locked)
Grant and use profile data permissions5m 19s
-
(Locked)
-
-