Declarative Adaptive Dialog issue with LUIS Recognition
See original GitHub issueHello Team,
I am using Declarative adaptive dialog for our chatbot. I tired including the recognizer as LUIS in my .dialog file. But i am getting Type Microsoft.LuisRecognizer not registered in factory error while execution. I am doing with the following steps in my declarative files.
Created below 4 declarative files. Test.lu
Created trained and publish the LUIS app in LUIS portal.
Test.lu.dialog
{ "$kind": "Microsoft.MultiLanguageRecognizer", "recognizers": { "en-us": "Test.en-us.lu", "": "Test.en-us.lu" }, "$schema": "../../TestBot.schema" }
Test.en-us.lu.dialog
{ “$kind”: “Microsoft.LuisRecognizer”, “applicationId”: “my-app-id”, “endpoint”: “our endpoint”, “endpointKey”: “our key”, “$schema”: “…/…/TestBot.schema” }`
Test.main.dialog
`{ “$schema”: “…/…/TestBot.schema”, “$kind”: “Microsoft.AdaptiveDialog”, “autoEndDialog”: true, “defaultResultProperty”: “dialog.result”, “recognizer” : “Test.lu”, “triggers”: [ { “$kind”: “Microsoft.OnIntent”, “intent”: “Greeting”, “actions”: [ { “$kind”: “Microsoft.SendActivity”, “activity”: “Greetings intent!!!” } ] }, { “$kind”: “Microsoft.OnIntent”, “intent”: “Service”, “actions”: [ { “$kind”: “Microsoft.SendActivity”, “activity”: “Service intent has been triggered…” } ] }, { “$kind”: “Microsoft.OnIntent”, “intent”: “Cancel”, “actions”: [ { “$kind”: “Microsoft.SendActivity”, “activity”: “The cancel intent has been triggered…” } ] } ] }
I am loading the required dialog file in my class, but still getting the above mentioned error. Kindly help me in solving the issue.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
@dmvtech - The issue is that i missed to register the Luis component in Startup class of my project. That is the issue. It is now running fine once i included the same. Thanks for all your support.
I am calling the onTurnAsync of Dialog Manager for executing the dialog files and i am passing the DialogManager result as reply to users. But i want to manipulate the value i got from dialog manager before sending to users. Kindly let me know how can i get the result. I tried with getting the response from turn result of the DialogManager result and it is empty. But i am getting the result in emulator based on the dialog file response.
Thanks in advance for your response.
@dmvtech Could you take a look at this please?