首页 > 解决方案 > 带有 Microsoft Bot 框架的 IBM Watson Assistant

问题描述

我正在尝试使用 NodeJS 将 Watson Assistant 与 Microsoft Bot 框架集成。有单独的 nodeJS 应用程序开发用于:

  1. 简单的 Echo bot,与 Microsoft bot 框架连接并给出响应(在 Bot Emulator 中)(https://github.com/akash-tha/EchoChatbotwithBotFramework.git
  2. 在 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 模拟器中。

标签: node.jsbotframeworkibm-watson

解决方案


推荐阅读