watsonx Assistant

watsonx Assistant

Conversational AI for fast and friendly customer care

 View Only

triggering a client side function

  • 1.  triggering a client side function

    Posted Tue December 07, 2021 04:27 PM
    I hope this is the right place to post this.

    I am totally new to working with Watson and am having trouble working out how to make it interact with a client side function.

    What i want to happen is when a specific word is entered into Watson.. 'happy' for example watson will then trigger a client side function called 'happy'

    My goal is to send commands to a client side avatar which can then display emotions dependent on triggers connected to Watsons dialogue.

    I have tried using the following in assistant responds for a dialogue node... but it never calls the function 'happy'
     
    {
    "output": {
    "text": "happy"
    },
    "actions": [
    {
    "name": "happy",
    "type": "client",
    "result_variable": "null"
    }
    ],
    "context": {
    "variable_name": "happy"
    }
    }

    Any help on this would be much appreciated.

    ------------------------------
    Adrian Shipp
    ------------------------------

    #WatsonAssistant