IBM 对话仍然适用于 botframework?

IBM conversation still works with botframework?

我遵循了本教程 chatbot with watson conversation + botframwork to build a chatbot using bot framework with watson conversation. It worked just fine in the emulator, however when I add the Microsoft App Id and Password it stops responding. When I am working on the Azure Portal the bot ceases responding on web chat testing when I change the message endpoint (https://[myapp].bluemix.net/api/messages)。端点消息或模拟器是否仍然存在问题?

我最近在通过 Azure 门户更改机器人上的消息传递端点时遇到了类似的问题,尽管我只是想使用 ngrok。如果您更改端点,机器人实际上会停止响应。解决此问题的方法是将您的 Microsoft AppId 和 AppPassword 放入您的机器人代码中,以对其进行验证。

我不确定 Watson 是如何工作的,但是对于 BotBuilder node.js 机器人,下面的代码是将非 azure 代码连接到机器人端点所必须执行的操作:

var builder = require('botbuilder')
var connector = new builder.ChatConnector({
    appId: process.env.MICROSOFT_APP_ID,
    appPassword: process.env.MICROSOFT_APP_PASSWORD
});

Here 是文档中 bot-builder 的 ChatConnector 的 link,因此您可以确切地看到它的作用,并找到一种在 Watson 代码中实现它的方法。