In this video, learn about how to combine request interceptors with session persistence to handle scenarios where users answer questions with a question.
- [Instructor] Now it's time … to add some real smart to our skill. … We want to handle a scenario … where the user responds not with the answer we expect, … but with another question. … Here's what we want to do. … Alexa, ask the pizza dog to fetch a pepperoni pizza. … And that reminds me, … we should add a sample utterance that lets us say fetch, … it goes with the pizza dog thing. … Alexa will respond via auto-delegation. … What size? Instead of saying, small, medium or large, … I'll say something like, well what's the difference … or I have four people coming over. Something like that. … We want Alexa to be able to answer … with some information about the size of the pizza … and then resume seamlessly into the order pizza intent. … In order to do this, we're going to have to keep some state … about the progress of the order pizza intent … and restore it after we answer … the question about the pizza size. … We're going to do this with … something called a request interceptor. … Let's head into the code. …
- Designing effective voice interactions
- Designing an interaction model
- Building voice interactions
- Building an interaction model
- Alexa response functions
- Skills software development kit (SDK)
- Mapping values
Skill Level Intermediate
1. Design Your Alexa Skill
2. Alexa Skill First Steps
3. Building the Interaction Model
4. Enhancing the Voice Interaction
5. Publishing to the Alexa Skill Store
Next steps1m 24s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.