8

I'm trying to create a simple chat bot on Microsoft Bot Framework and I want to add LUIS app ID and LUIS subscription key to my application.

Where can I get the subscription key?

enter image description here

Ezequiel Jadib
  • 14,767
  • 2
  • 38
  • 43
feda aeyad
  • 119
  • 1
  • 2
  • 10

6 Answers6

6

I believe lately Microsoft has changed the structure of the portal so most of the links are not working.

Where can I get the subscription key?

You can get the subscription key by going to

  1. The "Publish App" link on the left,
  2. Select staging from the "end point slot" under Publish Settings. (Don't know why doesn't it show while the option is Production. Maybe there are other ways to connect in the production environment)
  3. Selecting the "staging" option will show an endpoint url which will have "subscription-key" field, which you can copy

I want to add LUIS app ID

To get your luis app ID

  1. Go to "My Apps" in "https://www.luis.ai/applications"
  2. Click your app
  3. Click settings from the options on the left
  4. Copy the 36 character "Application Id"
shabby
  • 3,002
  • 3
  • 39
  • 59
  • This cleared things for me ! The documentation never explicitly mentions about publishing the app to get the end-point. Thanks ! – Amartya Feb 19 '18 at 18:26
3

The followings are steps that worked for me:

  1. Login into https://portal.azure.com
  2. Search luis enter image description here
  3. Create 1 Language understanding in Cognitive Service section enter image description here
  4. Go to "My Apps" in https://www.luis.ai/applications
  5. Select your app
  6. Click on Change link nearing Assigned endpoint key enter image description here
  7. Select available items in 3 comboboxes enter image description here

Here is the result that you could get subscription key enter image description here Hope this help.

Phuc Thai
  • 718
  • 7
  • 17
1

Subscription key: In azure create a new cognitive service -> Luis. In the new luis service, on the left you can find an option labeled keys. Use Key1 for everything.

API key: go to your luis.ai account, and select the key's tab. You need to link your luis subscription key here to link luis to your azure sub.

Nox
  • 1,358
  • 1
  • 13
  • 25
  • Use Key 1 for everything? Do you mean use Key1 for Subscription ID, Subscription Key etc? Please clarify I'm really struggling with this :( – K-Dawg Jun 23 '17 at 09:41
  • That specifically means use Key 1 for all subscription key items you need to sync in the pipeline. Using a different subscription key for different items in the pipeline would cause it to not work. What specifically are you having trouble connecting in the pipeline? You should have an azure subscription key, luis app id, luis api key, botid – Nox Jul 06 '17 at 14:45
  • I'm getting "BadArgument, Invalid Subscription Key" when I add the key from Keys under Cognitive Services / Resource management / Keys.. And when I click on "Buy key on Azure" it starts to create a new Cognitive Services instance, which I have already done. Sorry but this is not intuitive.. – woutercx Jul 25 '17 at 09:27
  • I solved it by following the solution in this Stackoverflow answer : https://stackoverflow.com/questions/43997055/bad-argument-invalid-subscription-key-when-trying-to-add-key-from-azure – woutercx Jul 25 '17 at 16:05
1

You can navigate at this page https://www.luis.ai/keys where you will see "Programmatic API Key" it's your subscription key also known as "Ocp-Apim-Subscription-Key".

Nazar Mandzyk
  • 384
  • 4
  • 15
0

I found this article on msdn that really explains the keys well https://blogs.msdn.microsoft.com/kwill/2017/05/17/http-401-access-denied-when-calling-azure-cognitive-services-apis/

you can find your subscription keys the azure portal Location of Subscription Key for Luis Services

the application id can be found on the settings page of your app on the luis dashboard (start at www.luis.ai) ... all the details for this are in the article linked, but what I found was that:

  1. Use the key as in the screenshot above
  2. The region your azure resource for luis is in, should match the region that your luis application is in.

The resource is managed through the azure portal, the luis app is managed through the www.luis.ai homepage

As the article says, it can be quite confusing about what keys to use where, (especially when you first create the luis app you get a 'starter key' ... sorry for the waffle,

0

The Subscription Key is the same as the Authoring Key (refer to this documentation). You can get the Authoring Key for your LUIS app by taking the following steps:

  • Log on to luis.ai
  • Navigate to the MANAGE menu
  • Navigate to the Keys and Endpoints tab on the sidebar

How to find your Microsoft LUIS Authoring Key

Hafiz Adewuyi
  • 360
  • 4
  • 15