I tried sending user utterance from Watson UI ie <? input.text ?> . It didn't work. Let me check.
Original Message:
Sent: Wed March 13, 2024 05:10 PM
From: Jason Leiby
Subject: Language Translator API
Hi Subbu,
I see in your CLI command, you are using plain text for the input parameters. watsonx Assistant requires data to and from a webhook to be in JSON format, so you will have to supply your text input in the format of "{ text: "what language am i speaking" }"
Further information on the watsonx Assistant classic webhooks can be found here: https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-webhooks
Thanks,
Jason
------------------------------
Jason Leiby
Original Message:
Sent: Mon March 04, 2024 11:24 AM
From: Subbu Venkataraman
Subject: Language Translator API
I am not sure if anyone noticed this.
Watson adds a duplicate header. In snapshot attached, i created a header for API key. But, Watson duplicated the same header.
The duplicate header appears even after deleting the same header. :-(
Looking forward to know if anyone have faced similar experience. We are using IBM Watson Premium version 2.87. Not sure if this is relevant.


------------------------------
Subbu Venkataraman
Original Message:
Sent: Mon March 04, 2024 10:48 AM
From: Subbu Venkataraman
Subject: Language Translator API
Hi,
Need help with webhook call to the language translator API.
Calling the url through the cmd prompt is working ( see snapshot below) but through Watson dialog, i am getting 400 error..
I am not sure what i am doing wrong. Anyone made a webhook call to "Identify language" url through Watson dialog flow to IBM Watson™ Language Translator ?
Will be really happy to get answers. Thanks for taking the time to go through.



------------------------------
Subbu Venkataraman
------------------------------