简体   繁体   English

通过Microsoft Bot框架进行客户端与客户端聊天

[英]Client-Client chatting via Microsoft Bot framework

I'm new with Microsoft Bot Framework, I'm going to build a project which my customers can chat with the bot to get information, and furthermore, I want my Bot to suggest my users whether they want to chat with the Bot or with my secrectary who uses my management website to receive customer's message forwarded by the Bot . 我是Microsoft Bot Framework的新手,我将构建一个项目,客户可以与该Bot聊天以获取信息,此外,我希望Bot向我的用户建议他们是否要与Bot聊天或与之聊天。我的秘书使用我的管理网站来接收Bot转发的客户的消息。 So my question here is, how can my secretary can join the chat with customer and the Bot will keep silent. 所以我的问题是,我的秘书如何才能与客户聊天,而Bot将保持沉默。 Is there anyway to do without using Conversation Chat group because my secretary may not use the Bot Framework chat control to connect. 无论如何,不​​使用对话聊天组就可以做,因为我的秘书可能不使用Bot Framework聊天控件进行连接。 I'm thinking of using SignalR which will help my secretary chat with customers 我正在考虑使用SignalR,它将帮助我的秘书与客户聊天

Here is my plan: 这是我的计划: 项目架构师

Take a look to the Bot HandOff sample (node.js) and the Intermediator Bot sample (C#) as they will give you the basics to build what you are looking for. 看一下Bot HandOff示例 (node.js)和Intermediator Bot示例 (C#),因为它们将为您提供构建所需内容的基础知识。

Basically, in the samples you will see how to handoff the conversation the user is having with the bot to a human (in this case your secretary). 基本上,在示例中,您将看到如何将用户与机器人进行的对话移交给人类(在本例中为您的秘书)。 The only pre-req is that your secretary would have to be in one of the supported channels for BotFramework, eg Skype and have the Bot as a contact, because the conversation between the user and the secretary would be through the bot (the bot will act as a message router). 唯一的先决条件是您的秘书必须在BotFramework支持的渠道之一(例如Skype)中,并且必须将Bot作为联系人,因为用户和秘书之间的对话将通过机器人进行(机器人将通过充当消息路由器)。

If you use a custom channel (like your website); 如果您使用自定义渠道(例如您的网站); you still can follow some of the patterns explained in the samples. 您仍然可以遵循示例中说明的某些模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM