简体   繁体   English

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

[英]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.

相关问题 IBM Watson对话-无法将node.js连接到Watson对话 - IBM Watson Conversation - Unable to connect node.js to watson conversation Node.js - 结合IBM Watson Discovery和Conversation Services - Node.js - Combine IBM Watson Discovery and Conversation Services 如何使IBM Watson Assistant欢迎节点启动与Node.js或Python的对话? - How to make IBM Watson Assistant welcome node starts the conversation with Node.js or Python? 我们如何使用 node.js 在 ibm watson 的数据库中记录对话消息 - how can we do logging of conversation messages in database in ibm watson using node.js 使用node.js将Watson对话与Facebook集成 - Integrate watson conversation with facebook using node.js 使用node.js访问存储在Watson对话中的上下文变量 - Access the context variables stored in watson conversation using node.js 用于对话服务的Watson Node.js SDK的更新 - Updates to Watson Node.js SDK for Conversation Service 发送到IBM Watson Assistant之前,请在Node.js应用程序中除去上下文变量 - Remove context variable in Node.js app before sending to IBM Watson Assistant Watson IBM语音转文本:无interim_result(Node.JS) - Watson IBM speech to text: no interim_result (Node.JS) Node.js - 连接到 IBM Watson Assistant 失败 - Node.js - connecting to IBM Watson Assistant fails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM