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.

Declarative Adaptive Dialog issue with LUIS Recognition

See original GitHub issue

Hello 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

image

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:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Vigneshramkumarcommented, Sep 29, 2020

@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.

image

image

Thanks in advance for your response.

1reaction
ninggaocommented, Sep 28, 2020

@dmvtech Could you take a look at this please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Declarative adaptive dialog not working with LUIS ...
I am using Declarative adaptive dialog for our chatbot. I tired including the recognizer as LUIS in my .dialog file.
Read more >
Bot Framework V4 Adaptive Dialogs - #5 - RegEx recognizers
Recognizers take an utterance and map them to an intent. They are crucial to writing an effective Adaptive Dialog based bot and you...
Read more >
Prebuilt recognizers for adaptive dialogs - Bot Service
The cross-trained recognizer set compares recognition results from more than one recognizer to decide a winner.
Read more >
Glossary of terms for Bot Framework Composer
Adaptive dialogs are a new way to model conversations that take the best of waterfall dialogs and prompts in the dialogs library.
Read more >
01- Microsoft Bot Framework - Adaptive Dialogs
Explain about Bot Framework adaptive dialog concept.
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