botframework

Difficulty accessing messages in an existing conversation in Microsoft Bot Framework

此生再无相见时 提交于 2019-12-13 06:13:16
问题 I'm trying to build a separate app - basically a daemon running on my intranet - that can connect to a Bot Connector app and access an existing conversation between a user and the bot. To start at this, I'm using the DirectLine NuGet package, and then searching for existing messages with the conversationId found in a conversation I've started with the bot via the emulator. For example, I fired up the emulator, and got the conversationId "8a684db8". Over in my console app, I've got the

How can I attach file to message with Microsoft Bot Framework?

丶灬走出姿态 提交于 2019-12-13 05:25:38
问题 I have Web API service: [ActionName("download")] [HttpGet] public HttpResponseMessage Download() { var stream = new FileStream(HostingEnvironment.MapPath("~/tmp/") + "doc.pdf", FileMode.Open); var result = new HttpResponseMessage(HttpStatusCode.OK) { Content = new StreamContent(stream) }; result.Content.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("attachment") { FileName = document.Name + "." + document.AssociatedApplication.Extension }; result

How to turn on always the microphone in bot framework direct line

拈花ヽ惹草 提交于 2019-12-13 05:09:28
问题 I'm creating a bot which accept text and voice input and also can answer in both mode. The bot works really good but i have to click always the button of microphone to speak with the bot. Do you know it is possible to make microphone always on and to recognize the voice without clicking the button of microphone ? <!DOCTYPE html> <html> <head> <link href="https://cdn.botframework.com/botframework- webchat/latest/botchat.css" rel="stylesheet" /> </head> <body> <div id="bot" /> <script src=

Avoiding Interrupts During a Waterfall Dialog

我们两清 提交于 2019-12-13 04:20:55
问题 I have a waterfall dialog in my Microsoft bot framework which asks the user several questions like geo, company, etc. I have another dialog which gets triggered when the LUIS intent matches GetCompanyNews. I observed in the emulator that when the user types company name during the waterfall conversation, it triggers the other dialog and the waterfall dialog gets replaced. Is this the expected behavior? If yes, then is there any way to prevent interruptions to the waterfall dialog? 回答1: There

Is Functions Bot no longer a recommended Bot Service in Azure?

流过昼夜 提交于 2019-12-13 04:08:26
问题 I have a system that is serverless and I'm looking to add Bot Framework to it, mainly to provide integrations to different chat channels. I was thinking about trying out creating a Functions Bot in Bot Service. But when I start creating one I get this info message: Functions Bots are based on SDK v3, lifetime support will end 12/31/2019. We recommend you create a SDK v4 Web App Bot instead. Read more about SDK v3 lifetime support. I read the linked document about SDK v3 lifetime support, but

Check if an input form is filled in a Adaptive Card bot framework c#

纵然是瞬间 提交于 2019-12-13 03:59:13
问题 Can we check whether the input form in an adaptive card is filled or not with a warning message. I am currently using an adaptive card to gather user input in bot application,I have already added isRequired for input validation but it doesnot give any warning message instead when I click on submit it doesnot go to the next method. As soon as the user presses submit I want to make sure that the form is not empty 回答1: If you have an Adaptive Card like this (notice the ID given to the input):

Skype channel proactive message request get 500 (Internal Server Error) after some time

青春壹個敷衍的年華 提交于 2019-12-13 03:51:06
问题 I am developing a bot for Skype channel, which can send proactive messages. I followed the example project https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/16.proactive-messages , and this works for my need. I host my bot on a shared hosting service, not Azure. I registered my bot in Azure Channel Registration, tested on skype. Bot responds to me, and when i send request to proactive endpoint, i get proactive message. Everything is fine. Then i realized,

How to initialize Bot framework dialog in a Luis intent block

好久不见. 提交于 2019-12-13 03:50:40
问题 Bot Framework Sample - NLP Dispatch Hi, I am using NLP dispatch, where I am having multiple Luis and QnA models running simultaneously. I have mapped top-scoring intents for Luis and have created a dialog class also which I want to implement in those intents mapped blocks. How can I initialize my dialog in the intent if block? I have tried using Dotnet core 2.1 version and dispatch's latest version code for dialog - private async Task<DialogTurnResult> LeaveDateRangeStepAsync

How do i get the result of a adaptive card?

故事扮演 提交于 2019-12-13 03:50:32
问题 I'm trying to get the result of my AdaptiveCard. My bot uses waterfalldialogs. In one Waterfallstep i present the user a number of Rooms with the time and date. The user then can choose a room. I tried it like shown below. Sadly the activity stays null. How do I get the result of the adaptive card private async Task<DialogTurnResult> AfterChoice(WaterfallStepContext step, CancellationToken cancellationToken) { if (step.Result is Activity activity && activity.Value != null && ((dynamic

How to deal with timeouts in botframework SDK3 C#

吃可爱长大的小学妹 提交于 2019-12-13 03:48:06
问题 I'm so sorry that I'm a newbie that I have so many questions. My Bot state is save in DB. So it would never timeout. And I use teams. But I want to restart conversation if user don't reply for 10 minutes. This is my solution. According this, I also made a static dictionary which could help me to handle every conversations' timer easily. And with the help of Sample Code, I did interrupt the stack. But once it's finished, it will be back to the original conversation. To solve this problem. I