formflow

Integrating LUIS with FormFlow

自作多情 提交于 2019-12-04 15:32:29
I have created a bot, having a FormFlow in it. Now if you type I want to launch a product, LUIS will tell which dialog it has to go to : internal static IDialog<AssesmentHelper> CreateProduct() { return Chain.From(() => FormDialog.FromForm(AssesmentHelper.BuildForm)) .Do(async (context, profileForm) => { try { var completed = await profileForm; } catch (FormCanceledException<AssesmentHelper> e) { string reply; if (e.InnerException == null) { reply = $"You quit on {e.Last}--maybe you can finish next time!"; } else { reply = Responses.ShortCircuit; } await context.PostAsync(reply); } }); }

Call LUIS from FormFlow in C#

浪尽此生 提交于 2019-11-30 10:32:55
I am using the Microsoft bot framework to create a bot for questioning the user and then understanding the answer. The user is questioned using the FormFlow API in bot framework and answers are retrieved. Here is the code for the formflow: public enum Genders { none, Male, Female, Other}; [Serializable] public class RegisterPatientForm { [Prompt("What is the patient`s name?")] public string person_name; [Prompt("What is the patients gender? {||}")] public Genders gender; [Prompt("What is the patients phone number?")] [Pattern(@"(<Undefined control sequence>\d)?\s*\d{3}(-|\s*)\d{4}")] public

Call LUIS from FormFlow in C#

北城余情 提交于 2019-11-29 15:47:11
问题 I am using the Microsoft bot framework to create a bot for questioning the user and then understanding the answer. The user is questioned using the FormFlow API in bot framework and answers are retrieved. Here is the code for the formflow: public enum Genders { none, Male, Female, Other}; [Serializable] public class RegisterPatientForm { [Prompt("What is the patient`s name?")] public string person_name; [Prompt("What is the patients gender? {||}")] public Genders gender; [Prompt("What is the

BotFramework Avoid Confirmation in FormFlow

我与影子孤独终老i 提交于 2019-11-28 14:12:42
I want to bypass the last confirmation step in a formflow which is defined like this new FormBuilder<WizardResult>() .Confirm("No verification will be shown", state => false) .Message("Form Test") .OnCompletion(processOrder) .Build(); According to this post this could be done with the handler in confirm, but in my case the confirmation is still asked... what am I missing? It version 3.3.1.0 you only need to call .AddRemainingFields() in the FormBuilder to avoid the confirmation. The state=> false is not required any more. 来源: https://stackoverflow.com/questions/38830574/botframework-avoid

BotFramework Avoid Confirmation in FormFlow

十年热恋 提交于 2019-11-27 08:31:36
问题 I want to bypass the last confirmation step in a formflow which is defined like this new FormBuilder<WizardResult>() .Confirm("No verification will be shown", state => false) .Message("Form Test") .OnCompletion(processOrder) .Build(); According to this post this could be done with the handler in confirm, but in my case the confirmation is still asked... what am I missing? 回答1: It version 3.3.1.0 you only need to call .AddRemainingFields() in the FormBuilder to avoid the confirmation. The