Use Orchestrator in Bot framework sdk javascript

Vázquez Romero, Adrián 21 Reputation points
2021-08-27T11:43:36.57+00:00

Hi, I'm trying to use Orchestrator in my virtual assistant developed in bot framework sdk in javascript to use two LUIS models
I started with one LUIS model following the example in 13.core-bot managing the configuration in index.js and using luisrecognizer in maindialog.
Now I want to use the Orchestrator in 14.nlp-with-orchestrator but it works in onMessage and I can't addapt the code.

How can I use the dispatcher in actStep to get the top intent of both models? Or how can I use onMessage appropriately in that function?

const luisResult = await this.luisRecognizer.executeLuisQuery(stepContext.context);
let top_intent = LuisRecognizer.topIntent(luisResult)

Thanks

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
771 questions
{count} votes