botframework

FormFlow define options for string field

こ雲淡風輕ζ 提交于 2019-12-23 17:40:21
问题 I am using bot framework and I am trying to define a form dynamically using FormFlow. I have a problem with one specific field: .Field(new FieldReflector<IssueFormModel>(nameof(IssueResultModel.ProductPlatform)) .SetType(typeof(string)) .SetDefine(async (issue, field) => { if (issue.ProductName != null) { foreach (var platform in productsWithPlatforms[issue.ProductName]) { field.AddDescription(platform, platform).AddTerms(platform, platform); } } return await Task.FromResult(true); })

Prompt User to Upload file in Dialog Flow with MS Bot Framwork v4

南楼画角 提交于 2019-12-23 16:51:24
问题 I have a dialog flow that will require a user to upload a file/files. I would like to prompt the user and have them click on a button to open a file browse window to select the file they want to upload. I do not want to use the file chooser in the WebChat window text entry box (Users find this confusing). Is this possible? I saw in the documentation for v3 that there is a AttachmentPrompt dialog. However in the documentation for v4 I only see it mentioned in a one liner here... https://docs

Reply with “Is Typing” message in Microsoft botframework

放肆的年华 提交于 2019-12-23 16:16:10
问题 I am developing a chatbot using MicrofsoftBotFramework on c#.net and LUIS cognitive services. I want when user type it should reply as typing or bot is typing.. public async Task<HttpResponseMessage> Post([FromBody]Activity activity) { Trace.TraceInformation($"Type={activity.Type} Text={activity.Text}"); if (activity.Type == ActivityTypes.Message) { //await Microsoft.Bot.Builder.Dialogs.Conversation.SendAsync(activity, () => new ContactOneDialog()); //Implementation of typing indication

Connecting LUIS dialog to form dialog and mapping the right fields

邮差的信 提交于 2019-12-23 12:58:33
问题 I am working on a bot where you can book a flight. I'm working with the latest version of the bot framework (1.1), as suggested suggested here. You can say things like "Book me a flight from Amsterdam to Boston next monday". Now, I configured LUIS to respond with the intent "BookFlight" and in my bot I've made a LuisDialog and FormDialog like so: [LuisIntent("BookFlight")] public async Task Process(IDialogContext context, LuisResult result) { var form = new BookFlightForm(); var entities =

ChatBot did not work in Web Emulator but work well in Local Bot Framework emulator

感情迁移 提交于 2019-12-23 10:08:12
问题 The bounty expires in 8 hours . Answers to this question are eligible for a +100 reputation bounty. Eng Soon Cheah is looking for an answer from a reputable source : “The Chatbot is retrieve the data from SharePoint On-Premise. The ChatBot is hosted outside of SharePoint Page.” I developed the ChatBot that integrates with SharePoint On Premise. When I debug the ChatBot in emulator, it work. But When I debug on Web Emulator in Azure and Website Hosted in Company Website by using DirectLine, it

AAD authentication in Microsoft teams for Bot Framework

ぃ、小莉子 提交于 2019-12-23 05:09:40
问题 My Bot service uses a custom service that does AAD authentication before providing data. I have been using AuthBot for getting the AAD authentication. This method causes the user to move away from the bot and then paste back a magic code to complete the authentication. With Microsoft teams, is it possible to use the token generated for Teams authentication for Bot purposes? 回答1: It seems like the Microsoft Teams Channel does not support this feature, although it might be possible that it will

Showing Datepicker in FormFlow (Bot Framework)

我是研究僧i 提交于 2019-12-23 04:55:33
问题 I am working on a FormFlow feature of a bot framework in one of my bot projects. The bot is required to get input from user about the date range (From and To). The form flow works, however the bot requires to enter DateTime in string. To avoid human errors, I would like it to be a Date picker (like the one in Adaptive Cards) instead of string input from user. I tried setting type of field explicitly but it didn't work for some reason. See the code below. [Serializable] public class Leave {

Get Skype voice notes in a bot

吃可爱长大的小学妹 提交于 2019-12-23 04:52:15
问题 I am developing a bot in C# for Skype and my problem is that I would like to transform the voice notes that can be sent by the phone (with the icon of the microphone) in text and I can't get that audio. In the properties of the activity.attachment that I receive I have seen the following: ContentType: audio Content: ContentURL: https://smba.trafficmanager.net/apis/v3/attachments/0-weu-d9-734cab9e78c28a1619a39ce8c69342d1/views/original Name: 2-audioMessage.m4a Properties: {} ThumbnailUrl:

1-to-1 Proactive messaging using Bot Framework 4

六月ゝ 毕业季﹏ 提交于 2019-12-23 04:48:33
问题 I am using C# (.NET Core) with Bot Framework v4 to develop a bot service. I am a beginner to Bot Framework. The problem statement goes as follows : I want to be able to Store some questions on o365 SharePoint subscription in a list. The data structure of the list will have a column containing users who are the intended audience for the question. When a question is added to the list, I want my bot to send out the questions to intended users on Microsoft Teams. Even if the user is not online to

How can i use QnAMaker to provide random answers to same query

好久不见. 提交于 2019-12-23 03:11:15
问题 I was thinking as bots have some generic questions like how are you ? may be i have around 10 answers which i would like Q&A maker to choose randomly not every time same answer. or also questions like tell me a story 回答1: some generic questions like how are you ? may be i have around 10 answers which i would like Q&A maker to choose randomly not every time same answer. To achieve this requirement, you can try this approach: 1) Add a QnA pair and use a special character (such as | ) to split