LUIS intent recognition does not work for child dialogs
See original GitHub issueDescribe 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:
- Create a child dialog called Developer
- In the main dialog, add an intent called DeveloperMode, triggered by the phrase “developer mode”
- In the DeveloperMode intent, add an action to start the child dialog Developer
- Add a message in the BeginDialog event for the Developer child dialog
- Add an intent to the Developer child dialog triggered by the phrase “connect to an api”
- 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:
- Created 3 years ago
- Comments:9
Top GitHub Comments
@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.Will do