watson-assistant

How do you determine if disambiguation was triggered to activate an action in Watson Assistant


Currently if a user asks a question that triggers a disambiguation, and then clicks an option, I want to be able to determine if the action fired from that button (not the users input).

Example of what is being described.


Solution

  • You can use the variable input.suggestion_id to determine if disambiguation fired.

    For example:

    <? input.suggestion_id ? "Arrived to action by Disambiguation" : "Arrived directly to action" ?>
    

    Generates this output.

    Example of output