4

Does anyone have a good example of nested Intents especially where #yes and #no are child nodes. The situation i am getting is that the API is returning with Intent value but the output text from "Anything else"!

Nitesh
  • 51
  • 4

1 Answers1

1

There is an undocumented feature that if the confidence is <0.2 then it will automatically jump to the Anything Else node.

So to get it to go to the right intent node, you will need to train the intents a bit better.

Alternatively for dealing with multiple intents you can access the intents array using the intents object.

Example:

intents[0].matches('yes|no')
OR
intents[1].matches('yes|no')

From a coding point of view you can set the flag alternate_intents and then review the returned intents array.

Simon O'Doherty
  • 9,259
  • 3
  • 26
  • 54
  • but how about when I am getting a confidence equal to 1 and always the node_visited is just anything else ? – Luillyfe Jun 01 '17 at 01:51
  • In that case you don't have your nodes matching that intent. Common mistake is forgetting the # at the start of the node name. – Simon O'Doherty Sep 20 '17 at 02:44