Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Latest commit

 

History

History

demo-upload-utterances-from-exported-luis-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Upload utterances from exported LUIS app

This demonstration app shows how to import queries from an application that has been exported from luis.ai.

To export a LUIS app, switch to the app's Manage page, then choose Versions from the sidebar. Select the version of the app to be exported, then select Export.

Export LUIS app from luis.ai

Change the exportFile value in the index.js file to the location and name of your file. Follow the rest of the instructions for the demonstration apps.

Format of Exported app

The format of the exported app is a JSON file containing all the app's data, including the utterances. Only the utterances array needs to be parsed because the property names for the batch upload JSON are different.

{
    "utterances": [
          {
            "text": "turn on the lights",
            "intent": "TurnAllOn",
            "entities": []
          },
          {
            "text": "turn the lights off",
            "intent": "TurnAllOff",
            "entities": []
          }
    ]
}