node.js - 带有 Microsoft Bot 框架的 IBM Watson Assistant
问题描述
我正在尝试使用 NodeJS 将 Watson Assistant 与 Microsoft Bot 框架集成。有单独的 nodeJS 应用程序开发用于:
- 简单的 Echo bot,与 Microsoft bot 框架连接并给出响应(在 Bot Emulator 中)(https://github.com/akash-tha/EchoChatbotwithBotFramework.git)
- 在 Web 会话中与 Watson Assistant 连接并返回响应 ( https://github.com/watson-developer-cloud/assistant-simple.git )
但是我无法集成它们,因为我是 nodeJS 的新手并且不太熟悉它。你能帮忙吗?我会很感激!!
编辑:我在进行对话时收到警告,例如:对话的(node:25036) UnhandledPromiseRejectionWarning: TypeError: res.status(...).json is not a function UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
响应没有出现在 Bot 模拟器中。
解决方案
推荐阅读
- php - 未捕获的 RainTpl_NotFoundException
- java - Google YouTube API:播放列表列表和 quotaExceeded
- python - 如何为气流中的任务添加重试功能
- java - 如何使用自定义 setView 为 AlertDialog 设置 OnClickListener?
- javascript - nodejs - __dirname 不替换为正则表达式?
- sql - SQL - 将 DECIMAL 转换为 FRACTION 并规范化?
- php - 在 Heroku 上打开 Symfony 应用程序时出现 SQLite 错误
- javascript - 如何为电子应用程序制作一个有效的保存按钮?
- reporting-services - 如何防止 SSRS 中的报表将包含逗号的字符串数据拆分为多列?
- sql - 按 id 分组结果