Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Dialogflow
Add the following intents, following the same procedure as you did for the ‘greeting’ intent. Use the intent names as specified below:
...
It is not necessary to add phrases that are completely unrelated to the topic of our recipe recommendation agent, as these would come back as an unknown intent. Thus, what you should do is think of related phrases that would be close to an intent but should not match with it. For example, “I do not like mushrooms” is food related and refers to an ingredient entity ‘mushroom’. Yet, you might argue that it should not be matched to any of the intents you specify because you do not want users to discuss their likes and dislikes with your agent. Alternatively, you could also argue to include ‘I like’ and ‘I dislike’ as training phrases for filtering by something. But that is a design decision for you to make! The Fallback Intent should be updated as you add more intents throughout the project.
Prolog and Patterns
B Patterns for Repair and Conversation Enrichment
...
b12 The agent does not understand the user's’s utterance
Example:
U: chicken soupHave you read the Hobbit?
A: what do you mean?
Your user has just said something odd or does not match the current situation, and so your Dialogflow cannot identify the user's intention and goes to a default fallback intent. In this pattern, your agent can try to come to an understanding by asking for a rephrasing with ‘paraphraseRequest’. Add a b12 pattern using the defaultFallback intent and paraphraseRequest response.
...
In responses.pl find text(describeCapability, ""). and fill in the atom with an appropriate response.
Visuals
Nothing we ask you to do here for this capability. It’s up to you.
...