microsoft / botframework-solutions

Welcome to the Bot Framework Solutions repository which is the home for a set of templates and solutions to help build advanced conversational experiences using Azure Bot Service and Bot Framework. Microsoft Bot Framework is a comprehensive framework for building enterprise-grade conversational AI experiences.
https://aka.ms/bfsolutionsdocs
MIT License
1.05k stars 530 forks source link

Bot Framework Emulator: Invalid `applicationId` value detected #3845

Closed bml1g12 closed 2 years ago

bml1g12 commented 3 years ago

Going through the tutorial here using Linux, so I cannot use the powertools deployment script provided and manually deployed resources. When running npm run start I get:

Error: Invalid `applicationId` value detected: 
Please make sure your applicationId is a valid LUIS Application Id, e.g. "b31aeaf3-3511-495b-a07f-571fc873214b".

I have entered the LUIS application id image As the "microsoftAppId": In src/appsettings.json of the sample deployment on my machine. Am I doing something wrong here?

Albeit I am unsure what the password should then correspond to. I thought maybe the microsoftAppId and microsoftAppPassword should instead correspond to the Application (client) ID and Client Secret I created here. Overal a bit confused by this step of the tutorial - many thanks for any help.

lauren-mills commented 2 years ago

Hi @bml1g12, the microsoftAppId in appsettings should the the id of the Microsoft App Registration created when you provisioned your bot in Azure. This Id and Pw can be found in the Azure Bot > Configuration tab in the Microsoft App ID field. To find your app password, click the "Manage" button beside this field to navigate to the app registration details. The password can be found/updated in the Certificates & secrets tab under Client secrets.

For your LUIS app ID shown above, this should be in the appId field for each individual LUIS model in your cognitivemodels.json file.

Since you are creating your appsettings and cognitivemodels settings manually, here are two samples of those files so you can see the schema if you haven't already: appsettings.json, cognitivemodels.json