Comparing slots to entities
The slots or the entities are used in the intent to extract the parameters from the user request. For example, if the user says I love a dog, you can create either slots or entities called Animals that contains dog and cat, which will help identify and extract the animal dog from the user saying. In Alexa, you use slots in the intent as follows: I love {Animals}. In Dialogflow, you use this: I love @Animals:Animal.
Sometimes, when the user says something and maps to the intent, you might want to make sure that the user provides a specific value in order to take an action on the intent. In Alexa, you can use a technique called slot filling, and in Dialogflow you can make the entities required. Both Alexa and Dialogflow's ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access