BOT DirectLine与MVC应用程序集成

时间:2018-02-02 19:42:15

标签: c# asp.net-mvc bots botframework direct-line-botframework

我创建了我的BOT框架 - LUIS。对于简单的场景也进行了托管和测试。 现在,我想将其集成到基于MVC框架的注册门户中, 我选择了DirectLine API来对BOT通道进行更多控制。但我对使用哪种方法感到困惑:

1)https://github.com/Microsoft/BotFramework-WebChat - 使用React和支持的css进行客户端集成

2)https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/core-DirectLineWebSockets - C#用C#初始化对话

使用一个优于另一个是否有任何优势。作为C#开发人员我选择了第二个选项但是选项1也为你提供了CSS / JS。我想如果我们选择第二选项,我们可以更加控制,但我不自信,因为我是BOT的新手。

请指教!

1 个答案:

答案 0 :(得分:0)

Webchat is a component using DirectLine, it is a prepackaged integration that you can easily embed in your site. It contains a webchat that has all the logic to communicate and handle the different types of messages. It also has pre built functionalities for speech.

DirectLine sockets is different: it's 1 (or more) layer down, it should be used if you are not interested in the UI of the webchat.