0

We are checking for a simple negative answer in our intent, but is we use "No" as a training phrase, it matches every input including that word:

  • No (negative input, right)
  • Of course, no problem (positive input, wrong)

Are we missing something?

Troglo
  • 1,497
  • 17
  • 18
  • Do you have a "yes" intent as well? If so, why not adding "of course", "no problem" in the training phrases? – fmarm May 24 '22 at 04:03
  • Yes, I can add them, but there are so many possible answers that I wanted to know if I could check for just 'No' – Troglo May 24 '22 at 07:45
  • 1
    Best practice is to build "yes" and "no" intents with variations of yes/no. See [best practices, Intent reuse](https://cloud.google.com/dialogflow/cx/docs/concept/agent-design) – fmarm May 27 '22 at 03:28
  • If my answer addressed your question, please consider accepting and upvoting it. If not, let me know so that I can improve my answer.Accepting an answer will help the community members with their research as well. – Shipra Sarkar Jun 01 '22 at 04:43
  • Yes, that´s the way Dialogflow works, but my question is if there is any way simpler to check for an exact answer than feed the engine with an unlimited number of the possible positive answers and variations. Probably that's impossible and this is the only way. So I'll wait a few days for others options before accepting this answer. – Troglo Jun 01 '22 at 07:00

1 Answers1

0

As mentioned by @fmarm, you can try reusing intents. By reusing an intent, you need not to create different intents for different variations of negative answers and can add variations to negative answers in a single intent.

Shipra Sarkar
  • 1,385
  • 3
  • 10