From the course: Developing Skills for AWS Alexa

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding a request interceptor

Adding a request interceptor - Amazon Web Services (AWS) Tutorial

From the course: Developing Skills for AWS Alexa

Start my 1-month free trial

Adding a request interceptor

- [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…

Contents