intermediator-bot-sample | sample bot , built with the Microsoft Bot Framework | Bot library
kandi X-RAY | intermediator-bot-sample Summary
kandi X-RAY | intermediator-bot-sample Summary
This is a sample bot, built with the Microsoft Bot Framework (v4), that routes messages between two users on different channels. This sample utilizes the Bot Message Routing (component) project. The general gist of the message routing is explained in this article: Chatbots as Middlemen blog post. A possible use case for this type of a bot would be a customer service scenario where the bot relays the messages between a customer and a customer service agent.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of intermediator-bot-sample
intermediator-bot-sample Key Features
intermediator-bot-sample Examples and Code Snippets
Community Discussions
Trending Discussions on intermediator-bot-sample
QUESTION
I have build a Handoff bot using Tompanna Sample intermediator bot sample https://github.com/tompaana/intermediator-bot-sample as a root bot and connected it to a dailog Skill, We followed https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/81.skills-skilldialog this sample.
Now I am trying to store user conversation, to do that I followed this https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-v4-storage?view=azure-bot-service-4.0&tabs=csharp article however it only stores the conversation of the root bot. I want to store the conversation of both the bot root and skill.
Can anyone guide me to store the conversation? Could Application insight also be used to store the log conversations? Thanks in Advance!!
...ANSWER
Answered 2021-Jun-24 at 15:06In your question it contain only for bot storage document but you need to maintain bot state for each conversation. So if you want to store the bot conversation then you need to implement state management in bot flow.
The state and storage features of the Bot Framework SDK allow you to add state to your bot. Bots use state management and storage objects to manage and persist state. The state manager provides an abstraction layer that lets you access state properties using property accessors, independent of the type of underlying storage.
User state is available in any turn that the bot is conversing with that user on that channel, regardless of the conversation.
Conversation state is available in any turn in a specific conversation, regardless of user (i.e. group conversations)
If you want, you can additionally store conversation flow in Application insight as a custom event using TelemetryClient like trace,metrics,etc.
Reference :
QUESTION
i have bot made using c#. It has the feature of human off. We have integrated the solution provide by tompanna of human handoff where a agent can talk to single user at a time.Here the link of solution we used for human handoff https://github.com/tompaana/intermediator-bot-sample. Our bot is working fine and able to talk with agent with the help of this solution but major issue come when a user want to share image or any kind of attachments from user to agent or from agent to user. The bot show that image is send but user is not able to see it. Simpler case happen in the case of agent. Image of agent while sending a attachment to user.
And also the image of user ,unable to see the image send by agent.
...ANSWER
Answered 2020-Jan-21 at 14:30You need to edit the source code of the library to achieve what you are trying.
In this MessageRouter file , method RouteMessageIfSenderIsConnectedAsync , you can access message.Attachments , then pass it as a parameter to SendMessageAsync in line 432, then from SendMessageAsync in line 160 , you can pass it to CreateMessageActivity method and then in file ConnectorClientMessageBundle , you can access the attachment and attach it to messageActivity.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install intermediator-bot-sample
Visual Studio IDE
ngrok
Bot Framework Emulator (download) Debug bots with the Bot Framework Emulator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page