4
votes

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"!

1
Have you got a solution to this problem ? - Luillyfe

1 Answers

1
votes

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.