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
------------------------------
Original Message:
Sent: Wed December 11, 2024 10:13 AM
From: Jason Leiby
Subject: Can't get webhooks to work in Watson Assistant (Classic)
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
Original Message:
Sent: Fri November 01, 2024 09:51 PM
From: Alain de Nogent
Subject: Can't get webhooks to work in Watson Assistant (Classic)
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
------------------------------