John Gotze
John Gotze

Reputation: 11

New qna maker not used in bot service

qnamaker.ai is in GA now, so I wanted to set up a new bot service for a new knowledge base.

The new bot service with QnA does not have the new settings (QnAKnowledgebaseId, QnAAuthKey and QnAEndpointHostName), only QnAKnowledgebaseId and QnASubscriptionKey (as in Preview version). So I'm not seeing this: https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/tutorials/create-qna-bot#connect-your-qna-maker-knowledge-base-to-the-bot

Using North Europe. Should I try somewhere else? Or should I just add the new fields?

Upvotes: 1

Views: 528

Answers (1)

Fei Han
Fei Han

Reputation: 27793

If you check your bot code in the online code editor, you will find that it gets value corresponding to the key from application settings by using Microsoft.Bot.Builder.Azure.Utils.GetAppSetting method, something like below.

var qnaKBId = Utils.GetAppSetting("QnAKnowledgebaseId");

After you manually add required fields in App settings, the bot can get required parameters to QnAMakerService for QnAMakerDialog, and you got the bot working.

Upvotes: 1

Related Questions