[英]how to define intents and entities on IBM watson conversation with Node.js app?
I have made a chatbot on IBM WC and now I have a Node.js application from which I want to design a chatbot on Watson Conversation. 我已经在IBM WC上创建了一个聊天机器人,现在我有一个Node.js应用程序,我想从该应用程序设计Watson Conversation上的一个聊天机器人。
Is there a way I can set my intents and entities with some API through my Node app? 有没有一种方法可以通过Node应用程序使用一些API设置意图和实体?
What is the best way to do this? 做这个的最好方式是什么? Is this doable and what maybe the best approach to do this with Node.js?
这可行吗,用Node.js做到这一点的最佳方法是什么?
You can check the Watson Conversation API documentation for Node.Js - https://www.ibm.com/watson/developercloud/conversation/api/v1/node.html?node , based on NPM package "watson-developer-cloud". 您可以基于NPM软件包“ watson-developer-cloud”查看Node.Js的Watson Conversation API文档-https://www.ibm.com/watson/developercloud/conversation/api/v1/node.html ? node 。 There are methods and examples for creating workspace/entities/intents directly from your code, after you defined the WCS service in your bluemix account.
在bluemix帐户中定义WCS服务之后,有一些方法和示例可以直接从您的代码创建工作区/实体/意图。
There is a SDK for Node.js that you can use with Watson Assistant (formerly Watson Conversation). 有一个可以与Watson Assistant(以前称为Watson Conversation)一起使用的Node.js SDK 。 It supports the API to retrieve and create intents and entities.
它支持API来检索和创建意图和实体。
About a year ago I wrote an " Egobot " in Python that dynamically, based on the dialog, extends a conversation workspace. 大约一年前,我用Python编写了一个“ Egobot ”,它基于对话框动态扩展了对话工作区。 It is using the same API, though it is a different programming language.
尽管使用不同的编程语言,但它使用的是相同的API。 The same is used by this CLI tool to retrieve entire workspaces and to interact with the different objects (intents, entities, ...).
此CLI工具使用相同的内容来检索整个工作空间并与不同的对象(意图,实体等)进行交互。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.