watsonx Assistant

watsonx Assistant

Conversational AI for fast and friendly customer care

 View Only
  • 1.  Can't get webhooks to work in Watson Assistant (Classic)

    Posted Fri November 01, 2024 09:52 PM

    I had webhook functions that worked fine under Cloud Foundry, but I can't get anywhere with Code Engine. I created a test function (using the default code snippet with Python 3.11 runtime) in the console and confirmed that it runs. I also confirmed that it is in the same region as my (Dialog) Assistant. But when I try to activate (by testing the dialog in the Try it out" pane) it I just get a runtime error "Error encountered / Error in response from Webhook", which gives me nothing to go on.

     

    Not sure what to try next. Is there a log somewhere that will tell me what's broken?



    ------------------------------
    Alain de Nogent
    ------------------------------


  • 2.  RE: Can't get webhooks to work in Watson Assistant (Classic)

    Posted Mon November 11, 2024 01:55 PM

    Hi Alain,

    I am checking to see if you were able to get a response to your question. If not, I will follow-up on your behalf.

    Nick



    ------------------------------
    Nick Plowden
    AI Community Engagement
    IBM
    ------------------------------



  • 3.  RE: Can't get webhooks to work in Watson Assistant (Classic)

    Posted Wed December 11, 2024 10:14 AM

    There are a couple options for testing Code Engine functions:

    • You can use Curl commands from your local machine to test the function.
    • You can use the built in Function testing kit within Code Engine to ensure the correct responses are being provided.

    For troubleshooting Dialog, there are some tips here to help determine the issue by dumping the error message from the webhook.

    If this is a new deployment/test of the Assistant, may I suggest looking at the Actions framework and custom extensions?  Our newer framework provides more flexibility and an easier method for testing and troubleshooting.

    Thanks,
    Jason



    ------------------------------
    Jason Leiby
    Principal WW Data & AI Technical Sales Specialist
    jason.leiby@ibm.com
    Dillon, CO USA
    ------------------------------



  • 4.  RE: Can't get webhooks to work in Watson Assistant (Classic)

    Posted Fri January 31, 2025 12:25 AM

    Hi Jason,

    I missed your message -- thanks for replying!

    Yes, I was using those methods to test the functions, so I know they work in other scopes. 

    I'm bound to the Dialog paradigm because of the need to support complex scope, digressions, and proactive behaviour. However, I somehow missed the doco on the output object, so I'll get into that next. I'm still coming to grips with the new framework, but custom extensions looks like an intriguing feature -- I'll try that avenue if further debugging doesn't help me.

    Thanks to you both, and happy new year!



    ------------------------------
    Alain de Nogent
    ------------------------------