I am working with bot framework adaptive dialog. I have an issue in getting the intents and resolved entities by reading luis data using recognizer. only getting the top scoring intent in the response by reading "turn.recognized" in the child adaptive dialog.i have migrated my luis to v3 and set the IncludeAllIntents property to true while calling the luis. did i miss to set any property in the LuisAdaptiveRecognizer.? Could anyone help me to resolve this because i have a scenario to check the second top scoring intent in bot. Is this an issue with adaptive dialog?
I have used Ms docs to build the bot adaptive dialog.
And one more thing Is there any way to extract the luis resolved entities as a type of RecognizerResult from the result of turn.recognized.
Root dialog:
var rootDialog = new AdaptiveDialog(nameof(AdaptiveDialog))
{
Recognizer = new LuisAdaptiveRecognizer()
{
ApplicationId = Configuration["LuisAppId"],
EndpointKey = Configuration["LuisAPIKey"],
Endpoint = Configuration["LuisAPIHostName"],
PredictionOptions = new Microsoft.Bot.Builder.AI.LuisV3.LuisPredictionOptions
{
IncludeAllIntents = true,
IncludeInstanceData = true,
IncludeAPIResults = true,
PreferExternalEntities = true,
Slot = "producton"
}
},
Triggers = new List<OnCondition>()
{
new OnIntent("Greetings")
{
Actions = new List<Dialog>()
{
new SendActivity("${HelpRootDialog()}")
}
},
},
Child dialog:
public FindLinks(IConfiguration configuration) : base(nameof(FindLinks))
{
_configuration = configuration;
this.LinksDialog = new AdaptiveDialog(nameof(FindLinks))
{
Triggers = new List<OnCondition>()
{
new OnBeginDialog()
{
Actions = new List<Dialog>()
{
new CodeAction(ResolveAndSendAnswer)
}
},
}
};
AddDialog(this._findLinksDialog);
InitialDialogId = nameof(FindLinks);
}
private async Task<DialogTurnResult> ResolveAndSendAnswer(DialogContext dialogContext, System.Object options)
{
JObject jObject;
IList<string> queries = new List<string>();
dialogContext.State.TryGetValue("turn.recognized", out jObject);
....This is how i resolved the luis data from the turn.
}