If the keys in your environment file is incorrect, here are my steps of fixing it:
- Go to the Microsoft QnA Maker Portal QnA Maker
- Select your knowledge base and publish it
- When you publish it, you should see the parameters for postman:
POST /knowledgebases/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/generateAnswer
Host: https://zzzzzzzzz.xxxxxx.net/qnamaker
Authorization: EndpointKey yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
Content-Type: application/json
{"question":"<Your question>"}
The three environment parameters needed for QnA Maker are QnAKnowledgebaseId, QnAAuthKey, and QnAEndpointHostName. They correspond to the values that are provided above when you publish your QnA Maker.
- QnAKnowledgebaseId = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- QnAAuthKey = yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
- QnAEndpointHostName = https://zzzzzzzzz.xxxxxx.net/qnamaker
I followed the tutorial here:
Tutorial: Use QnA Maker in your bot to answer questions
Hope this helps!