petronaMX
petronaMX

Reputation: 31

Error in jumps in IBM Watson

We are implementing Watson technology for an assistant to help certain users.

The dialogues are somewhat complex, and sometimes it is necessary to do jump answers that relate with certain questions, the downside of this is that it may be that the user can ask the question once more, in case it was not clear and that is where the problem arises.

When wanting to enter the node where it is subsequently entered and said node made a jump, I mark the following error

"Did not match the condition of the target node nor any of the conditions of its subsequent siblings."

Can someone tell me with clarity why that happens?

Reference image

Upvotes: 3

Views: 1458

Answers (2)

petronaMX
petronaMX

Reputation: 31

After so many tests, I finally found the error. This was because I was leaving some variables of context with values, and when I returned to the nodes, I no longer validated them again. What I did was that at the end of the answer I set the variables to null so that when I was processing them again in the nodes, they had to validate them again.

Greetings and many thanks.

Upvotes: 0

Simon O'Doherty
Simon O'Doherty

Reputation: 9359

"Did not match the condition of the target node nor any of the conditions of its subsequent siblings."

This error occurs if no final node is matched. If your last node was in a branch where the parent is a node, then it will fall back to root to find the answer. You get an endless loop which will stop after 50 iterations.

Like this example, if the user types in "error" it jumps to the branch, doesn't find a match, returns to root to find where to stop and loops:

enter image description here

If the branch is in a folder, then it continues on past the folder to find the match.

To fix the issue, you need to add a final node in the branch that will capture anything_else like so.

enter image description here

The other option is to use a folder node. It will it allow it to fall through back to the tree where it entered, and your final node should capture it.

enter image description here

Upvotes: 1

Related Questions