我目前是IBM Watson(Watson Assistant)的新手,我无法理解。它在哪里可以找到?
码:
var watson = require('watson-developer-cloud');
var assistant = new watson.AssistantV1({
iam_apikey: '{apikey}',
version: '2018-09-20',
url: '{url}'
});
assistant.message({
workspace_id: '{workspace_id}', // <-- THIS, where can i get the right parameter.
input: {'text': 'Hello'}
}, function(err, response) {
if (err)
console.log('error:', err);
else
console.log(JSON.stringify(response, null, 2));
谢谢。
有关如何检索IBM Watson Assistant的工作区标识的选项有两个。
这里是你正在寻找IBm Cloud Watson Assistant: How to get the ID of a workspace答案的链接
当您使用Watson Assistant服务的V1时,它是Workspace ID。 Watson Assistant的有效V2,您将使用技能并需要技能ID。