Cognitive Activity: Watson

activities

#1

Hi,

I have not found out what is expected for the api key in the cognitive activity.
Is it the token which you need to request ? Or is it the JSON which includes URL, User, PW ?

Br,

Dennis


#2

It is just the token.


#3

Hi @richarddenton, can you give us the format of that token? Like an example of how to put the key of the Watson activity in UiPath.
Regards.


#4

Hi @richarddenton,

I created an account at IBM Bluemix and registered a Watson service. The following credential is shown:

{
“url”: “https://gateway.watsonplatform.net/natural-language-understanding/api”,
“username”: “yyyyyyyy-tttt-ffff-blaa-1234567891234”,
“password”: “xxxxxxxxxxxx”
}

So how do I receive the requested token for UIPATH from Watson Service ?

Br,

Dennis


#5

Found the solution: https://www.ibm.com/watson/developercloud/doc/common/getting-started-tokens.html


#6

Hi @dsuhari.
Can you give me an example of how to do this activity? It doesn’t works with the token or the credentials. I don’t know if I am putting the key in a wrong way.


#7

Hi @dsuhari
I’ve got the IBM token but when I paste the token into the Key field in IBM Watson, it doesn’t work. Can you please help me how to use the token?


#8

When you say it doesn’t work, what do you mean? do you get any sort of error message? Please send a screenshot of what you have done.

RD


#9

After I’ve got the token using curl method from IBM token instructions

The token is something like this:

477C2JviNhdVHg9uVrm3QKYZ0wLgINy%2FUn%2B4omGzZ52X%2BtrGANe%2BjTpvwCu1RMbQzlRWZERWHsS8K3W2kOPe6JskFuKPx1rXJ9C4MNxB7NxEMjyPuiD8KKYqLwubthS3v94pVauux0zIQ6we4DJIay0AZSyrnQBqu9KtQhByGfVaRk9bBVLwLVRw1AaSDYJuLZhjJX2e5AE2owEvmiEf3SMn30C7MA30pISOfKaTDJrzEx%2F84T7lySht2JOoyTLPemrsXoRr2jLANE5JL5uvoryoC3NJoeV%2BAWfCioQDRdGsu4wrzMYFFjPhCTCFi4Rw5j9rRuSxbNy%2F5RfzXQMQ%2BzpnT3R95fTCu%2FMXg8alxxFYS7HGwJnnG%2BM0tvrSTCxNLEdTKcUtxhRmh68JkEyTaV0fnzBHJrElSKJLeW4XtXKKHGaoBXRaMSfH9WI62VkxhrvHSTz%2BRlpQibcV%2BKKCd1GLTn0OsKBmv8EKBWPU%2FHMNg9oelSAGz3qrtU4hqHfpZpxxbbQFSqJ4z9lCQrCzm5TOtYldfy6b4IFmmneYvauOn3xJB7NtNY2mzM94%2F%2FrlnSr3CbqK1LWUvNlP3QNqtkB4W%2B93KSJWPIwxJWrq5VyS3RhqIZV1vLEUWy0Z%2FlemR7Qd%2F7XXeOwZDnogXy5KyjKIdxapUTbPSZW6XemjpW%2BVGRpH8tYnaIHdMd%2B7DA%2BfhJaiU48kBzRN%2FpXYCmEmX%2BewE88CTxDYUMt64oZtUJ0GWp0Vv486%2BWNfH7duyl70cwcuVP3XZT0aNXqyLZ0QyhlmILwqo3rMHyFPYzE%2BIU5mC6KXxMrm%2B3MhukFXAumX9KGpscca%2Fhv8C5Yvrob0HlmACHUB2y%2Bdm3yZ2oKWzcbyAxqxM4WiJ3LvtF7Uu4Zvarmi4VT%2F9Ero8uhWQspRWqAVvhkrekZGotKNBmnXEcXioOhhK%2FQqg2saMOMNN4dvUBhgcP6TYFDu9xj7UzDW1xPoRdrhUfGOdwf

I pasted the token into the Key input field of IBM Watson Text Analysis Activity and run the sequence and it’s run to an error as below:

That’s the situation I’ve run into. Not sure if I’ve got the token in the wrong way or I gotta do something to turn the token into a key.
Thanks in advance!


#10

Hi @Hoang_Anh_Bui do you get the same mistake when you use the token outter UIPath using the “Using a token” instruction ?

Br, Dennis


#11

Hi @dsuhari,

I’ve never used the token outter UiPath so can’t tell anything more than that.
I know this sounds a bit of a noob question but can you tell me how exactly do you work with IBM Watson activity on UiPath? A step-by-step would be greatly appreciated.

Best regards,
Hoang Anh


#12

Hi,
In IBM Watson text analysis,I’m getting the error like this while running my task.
{
“code”: 401,
“error”: “Not Authorized”,
“description”: “No credentials supplied.”
}
Please anyone help me out to do this.


#13

Seems that you have not supplied credentials :slight_smile:

Do you have a test token? - if you search the forum you will find guides on how to do this.

RD


#14

Hi All,

We want to use IBM Watson Text Analysis for one process. I am not able to generate API key for service. I have received token but how to use it further i dont know.
Could someone please guide us to get it done.

And What will be the Service URL?

Omkar


#15

Hi,

Can you please let me know how did you get the token for Natural Language Understanding?

curl -X GET --user “username”:“password” \ “https://stream.watsonplatform.net/authorization/api/v1/token?url=https://stream.watsonplatform.net/natural-language-undersanding/api

I got the token, however where do i add my model ID?


#16

I got the token, however i am getting the same error as 401 or the alchemy error, when i leave the URL empty.