Publish your trained app

When you finish building and testing your LUIS app, you publish it as a web service on Azure. The associated HTTP endpoint is then integrated into any client or backend application.

You can optionally test your app before publishing it. For instructions, see Train and test your app.

You can either publish your app directly to the Production Slot, or you can publish to a Staging Slot to validate changes before publishing to the production slot.

Publish your trained app to an HTTP endpoint

  1. Open your app by clicking its name on the My Apps page, and then click Publish in the top panel. The following image shows the Publish app page before you publish your app.

    Publish page-

    When you publish an app, this page looks like the following image:

    Publish page

  2. The first time you publish, the Publish app page shows your starter key. If you want to use a key other than the key shown, click the Add Key button. This action opens a dialog that allows you to select an existing endpoint key to assign to the app. For more information on how to create and add endpoint keys to your LUIS app, see Manage your keys.

  3. Choose whether to publish to Production or to Staging by selecting from the drop-down menu under Publish to.

  4. If you want to enable Bing Spell Check, click the Enable Bing Spell Checker check box.

    Bing Spell Checker

    This checkbox changes your endpoint URL to include the two name/value pairs associated with the Bing Spell Checker: spellCheck=true and bing-spell-check-subscription-key={YOUR_BING_KEY_HERE}. If you call the LUIS endpoint from a bot or other application, you need to change the endpoint URL there as well.

    Endpoint Url with Bing Spell Check enabled
  5. If you want the JSON response of your published app to include all intents defined in your app and their prediction scores, click Include all predicted intent scores checkbox to append a verbose=true parameter to the end-point URL. Otherwise, it includes only the top scoring intent.

    Verbose Mode

  6. Click Publish to production slot if you have selected the Production option under Publish to. Click Publish to staging slot if you have selected Staging. When the publish succeeds, use the displayed endpoint URL to access your LUIS app.


    If the Publish button is disabled, then either your app does not have an assigned endpoint key, or you have not trained your app yet.

    Endpoint URL displayed in Publish page

The endpoint URL corresponds to the Azure region associated with the endpoint key. To see endpoints and keys associated with other regions, use the radio buttons to switch regions. Each row in the Resources and Keys table lists Azure resources associated with your account and the endpoint keys associated with that resource.

Test your published endpoint in a browser

You can test your published endpoint in a browser using the generated URL. To open this URL in your browser, set the URL parameter "&q" to your test query. For example, append &q=Book me a flight to Boston on May 4 to your URL, and then press Enter. The browser displays the JSON response of your HTTP endpoint.

JSON response from a published HTTP endpoint

Next steps

  • See Manage keys to add keys to your LUIS app, and learn about how keys map to regions.
  • See Train and test your app for instructions on how to test your published app in the test console.