Client-Client chatting via Microsoft Bot framework

2020-06-06 08:01发布

问题:

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 . So my question here is, how can my secretary can join the chat with customer and the Bot will keep silent. Is there anyway to do without using Conversation Chat group because my secretary may not use the Bot Framework chat control to connect. I'm thinking of using SignalR which will help my secretary chat with customers

Here is my plan:

回答1:

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.

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, e.g. 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).

If you use a custom channel (like your website); you still can follow some of the patterns explained in the samples.