botframework

Any idea on how to get this id from the conversation between attendee and bot?

假如想象 提交于 2019-12-19 03:46:13
问题 Context: BotFramework (C# SDK) + Messenger channel, bot handles two types of users: attendees (Messenger users) and organizers (who are Facebook Page's admins). Use case: When an attendee requests a human support (using an option in my bot's menu), the organizer will receive a message. In that message, I would like to add a button that will do the following once clicked by the organizer: stop the automatic replies from the bot to that user redirect the organizer to Facebook's Page inbox, with

Auto testing for Microsoft Bot Framework [closed]

时光怂恿深爱的人放手 提交于 2019-12-19 03:00:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I'm working now on my first bot with Microsoft Bot Framework, with ASP.NET. After manually testing with the bot emulator, I'm looking for the best method to create automatic testing for the bot. Considering two problems: What is the best tool to automate such tests? What is the

Auto testing for Microsoft Bot Framework [closed]

不打扰是莪最后的温柔 提交于 2019-12-19 03:00:16
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I'm working now on my first bot with Microsoft Bot Framework, with ASP.NET. After manually testing with the bot emulator, I'm looking for the best method to create automatic testing for the bot. Considering two problems: What is the best tool to automate such tests? What is the

How to get Activity Info from an IDialogContext

寵の児 提交于 2019-12-18 16:32:19
问题 I'm using a LuisDialog and all I get the the callback returns is an IDialogContext and the LuisResult. Is there a way I can get info from the original Activity, like channel, from name, et al? 回答1: Since the v3.2.0 release you can access the original incoming message from the intent handlers. Check here to understand how your intent handler should looks like. public async Task MyHandler(IDialogContext context, IAwaitable<IMessageActivity> activity, LuisResult result) Alternatively, you can

Deploy Bot in local IIS and incle it in custom chat in a webpage

这一生的挚爱 提交于 2019-12-18 09:47:54
问题 Is it possible to deploy bot in local IIS and then link it to a custom chat application which we create? if possible, how? 回答1: You can deploy it in IIS, I did so successfully. I published it to a folder (using the file system method in VS 2015) and then created a new Application in IIS whose /root folder was the location of the published bot. Make sure that you enable POST requests for the site after you publish it. Also make sure you have a SSL certificate. 来源: https://stackoverflow.com

Authenticate user across channels in Microsoft bot Framework

≡放荡痞女 提交于 2019-12-18 09:46:06
问题 I want to build a bot which can be used over multiple channels like Skype, Teams, SMS etc. I am using the BotBuilder SDK for this. I would like to authenticate a user across these channels. How do I this without asking him to log in through a web page? Since I am already logged in application (say Skype),how can I fetch the email address or number depending on the context and authenticate implicitly? If I choose to do this using OAuth, I would require the user to login at every conversation

Can we add text field dynamically

别等时光非礼了梦想. 提交于 2019-12-18 09:38:10
问题 I've created an adaptive card(using json) in my chatbot that takes input from users. I want to add a button that enables the user to add a new text field every time the user clicks on the insert field. (i.e., the user can click on insert button to enter details of education (school, college etc.)) Can this be achieved in adaptive cards? I also wanted to know, can adaptive cards be designed in any other language (excluding json) 回答1: The easiest way to do this is with Action.ShowCard : { "type

How to handle Luis intent with parameters with prompt

久未见 提交于 2019-12-18 09:24:34
问题 I have an intent in LUIS with several required parameters. I also set prompt for these parameters so that when they are not detected, LUIS asks for them. However in the BOT, I always get them as null when they are not specified. The bot is not asking for the lacking parameters (even if the Prompts are set in Luis). Why? Is there a way to get the prompts automatically? Or is that still not supported in MS Bot Framework? I'm using C# 回答1: Based on your comment it seems you are using an older

Microsoft Bot Framework: Exception: The data is changed

随声附和 提交于 2019-12-18 09:21:36
问题 I have a bot with the following conversation scenario: Send text to LUIS LUIS intent calls context.Call(...) to launch a Dialog This dialog terminates, save some info in the userData: private static async Task storeBotData(IDialogContext context, BotData userData) { Activity activity = (Activity)context.Activity; StateClient sc = activity.GetStateClient(); await sc.BotState.SetUserDataAsync(activity.ChannelId, activity.From.Id, userData); } And after it call another dialog, again with context

How can I access Bot Framework ConversationData outside of a dialog like in messages controller?

霸气de小男生 提交于 2019-12-18 04:21:56
问题 In a dialog within my bot, I store a flag value in the ConversationData like so: context.ConversationData.SetValue("SomeFlag", true); Later, I need to check that flag in my MessagesController, before the message is dispatched to a dialog. As per this previous question I tried retrieving the ConversationData in via the StateClient like this: public async Task<HttpResponseMessage> Post([FromBody] Activity incomingMessage) { StateClient stateClient = incomingMessage.GetStateClient(); BotData