Getting an exception: Dialog[/] already exists in library[*].
var qnarecognizer = new cognitiveservices.QnAMakerRecognizer({
knowledgeBaseId: process.env.QNA_KNOWLEDGEBASE_ID,
subscriptionKey: process.env.QNA_SUBCRIPTION_KEY,
top: 4
});
var model = process.env.LUIS_MODEL_ENDPOINT_URL;
var recognizer = new builder.LuisRecognizer(model);
var intents = new builder.IntentDialog({ recognizers: [recognizer, qnarecognizer] });
bot.dialog('/', intents);
Adding the below line raises the exception
bot.dialog('/', intents);
Should work seemlessly
Exception raised.
/node_modules/botbuilder/lib/bots/Library.js:378
throw new Error("Dialog[" + id + "] already exists in library[" + this.name + "].");
^
Error: Dialog[/] already exists in library[*].
When declaring the bot (builder.UniversalBot), which overload are you using?
var bot = new builder.UniversalBot(connector);
or
var bot = new builder.UniversalBot(connector, function (session) {
// function code here
});
The second overload creates a default dialog which maps to "/".
Closing this issue as there has been no reply for an extended period. If this issue persists, feel free to open a new support request. Thank you.
Most helpful comment
When declaring the bot (builder.UniversalBot), which overload are you using?
var bot = new builder.UniversalBot(connector);or
The second overload creates a default dialog which maps to "/".