question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LUIS intent recognition does not work for child dialogs

See original GitHub issue

Describe the bug

I am using the terms as defined on Composer Docs. My main dialog has an intent, called DeveloperMode. The only string associated with it is Developer Mode. This intent is correctly inferred when the user types in developer mode. The intent starts a child dialog called Developer.

BeginDialog for Developer returns a message indicating that the user is in the developer dialog. There is an intent called SampleApiConnection with in the Developer child dialog. The only LUIS string attached is connect to an api.

When I type connect to an api into Composer, after first typing developer mode to be in the Developer child dialog, I get the message for BeginDialog for the Developer child dialog. I would expect to see the message for the intent SampleApiConnection.

This is the JSON as shown in the Bot Framework emulator:

{
  "recognizerResult": {
    "alteredText": null,
    "entities": {},
    "intents": {
      "Developer": {
        "score": 0.282138944
      }
    },
    "text": "connect to an api"
  }
}

Version

1.1.1

OS

Windows

To Reproduce

Steps to reproduce the behavior:

  1. Create a child dialog called Developer
  2. In the main dialog, add an intent called DeveloperMode, triggered by the phrase “developer mode”
  3. In the DeveloperMode intent, add an action to start the child dialog Developer
  4. Add a message in the BeginDialog event for the Developer child dialog
  5. Add an intent to the Developer child dialog triggered by the phrase “connect to an api”
  6. Add a message to the intent

Start the bot framework emulator and type developer mode followed by connect to an api. Observe that you get the message entered in step four twice.

Expected behavior

After typing “connect to an api” you should get the message entered in step 6.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
kdubiouscommented, Oct 16, 2020

@knightmeister I think I solved your issue… and one of mine. There’s a property on your Developer child dialog called "Auto end dialog." Set that to false and retest. image

0reactions
knightmeistercommented, Oct 19, 2020

@knightmeister shoot me an email if you want to collaborate on this a bit. I’ve picked up a little insight on this topic, but I’m not entirely sure the best / easiest / highest value path forward.

Will do

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to define intents and entities in Composer - Microsoft Learn
Learn how to use Language Understanding (LUIS) in Composer to recognize intents and entities.
Read more >
How to call Dialog Class From a LUIS Intent - Stack Overflow
I am using Bot Framework V4 dispatch model to invoke LUIS and QnA services. I can call the code inside of the top...
Read more >
Language Understanding in Azure With LUIS - DotNetCurry.com
Every application created in LUIS contains a default intent called the “None” intent. This intent is important and there is no option to...
Read more >
Bot Framework v4 with Luis - from Martin Kearn
Once you have the user's intent and initial entities, the bot can then launch into a dialog tree, which typically would not require...
Read more >
How to work with #LUIS | #AIforAll | DearAzure - YouTube
Topic: # LUIS - Language Understanding Intelligent Service... ... Don't miss to hit the bell icon! ** Important Announcement ** Hello Dotnet ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found