我想使用microsoft构建器框架在java中构建一个bot。我正在试验提供的这里样品。我想知道我如何在本地部署一个使用僵尸框架在webchat上开发的机器人。
我盲目地尝试了另一个ST链路上列出的html,如下所示
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({
secret: '',
token: '',
domain: 'http://localhost:8080/directline',
webSocket: false // defaults to true
})})
但是,如果控制台上出现各种错误,就会失败。请指导我如何前进。注意,我的机器人和网络聊天客户端需要在本地部署(,而不是在模拟器上)。没有天蓝色的部署。
谢谢。
发布于 2020-10-30 11:26:51
我发现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'))https://stackoverflow.com/questions/64334376
复制相似问题