botframework

Saving bot state data in mySQL with .NET

為{幸葍}努か 提交于 2021-01-28 10:06:10
问题 Since the Bot State service will be retired soon I want to store my bot state information in my local mySQL database. I tried to instantiate the SqlBotDataStore client in Global.asax using mySQL connection string but I think I'm missing something since SqlBotDataEntities table have not been created. Kindly give your suggestions on this. Thanks! protected void Application_Start(object sender, EventArgs e) { { var config = GlobalConfiguration.Configuration; Conversation.UpdateContainer( builder

Botframework v4. Continuing a dialog in a Proactive way after pause

别来无恙 提交于 2021-01-28 07:47:02
问题 I have a normal dialog with some waterfall steps. At the very beginning I request a value and once the user types something then I am put it into a Queue (another app will complete the validation because this could a while) and stop the steps using the following line: return new DialogTurnResult(DialogTurnStatus.Waiting); of course, the code is saving the dialogs state in a blob in azure. All good in that matter. Now, once the app ends the process, I am constantly reading the status of the

Send sms notify message to user when his/her account locked, how can i do that in C#

99封情书 提交于 2021-01-28 06:26:51
问题 Bot Info SDK : C# Active Channels: SMS (Twilio) Bot version: v4.4.3 Issue Description: I'd like to be able to send proactive messages through SMS messages. When a user's account locked, i have that person's phone number, and i want to send a notify message like "your account is locked, please do something." Is this possible? i checked the documentation about proactive message, which is get the "ConversationReference" through "activity", i don't know with the phone number, can i create a

Dialogs keep their variable values in new conversation in MS BotFramework v4

帅比萌擦擦* 提交于 2021-01-28 04:22:29
问题 I'm using MS BotFramework v4. There is a RootDialog which starts Dialog_A or Dialog_B depending on what the user input is. TL;DR If a new conversation is started after a conversation and the bot isn't restarted, private variables of dialogs to which a value (which is not the initial value) has already be assigned, are not reseted to their initial value leading to unexpected behavior. How can this be avoided? Detailed Let's assume the following scenario: Each of these dialogs has some private

Why doesn't the Azure Bot Service Slack connector forward Events and Interactive Messages?

我怕爱的太早我们不能终老 提交于 2021-01-27 20:51:56
问题 Update: June 30, 2020 After more testing, I have details that might help someone recognize my problem. The issue seems to be that Slack is sending data to Azure Bot Services, but that data isn't being forwarded to my code. Ive been able to use the Bot Emulator without any problems and the Azure Web Chat works fine. I know that the Slack configuration for the OAuth Redirect URL is correct (I was able to add my bot to Slack) and the Request URL for Events is correct (they sent the 'challenge'

Prompts not showing in in microsoft Teams integrated bot

醉酒当歌 提交于 2021-01-27 20:10:14
问题 I created bot using QnaMaker.ai service and Microsoft azure services.It's working fine with webchat channel.Now i integrated it with Microsoft Team channel and that's where i got into a problem. The prompts that were working in webchat channel are not working same in Teams channel. Like for question i showed 4 options to select.But in microsoft teams they are Bot in webchat channel and bot in Teams 回答1: Are you trying to show Suggested Actions? Suggested actions are not supported in Microsoft

End a conversation c# bot

故事扮演 提交于 2021-01-27 18:58:47
问题 I'm building a ChatBot in C# and I want that after some messages the conversation stop, but I don't know how to do it. I have already set a limit of messages, and I want that after the reach of this limit no more messages can be send. There is my code: private int NombreDeMessages; protected override async Task MessageReceived(IDialogContext context, IAwaitable<IMessageActivity> item) { var message = await item; NombreDeMessages += 1; if (message.Text != null && NombreDeMessages < 3) { await

Resume Bot Framework dialog when triggered by external service

风格不统一 提交于 2021-01-27 14:22:06
问题 The Scenario I have a bot built using the Bot Framework with a series of dialogs. One of these dialogs gives the user the option of inputting some complex data via a web page by presenting a button to them. Clicking the button they are then taken to the site, fill out the data, save and are then directed back to the bot. I want my bot to pause the dialog until it receives an event from my web page telling me the user has saved the data and then continue asking the user questions. Before I had

How to call QnA Maker on a waterfall dialog using C#?

倾然丶 夕夏残阳落幕 提交于 2021-01-27 11:14:55
问题 I am trying to call QnA Maker on a waterfall dialog step . How do I call it from this watterfall step, do I need to set up QnA On the waterfall step, do I need to call QnA from a LUIS intent , what can I do? I need it to get the first result from the QnA using the step context from the previous question. Can anyone help? Code: private async Task<DialogTurnResult> QnaAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { var response = await qnaMaker.GetAnswersAsync

How to call QnA Maker on a waterfall dialog using C#?

青春壹個敷衍的年華 提交于 2021-01-27 11:12:41
问题 I am trying to call QnA Maker on a waterfall dialog step . How do I call it from this watterfall step, do I need to set up QnA On the waterfall step, do I need to call QnA from a LUIS intent , what can I do? I need it to get the first result from the QnA using the step context from the previous question. Can anyone help? Code: private async Task<DialogTurnResult> QnaAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { var response = await qnaMaker.GetAnswersAsync