Search code examples
ibm-cloudwatson-conversation

Watson Conversation flow going back to root, flow pasted below


enter image description here

Why is the conversation going back to [root] node ?

Thank you.


Solution

  • The very first node (to the immediate right of "Conversation starts") is being triggered for your first input (with intent #DevoxxUS and @location:US).

    The next input has an intent of #whereUS, however, there is only one child of the previous node, and that child will only trigger on #whenUS.

    So, the runtime checks the child, which doesn't trigger, and since there are no more children (note it doesn't go down the tree to grandchildren, etc.) it returns back to the root to find an appropriate node.

    To prevent Conversation from dropping back to the root node, have the last node in your tree with a condition true. This will always be hit, and move you onto the next part of your tree.

    For example:

    enter image description here

    Typing Hot and Hot again will return "One" and "Five", and your next node will be the branch from "Five".