I am working with QnA Maker and i do not have idea how to get ocp-apim subscription key. I trying with endpoint key that that we get after publishing but it doesn't work.
Can anyone help me how to get ocp-apim subscription key for the QnA maker?
Go ahead and navigate to your QnAMaker Cognitive Services resource in the Azure portal, and then click on the keys blade.
Related
I have created the Knowledge base in the QnA maker and tested it as well. It is working fine. But while creating the Web app bot service in Azure portal I selected Basic Bot for which it asked for a Luis Account. I did not have any but there was a provision to create new and I did so. Post which the bot service was deployed successfully.
The problem is I am not able to connect it to the QnA maker knowledge base. The fields like QnAKnowledgebaseId, QnAAuthKey, and the QnAEndpointHostName are not at all present under application settings where I can input the values. I tried to add an additional application string with the details but still it did not work. My knowledgebase is ready but the bot service does not work with it. Clearly you can see in the images there is no fields where I can put my QnA knowledgebase configurations
Bot application setting:
Application setting:
The bot service can be integrated with the QnA maker just through portal itself.I created the Bot service directly from the QnA maker and it picked up the Details of the QnA maker automatically.The webapp bot is up and running answering the questions as per the repo in the QnA Maker
I am using a dispatch model with 2 LUIS model and 1 QnA maker. On emulator everything works but after publishing, when I debug it on Web Chat channel on Azure or on Teams my QnA Maker utterances always returns
No such host is known.
I have tried using both the host names one from the settings page in QnA maker portal and westus.api.cognitive.microsoft.com/Qnamaker
Can someone help.
Well, I found out the reason it wasn't just QnA Maker but also LUIS , I have to update the LuisAPIHostName in the appsettings.json from westus to westus.api.cognitive.microsoft.comand update LUIS Host Name as $"https://{configuration["LuisAPIHostName"]}") in BotServices
And off course has to publish it again.
I have a working Teams bot, using the nodejs botbuilder-teams SDK v3, and registered at dev.botframework.com and apps.dev.microsoft.com. I have created a Teams app that contains it (using the App Studio app in Teams), and installed it in an Office 365 developer tenant of which I am the admin, and the bot can send and receive messages with no problem.
When the bot is added to a team, I get the "conversationUpdate"/"teamMemberAdded" message, and use the fetchMembers() call from the teams bot connector to retrieve basic info for each member, including "givenName", "surname", "email", etc. However, I don't get the "jobTitle" attribute. Is there any way to retrieve jobTitle through the Teams bot SDK?
Alternatively, could I make MSGraph API calls (say, /v1.0/groups/{group-id-for-teams}/members)? Is there a good example of a nodejs serverside app like a bot calling the MSGraph API? The authentication part seems somewhat murky to me.
jobTitle is not part of roster details. You need to call Graph APIs to fetch additional details.
Here is Node.js sample for bot authentication. If you are using Azure for bot registration then please take a look at Azure Bot Service for Authentication in Teams documentation.
Can I assign same LUIS subscription key (generated from azure portal) to more than one LUIS application (On Luis.ai portal). I tried doing that and getting following error when I use the luis application in my bot:
"This application cannot be accessed with the current subscription"
Technically the luis.ai portal allowed me to assign the same key to multiple Luis apps.
Yes, assuming they are in the same region.
The authoring key in LUIS.ai is not the same thing as the endpoint LUIS subscription key in portal.azure.com. The authoring key allows you to author any LUIS app and the endpoint key allows you to query any LUIS endpoint. This doc should help understand keys learn.microsoft.com/en-us/azure/cognitive-services/luis/
I have created Bot 'MyFirstBOT' where my backend is QnA maker application data. I have given a name to this bot called 'TestJPBOT' and I have enabled the Teams channel for this bot so that we can use this bot on Teams applications. Right now in our organization we are working to register this bot with Microsoft so that we can start using it. I would like to know going forward if I want to make any changes in the bot, like changing its name, profile picture, or something similar, do I need to reregister it every time with Microsoft? Or is there no need?
Per my simple testing using Azure Bot Service env, we don't need register again after change our bots.
Actually, register your bot is populate your bot on Microsoft, equivalent to create a index for your bot I think. You change your bot's profile or code, should not effect the index.