Share via


Finding QnAKnowledgebaseId and QnASubscriptionKey to configure the new Azure Bot Service

Bot Service went through an overhaul again; the configuration to connect your Bot Service to QnAMaker is different now. I am not sure for how long the information here will stay relevant but it is how you configure your Azure Bot Service to talk to QnAMaker.ai at the time of writing this post.

When you use the new Bot Service template in Azure to deploy your QnAMaker bot, there are 2 settings you need to configure in App Settings - QnAKnowledgebaseId QnASubscriptionKey.

Here's where you can find them:

Go to https://qnamaker.ai/Home/MyServices click on your bot's "View Code"

The first string right after "knowledgebases" is your QnAKnowledgebaseId, whereas the one right after Ocp-Apim-Subscription-Key is your QnASubscriptionKey

 

Hope that helps.