Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Before you can continue creating intents, you have to create the entities you need, since these will be part of the intent specification for certain entities (e.g., the presence of an entity type is used as a feature by the Dialogflow classifier model to recognize certain intents by). Some of these entities have already been provided to you. For information on how to upload and create entities, please read this page: DialogFlow: Create an Agent, Intents and Entities.

Some entities have not been provided with the agent project. You have to add them yourself (see the list below). We provide an example for most to make sure you have at least a few entries for each entity. They may not be that intuitive at first, so make sure to extend the entity specification with more synonyms as you develop your agent evolvesfurther.

Note

If the word you enter for an entity entry has synonyms, enter these as synonyms rather than adding these as different entity entries!

  1. removeKeyword - words a user you can use to indicate it wants to remove filters (for example ‘remove’)

  2. timeKeyWord - words that refer to measurements of time (hour, minutes, etc.)

  3. shortTimeKeyWord - for example ‘fast’, ‘quick’ etc.

  4. negationKeyword - to specify that something needs to be omitted (for example ‘without’ or ‘don’t’)

  5. easyKeyWord - to specify recipes that are not hard to make (for example ‘simple’)

When you are done your entities Entities page should look as follows:

...

The intent for filtering recipes is one of the most important intents. It is used to filter recipes for the user based on a variety of criteria. This is the first intent that employs all the entities we have created. In the user expressions, where the user is asking to filter, all different entities need to occur and be tagged in the set of examples. For example, for a training phrase like “I want a Chinese recipe”, ‘Chinese' needs to be tagged as ‘cuisine’, so this phrase can be parsed by Dialogflow in order to apply the filter ‘cuisine’ to the recipes in our database. The ‘addFilter’ intent can be found in the folder project provided to you to start with, and should be uploaded in Dialogflow by you.

...

Code Block
nrOfIngredients(RecipeID, N) :-

Create a rule to return N, the length of the list of ingredients for a certain RecipeID. HINT Hint: your Visual  Support groupmates team members should have made an ingredients function that could help. 

nrSteps 

Code Block
nrSteps(RecipeID, N) :-

Create a rule to return N, the number of steps for a certain RecipeID. HINT: your groupmates should have made a recipeSteps function that could help. 

...