i have a basic form. Depending on the choices of the user, it will direct it to various formflows. But i am unable to achieve this. It repeats first formFlow again and again in Microsoft BOT framework ?
//These are two forms that i have initiated. If a count is 1 then it must open first formflow otherwise the second formflow. internal static IDialog<General> MakeRootDialog() { return Chain.From(() => FormDialog.FromForm(General.BuildForm)); } internal static IDialog<ProfileForm> MakeRootDialog1() { return Chain.From(() => FormDialog.FromForm(ProfileForm.BuildForm)); } public async Task<HttpResponseMessage> Post([FromBody]Activity activity) { if (activity.Type == ActivityTypes.Message && General.count == 0) { await Conversation.SendAsync(activity, MakeRootDialog); General.count = 1; } else if(activity.Type == ActivityTypes.Message && General.count >= 1) { await Conversation.SendAsync(activity, MakeRootDialog1); } else { HandleSystemMessage(activity); } var response = Request.CreateResponse(HttpStatusCode.OK); return response; }