如何在与 Node.js 应用程序的 IBM watson 对话中定义意图和实体?

how to define intents and entities on IBM watson conversation with Node.js app?

我已经在 IBM WC 上制作了一个聊天机器人,现在我有一个 Node.js 应用程序,我想从中设计一个关于 Watson Conversation 的聊天机器人。

有没有一种方法可以通过我的 Node 应用 API 设置我的意图和实体?

最好的方法是什么?这可行吗?使用 Node.js 执行此操作的最佳方法可能是什么?

有一个 SDK for Node.js that you can use with Watson Assistant (formerly Watson Conversation). It supports the API 可以检索和创建意图和实体。

大约一年前,我写了一个“Egobot" in Python that dynamically, based on the dialog, extends a conversation workspace. It is using the same API, though it is a different programming language. The same is used by this CLI tool 来检索整个工作区并与不同的对象(意图、实体……)进行交互。

您可以查看 Node.Js - https://www.ibm.com/watson/developercloud/conversation/api/v1/node.html?node 的 Watson Conversation API 文档,基于 NPM 包 "watson-developer-cloud"。在您的 bluemix 帐户中定义 WCS 服务后,有直接从您的代码创建 workspace/entities/intents 的方法和示例。