formflow

Custom message for enum options in formflow - C# Bot Framework

允我心安 提交于 2019-12-11 05:10:51
问题 I am working with MS bot framework and I can't find way to custom message for enum options in form flow. I have tried with prompt attribute but it doesn't work. What I want is: bot will show options for user like: 1) Yes, I want to be a DayNinja! 2) No, I don't want to unlock flow to achieve my goals. 3) Later, I'll start with the basics Now, All I get are: "Yes", "No", "Later" Any help will be appreciated Thank you! 回答1: You are using the wrong attribute. Instead of using the Prompt

Change Confirm options in botframework Formflow

感情迁移 提交于 2019-12-10 17:28:50
问题 I have created a formflow in botframework. I want to change the confirmation options, by default it takes 'Yes' and 'No'. but i want it to proceed instead 'Yes', even if user inputs 'OK', 'Ya', 'Yeah' etc. how i can add options for confirmation 回答1: You need to add the new terms to the Yes array of the FormBuilder configuration. Something like: public static IFormBuilder<T> CreateCustomForm<T>() where T : class { var form = new FormBuilder<T>(); var yesTerms = form.Configuration.Yes.ToList();

How to break formflow in every moment i type exit or cancel?

谁说胖子不能爱 提交于 2019-12-10 11:29:23
问题 I'm creating a chatbot in .Net C# using BotFramework. In one of my dialog when i start to fill a form flow i cannot exit from flowform till in the moment i will fill all the flow . Exist any possibility to exit and to leave form ? This is my code : LuisDialog.cs : [LuisIntent("balance")] public async Task balance(IDialogContext context, LuisResult result) { var balanca = new FormDialog<BalanceForm>( new BalanceForm(), BalanceForm.BuildForm, FormOptions.PromptInStart, result.Entities); context

Sending an IForm from a LUIS intent

老子叫甜甜 提交于 2019-12-08 08:18:42
问题 I currently have a chatbot running in visual studio using Microsoft's bot framework in the language c#. I integrated LUIS into the bot and I'm wondering how can I make it so that a FormFlow similar to this example appears on a specific intent. So far this is the code for my Form: internal static IDialog<InfoGroup> MakeRootDialog() { return Chain.From(() => FormDialog.FromForm(InfoGroup.BuildForm)); } public enum GroupOptions { A, B, C, D, E, F, G, H }; [Serializable] public class InfoGroup {

How to set different fields on and off on basis of value of other field in FormFlow

房东的猫 提交于 2019-12-08 05:07:41
问题 I am using FormFlow to build my bot using botFrameWork(C#). I want to ask user to choose one of four reports and on the basis of selection I want to turn on and off certain fields and ask only those questions which are relevant to the selection. Follwoing is the enum for report types: public enum ReportType { Application = 1, Emotion, AppVsEmotion, Help } Here are all the fields: public bool AskToChooseReport = true; [Prompt("What kind of report you would like? {||}")] public ReportType?

Can FormFlow Dialogs be built with Node.js?

冷暖自知 提交于 2019-12-07 02:50:54
问题 The Bot Framework FAQ (http://docs.botframework.com/faq/#what-does-the-bot-builder-sdk-provide-to-developers-how-does-it-work) states that Bot Builder SDK allows developers to build "FormFlow” dialogs to help with tricky issues such as multi-turn and disambiguation, but I can only find FormFlow discussed in the C# documentation. Can FormFlow dialogs be built with the Node.js SDK? If so, can someone please point me to the documentation? Thanks very much. 回答1: No, FormFlow uses .NET reflection

How to use RView tool in Bot Builder (C# SDK) to localize strings in Form Flow

梦想的初衷 提交于 2019-12-06 11:26:05
问题 I need to localize all the strings and Enums in FormFlow for the German language. How can I use RView tool to generate resource files? I have read following but I couldn't understand how to use it. Can someone explain in simple steps https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-formflow-localize 回答1: I think that it's pretty clear, but let's try to write some steps: In your code, look for the static method that builds the form, for example this one in the

How to break formflow in every moment i type exit or cancel?

南楼画角 提交于 2019-12-06 10:24:31
I'm creating a chatbot in .Net C# using BotFramework. In one of my dialog when i start to fill a form flow i cannot exit from flowform till in the moment i will fill all the flow . Exist any possibility to exit and to leave form ? This is my code : LuisDialog.cs : [LuisIntent("balance")] public async Task balance(IDialogContext context, LuisResult result) { var balanca = new FormDialog<BalanceForm>( new BalanceForm(), BalanceForm.BuildForm, FormOptions.PromptInStart, result.Entities); context.Call<BalanceForm>(balanca, BalanceCompleted); BalanceForm.cs namespace BasicMultiDialog {

Can FormFlow Dialogs be built with Node.js?

别来无恙 提交于 2019-12-05 06:35:25
The Bot Framework FAQ ( http://docs.botframework.com/faq/#what-does-the-bot-builder-sdk-provide-to-developers-how-does-it-work ) states that Bot Builder SDK allows developers to build "FormFlow” dialogs to help with tricky issues such as multi-turn and disambiguation, but I can only find FormFlow discussed in the C# documentation. Can FormFlow dialogs be built with the Node.js SDK? If so, can someone please point me to the documentation? Thanks very much. No, FormFlow uses .NET reflection to infer information from your data structures to build a dialog. 来源: https://stackoverflow.com/questions

How to use RView tool in Bot Builder (C# SDK) to localize strings in Form Flow

女生的网名这么多〃 提交于 2019-12-04 18:09:15
I need to localize all the strings and Enums in FormFlow for the German language. How can I use RView tool to generate resource files? I have read following but I couldn't understand how to use it. Can someone explain in simple steps https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-formflow-localize Ezequiel Jadib I think that it's pretty clear, but let's try to write some steps: In your code, look for the static method that builds the form, for example this one in the ContosoFlowers example. Once you found it, then capture two things: the namespace and the assembly