通过网络聊天在本地部署 botbuilder 聊天机器人的步骤
Steps to deploy botbuilder chatbot locally through webchat
我想使用 Microsoft bot builder 框架在 java 中构建一个机器人。我正在试用提供的示例 here。我想知道如何 本地 在网络聊天中部署使用 botbuilder-java 框架开发的机器人。
我盲目尝试了 another ST link 中列出的 html,如下所示
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({
secret: '',
token: '',
domain: 'http://localhost:8080/directline',
webSocket: false // defaults to true
})})
但是由于控制台上的各种错误而失败。请指导我如何继续。请注意,我的机器人和网络聊天客户端需要在本地部署(而不是在模拟器上)。没有天蓝色的部署。
谢谢。
我发现 javascript 代码不完整。完整代码为
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({
secret: '',
token: '',
domain: 'http://localhost:7070/directline',
webSocket: false // defaults to true
}),
styleOptions: {
hideUploadButton: true
}
}, document.getElementById('webchat'))
我想使用 Microsoft bot builder 框架在 java 中构建一个机器人。我正在试用提供的示例 here。我想知道如何 本地 在网络聊天中部署使用 botbuilder-java 框架开发的机器人。
我盲目尝试了 another ST link 中列出的 html,如下所示
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({
secret: '',
token: '',
domain: 'http://localhost:8080/directline',
webSocket: false // defaults to true
})})
但是由于控制台上的各种错误而失败。请指导我如何继续。请注意,我的机器人和网络聊天客户端需要在本地部署(而不是在模拟器上)。没有天蓝色的部署。
谢谢。
我发现 javascript 代码不完整。完整代码为
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({
secret: '',
token: '',
domain: 'http://localhost:7070/directline',
webSocket: false // defaults to true
}),
styleOptions: {
hideUploadButton: true
}
}, document.getElementById('webchat'))