botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Question] How to create bot application using LUIS intents?

Open NehaShaikh786 opened this issue 9 years ago • 4 comments

System Information (Required)

  • SDK Language: C#
  • SDK Version: 4.6
  • Development Environment: OTHER

Issue Description

How to create an application using LUIS portal, please tell me how to define context of particular conversation flow.

Code Example

[LuisIntent("General")] public async Task okskin(IDialogContext context, LuisResult result)

    {
        await context.PostAsync("Welcome to my chat bot!");
        
        context.Wait(MessageReceived);
    }

Steps to Reproduce the Issue

1. 2. 3.

Expected Behavior

i want an example from which i can define a particular context of my flow. i need code example.

Actual Results

i am using luis intents, so after hitting to luis intent i get a response which i have specified, i want a flow in context where i can consider the previous answers and can define the new one.

NehaShaikh786 avatar Jul 10 '17 14:07 NehaShaikh786

@NehaShaikh786 Here are some links you may find useful. Good luck and let us know if you have any more questions, thanks.

Here is a simple bot using LUIS

another sample LUIS bot

General .NET documentation can be found here

JasonSowers avatar Jul 10 '17 15:07 JasonSowers

@NehaShaikh786 you have to make use of form flow to star doing the conversation.

sayyednazeer avatar Jul 10 '17 16:07 sayyednazeer

@JasonSowers Hi, thanks for your response. I have referred those links given by you. I am trying to create a bot using LUIS intents and i need a conversation flow. How to implement a context flow from language understanding? Actual Result- i have intent named as "moisturizer" and its utterance is "do you have moisturizer" but when i retrain the model and test "do you have abcd" it still hit the moisturizer intent, which i don't expect. I want this utterance to hit to "None" intent. Expected- I have huge data in my model, after hitting to top score intent i am using dialog for further conversation (also adding to this do you have another solution except FormFlow and Dialog?). So i don't want my dialog to initiate when user enters the partial utterance as mentioned above. please provide some solution to this.

NehaShaikh786 avatar Jul 12 '17 05:07 NehaShaikh786

@sayyednazeer i have referred the FormFlow examples, But by using FormFlow there is no Language Understanding. i am trying to use LUIS model. Right now i am facing problem with intent match. for example- i have intent named as "moisturizer" and its utterance is "do you have moisturizer" but when i retrain the model and test "do you have abcd" it still hit the moisturizer intent, which i don't expect. I want this utterance to hit to "None" intent.

NehaShaikh786 avatar Jul 12 '17 05:07 NehaShaikh786