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
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.
If you have previously published this app, this page looks like the following image:
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.
Choose whether to publish to Production or to Staging by selecting from the drop-down menu under Publish to.
If you want to enable Bing Spell Check, click the Enable Bing Spell Checker check box.
- You need to add
spellCheck=trueto the URL when you call the LUIS app endpoint to turn on spell checking. Checking the Enable Bing Spell Checker check box appends
spellCheck=trueto the URL that displays in the Publish app page when publish is complete.
- You need to have a Bing Spell Check Azure account in order to use this feature.
- You need to add
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=trueparameter to the end-point URL. Otherwise, it includes only the top scoring intent.
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.
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.