watsonx Assistant

 View Only
  • 1.  Language Translator API

    Posted Mon March 04, 2024 10:49 AM

    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
    ------------------------------


  • 2.  RE: Language Translator API

    Posted Mon March 04, 2024 11:25 AM

    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
    ------------------------------



  • 3.  RE: Language Translator API

    Community Leadership
    Posted Wed March 13, 2024 04:37 PM

    Hello Subbu,

    I have reached out to some of my internal contacts in order to get your question answered and in the mean time let me know if this document has some information that may be relevant, https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-build-custom-extension

    Thanks,

    Nick



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



  • 4.  RE: Language Translator API

    Posted Thu March 14, 2024 07:55 AM

    Thanks Nick.  I will take a deep dive on the custom extension solution. I feel this should work.

    Subbu



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



  • 5.  RE: Language Translator API

    Posted Wed March 13, 2024 05:10 PM

    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
    ------------------------------



  • 6.  RE: Language Translator API

    Posted Thu March 14, 2024 08:45 AM

    Hi Jason,

    I tried sending user utterance from Watson UI  ie <? input.text ?>  . It didn't work. Let me check.

    Thank you for your response. 

    Subbu



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