watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
207 stars 255 forks source link

Support for API v2 #156

Closed hosshoss closed 5 years ago

hosshoss commented 5 years ago

Hello Team,

I'm trying to use this plugin to send messages to my Watson assistant and I'm always getting this error :

{
  "watsonError": {
    "cause": {
      "code": 404,
      "error": "Resource not found",
      "x-global-transaction-id": "ffea405d5bfad94ba8598229"
    },
    "isOperational": true,
    "code": 404,
    "error": "Resource not found",
    "x-global-transaction-id": "ffea405d5bfad94ba8598229"
  }
}

I think it may be something related to the API version, my assistant API version is 2 and with the following URL:

Assistant URL: https://gateway.watsonplatform.net/assistant/api/v2/assistants/{assistant-id}/sessions

germanattanasio commented 5 years ago

This library doesn't work with assistant v2. You need to use v1.

chojehyun commented 5 years ago

This library doesn't work with assistant v2. You need to use v1.

I'm in same experience. :(
because I have poor understanding about coding. It is very hard to make solutions by myself. could you give me more detailed instruction about this? thank you for reading

mitchmason commented 5 years ago

If you have a poor understanding of coding, then I would use either the slack or facebook quick deployments that are built into Watson Assistant. Botkit is great for connecting to other channels or doing more complex things because the code is open source.

germanattanasio commented 5 years ago

I'm closing this as won't fix.