Luis Bot in Azure account I have a the doubt

Category: azure app service api apps public preview

Question

Shriti.K on Thu, 06 Jul 2017 15:55:50


I have a the doubt in the Luis Bot in Azure account in C#  . I added the Dialog in that i given donor,event... if i click on the Member option  it should show me member questions  please anybody help  it very urgent for me .

member  is the entity  i have a questions like 

i created the questions in the intent.  how get the questions inside of this  conditions.

what is your name ?     

what is your last name ?......

BasicLuicsDialog.csx

  private void AskForPreviousOrAnother(IDialogContext context)
{
var dialog = new PromptDialog.PromptChoice<string>(new string[] { "Member", "Donor", "Volunter" }, "Which one would you like?", "Sorry, that wans't a valid option", 3);
        context.Call(dialog, AfterUserHasChosenAsync);
        
}

private async Task AfterUserHasChosenAsync(IDialogContext context, IAwaitable<string> argument)
        {
          var message = await argument;
        if (message == "Member")
        {
     await context.PostAsync("this is Member"); // here i need to get my intent questions please tell help me to get this 
            context.Done(true);
                  }
        }



Replies

IoTGirl on Thu, 06 Jul 2017 18:26:12


Hi Shriti,

This blog, http://www.c-sharpcorner.com/article/deploying-a-simple-luis-bot-using/,looks like it has the steps you need.  You can reach out to the poster if you have further questions as well.

Sincerely,

IoTGirl

Shriti.K on Fri, 07 Jul 2017 04:40:08


Thanks for your given good link .I also followed the same steps and created.

My questions is how to write the question inside the if condition ? using intent?

i cant paste the image so ...... this my chat bot 

Bot

Welcome to bot

How can I help you?

                                                                                          User

                                                                           Register as Member

Bot

Do you want to register as ?

Donor |   Member  |  Event

User

         Member     

 

What is your name ?

What is your mobile number?