如何获取并查找LUIS创作密钥(LUIS_AUTHORING_KEY)
Hey there! I’ve walked tons of developers through this, so let’s break it down into simple, actionable steps—no confusing detours:
1. Log Into the Azure Portal
Start by signing into your Azure account. Once you’re in, use the top search bar to look up Cognitive Services—this is where all your LUIS resources live.
2. Locate or Create Your LUIS Resource
- If you already have a LUIS resource:
Search for your resource by name in the portal’s search bar, then click into it to open its details page. - If you need to create a new one:
Click the Create a resource button, search for "Language Understanding", and follow the setup wizard. Make sure to select the Authoring resource type during setup (you can add a Prediction resource too, but we only need the authoring key right now).
3. Grab Your Authoring Key
Once you’re on your LUIS resource’s page:
- Look in the left-hand menu under Resource Management for the Keys and Endpoint option—click that.
- You’ll see two keys listed: "Key 1" and "Key 2". Either of these works as your
LUIS_AUTHORING_KEY—just copy the one you prefer. - Paste this key into Conversation Learner when it prompts for
LUIS_AUTHORING_KEY, and you’re set.
Quick Validation Check (Optional)
If you want to confirm the key is active, run a quick test API request (replace placeholders with your info):
GET https://<your-resource-region>.api.cognitive.microsoft.com/luis/authoring/v3.0/apps Headers: Ocp-Apim-Subscription-Key: <your-copied-authoring-key>
A valid response (even an empty array if you haven’t created any LUIS apps yet) means your key is good to go.
内容的提问来源于stack exchange,提问作者Erik Larssen
相关产品推荐
相关产品推荐

