botframework

How to style chat window using CSS when using Microsoft Bot Framework

最后都变了- 提交于 2019-12-29 01:46:10
问题 I have created a simple Chat bot through the use of Microsoft Q&A maker and deployment to azure. Out of the box, the bot has its own default style. I want to be able to edit the look and feel of the chat window, possibly using CSS. I have found a couple of questions here but they do not give the complete answer I am looking for. I have done some research and found information at these URLs: https://github.com/Microsoft/BotFramework-WebChat https://github.com/Microsoft/BotBuilder/issues/202

Bot Framework fails to send FacebookQuickReply using AddKeyboardCard or using ChannelData

帅比萌擦擦* 提交于 2019-12-29 01:45:13
问题 I am using Bot Framework 3.3.0 which I understand supports Facebook's quick replies implemented properly (as opposed to creating a dynamic object and sending it via ChannelData ). The class name is Microsoft.Bot.Builder.ConnectorEx.FacebookQuickReply. Here is how I create the quick replies from within an IDialog: var reply = context.MakeMessage(); reply.Text = msg; var quickReplies = new List<FacebookQuickReply>() { new FacebookQuickReply(FacebookQuickReply.ContentTypes.Text, "Cathay",

Bot framework v4.0 how to execute the previous waterfall step in a dialog

99封情书 提交于 2019-12-28 22:44:28
问题 I'm trying to create a dialog in which I define multiple waterfall steps. In the context of this dialog, I need sometimes to go back to the previous waterfall step according to the choice of the user. I found this method : await stepContext.ReplaceDialogAsync("Name of the dialog"); however, this method re-execute the whole dialog and this is not what I need. In fact, the waterfall steps that I created are three : ChoiceCallStepAsync: The first step will list the first 10 calls of the user

Handling multiple dialogs in Microsoft bot framework

北城余情 提交于 2019-12-28 04:18:16
问题 I am creating a bot using Microsoft bot framework , the bot will be receiving orders for a restaurant , I want to know how can I handle multiple dialogs , like for example the customer makes the first order , then i want the bot to ask do you want something else? then the customer says yes/no , incase of yes to repeat the same dailog again with keeping the state of the first one , what I am seeing in the documentation now is only one conversation and one dialog. Thanks a lot 回答1: To manage

Microsoft Botframework channel messenger not working in development mode

允我心安 提交于 2019-12-25 19:00:12
问题 I need enable channel messenger for botframework. i make follow this guide: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-facebook#enable-messenger exclude "submit for review". i want test before submit review. Until an app is published, it is in Development Mode. Plugin and API functionality will only work for admins, developers, and testers. i am administrator for app & that page. i try chat but bot not working. Env info: Facebook API version: 2.12 Bot

Unable to deserialize the response - GetUserDataAsync

人走茶凉 提交于 2019-12-25 17:17:10
问题 I am working bot technology, in one of my project I used bot state concept to get the bot data and set new data here I used state client object like this below //var stateClient = new StateClient(new Uri("http://localhost:9000/")); var stateClient = new StateClient(new Uri("https://skype.botframework.com")); This is code I wrote in LoginController.cs if (stateClient != null) { var getData = await stateClient.BotState.GetUserDataAsync(Constants.Constants.botId, activity.From.Id);// 29:1

Microsoft Bot : How to capture Too Many Attempts in Form Flow?

*爱你&永不变心* 提交于 2019-12-25 16:52:16
问题 I have developed one BOT application, where i have used form flow to ask set of questions to User. Now i have requirement to capture event when user enters invalid option more than 3 times. I have found TooManyAttemptsException class for PromptDialog, but could not find the same for FormDialog. Is there any way to capture the too many attempts and stop user further attempt in a FormDialog? //Sample code { var enrollmentForm = new FormDialog<AppointmentQuery>(new Models.AppointmentQuery(),

Microsoft Bot Framework: Saving the chat history

最后都变了- 提交于 2019-12-25 09:40:33
问题 I've created a simple chatbot using bot framework and i'm trying to save the bot's chat history locally on my device for now. I've used fs to save the values/arguments the user enters, into a file. For e.g.: their name. However, I want to include the whole chat conversation i.e. the message the user sends and the reply the bot gives. I tried using fs.appendFile(filename, session, function(err) to capture those dialogs but it just displays [Object object] in the file. How can I capture the

Azure bot from template with credentials doesn't work in emulator

霸气de小男生 提交于 2019-12-25 08:39:09
问题 My bot just refuses to work with my appId & password on my dev emulator so tried to do the simplest version possible. This is what I tried: Create a new blank project from the newly copied "Bot Application" template. Update all the NuGet packages (except System.IdentityModel.Tokens.Jwt v5.1.4 as it isn't compatible with Microsoft.Bot.Builder 3.8.1). Test it in the emulator with no AppId / Password and it works. Update the AppId & Password in the web.config. Run the emulator again and enter

Bot framework 412 “The data is change” when connect with Luis

馋奶兔 提交于 2019-12-25 05:19:17
问题 I have a simple bot with help of Luis. It's very basic code and I don't know why I get 412 error after I past message to Luis intent. My code look like: MessageController: if (activity.Type == ActivityTypes.Message) { // Get any saved values StateClient sc = activity.GetStateClient(); await sc.BotState.GetUserDataAsync(activity.ChannelId,activity.From.Id); var haveGreeting = userData.GetProperty<bool>("HaveGreeting"); // Create text for a reply message StringBuilder strReplyMessage = new