Validating Slot Values
Suppose that the user asked Alexa to plan a trip, but rather than ask for a trip to one of the planets in our solar system, the user asked for a trip to Chicago. Such a conversation in the simulator might look like this:
As you can see, even though the destination slot is typed as PLANETS, it didn’t stop the user from asking for and scheduling a trip to Chicago. Alexa did stop and ask the user which planet that they’d like to visit, but that was only because “Chicago” isn’t one of the planets defined in PLANETS, so she wasn’t sure if she should put “Chicago” into that slot. But once she prompted the user for a planet and ...
Get Build Talking Apps for Alexa now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.