我已经通过 Azue BotService 设置了 QnA Bot,并且想使用 WebChat channel ,但聊天界面的默认 MS Design 相当平淡;有办法让我编辑它吗?
是否可以采用左侧的默认主题,例如下图中右侧新西兰航空的机器人?
最佳答案
这取决于您希望如何将网络聊天集成到页面中,但是可以更改方面,它只是 css
和 js
所有详细信息均在 Webchat 的 GitHub 帐户上提供:https://github.com/Microsoft/BotFramework-WebChat
简而言之:
Want to run a custom build of WebChat? Clone this repo, alter it, build it, and reference your built botchat.css and botchat.js files.
对于样式:
Styling
In the /src/scss/ folder you will find the source files for generating /botchat.css. Run npm run build-css to compile once you've made your changes. For basic branding, change colors.scss to match your color scheme. For advanced styling, change botchat.scss.
关于css - 编辑 Microsoft ChatBot UI 设计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44620604/