Eliciting Missing Slot Values
Imagine that a user wants to book a weeklong trip to Mars, leaving on July 17th. If the user were to say, “Schedule a trip to Mars, leaving July 17th and returning July 23rd,” then our skill will be happy to oblige, with no further changes to the skill’s code.
However, that requires that the user know exactly how to speak to our skill and what slots the intent is expecting. If the user were to leave out any information, how would the skill respond? For example, what if the user were to say, “I want to go to Mars” without specifying departure and return dates? Let’s run that through the ask dialog command to see what happens:
| $ ask dialog --locale en-US |
| User > open star port seventy five |
| Alexa ... |
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.