watson-developer-cloud / assistant-simple

A simple sample application demonstrating the Watson Assistant api.
https://assistant-simple.ng.bluemix.net/
Apache License 2.0
481 stars 1.14k forks source link

Doesn't work with the new assistant using Skill #213

Closed laurentvinc closed 6 years ago

germanattanasio commented 6 years ago

HI @laurentvinc, you are right. This demo works with Assistant v1 and not Assistant v2.

We will look into creating a new demo once V2 is leaves beta

laurentvinc commented 6 years ago

i am using brand new instance of watson assistant but the API V1 are still the same. so I expected to get something running with the right APIkey , url and workspace ID. am i wrong?

Oliver-I commented 6 years ago

@stevenpkg Can you look into this. The app is running without issue on https://assistant-simple.ng.bluemix.net/

stevenpkg commented 6 years ago

@laurentvinc what output are you seeing in the console from npm start?

laurentvinc commented 6 years ago

So finally it is running but with the credentials the variables assistant_username=apikey assistant_password = previously I used the variables assistant_iam_apikey and assistant_url. in this case the application didn't success to reach the service.

that's fine now, but i am surprised by the application settings.

germanattanasio commented 6 years ago

I was able to run the application with the IAM APIKEY Here is the content of my .env file

WORKSPACE_ID="0be7658a-lionel-messi-8092-334c7e2b8ccb"
ASSISTANT_IAM_APIKEY="XBxG6KpyGRmkBlnaXuSQfKBmNc4Au7_maradona"
ASSISTANT_URL="https://gateway-fra.watsonplatform.net/assistant/api"