I need to make a bilingual bot using Node.js and the Microsoft Bot Framework. The bot uses LUIS for natural language.
I use the standard LUIS connection method:
let bot = new builder.UniversalBot(connector, NoneIntentHandler);
bot.recognizer(new builder.LuisRecognizer(config.luis.url));
However, I need to support two languages: English and Chinese. Itโs not a problem for me to find a language. I have two separate LUIS applications: one for English and one for Chinese, and they return the same intentions and entities.
But the problem is how to dynamically switch between two different applications, depending on the user's input language. Bot.recognizer does not accept two URLs or any other parameters. So there seems to be no built-in support for this.
bot
recognizer
? recognizer
LUIS? ?