android-intentresponseibm-watsonwatson-assistant

How to filter a question from Watson assistant intent?


I have multiple questions under the same intent in Watson assistant. How to get reply to specific question rather than checking whole intent?


Solution

  • There are many concepts/features of Watson Assistant using which you can achieve this. Once such feature is Context Variables. You can create an intent called day and add good morning, afternoon and evening as examples or add them as examples to your greeting intent. The more the examples the better and add the intent to the Dialog as a node.

    Then you can edit the context in the editor and create a context variable called user_input which will take user input like good morning and pass that as a response from the bot. You can find that in the image below. You can use the context variable in any node of the Dialog.

    enter image description here