Lex V1

Learn how to use our NLU export with Lex V1

Quick Reference

DataSupport
File formatJSON
Data Support
Intents
Training Phrases
Entities
Synonyms
Import Type
Modify
Overwrite

Video Walkthrough

Sample Intent Export

{
   "metadata":{
      "schemaVersion":"1.0",
      "importType":"LEX",
      "importFormat":"JSON"
   },
   "resource":{
      "name":"spell_intent",
      "description":"",
      "fulfillmentActivity":{
         "type":"ReturnIntent"
      },
      "sampleUtterances":[
         "sure {spell}",
         "its {spell}",
         "{spell}",
         "it's {spell}",
         "word is {spell}",
         "the word is {spell}"
      ],
      "slots":[
         {
            "name":"spell",
            "sampleUtterances":[
               "its {spell}",
               "it's written {spell}",
               "the word is {spell}",
               "it's {spell}",
               "{spell}"
            ],
            "slotType":"spell",
            "obfuscationSetting":"NONE",
            "description":"spell",
            "slotConstraint":"Optional",
            "valueElicitationPrompt":{
               "messages":[
                  {
                     "contentType":"PlainText",
                     "content":"Sorry I didn't get that. Can you say that again? "
                  }
               ],
               "maxAttempts":2
            },
            "priority":1
         }
      ],
      "slotTypes":[
         {
            "name":"spell",
            "enumerationValues":[
               {
                  "value":"DOG",
                  "synonyms":[
                     "d. o. g.",
                     "d o g"
                  ]
               },
               {
                  "value":"CAR",
                  "synonyms":[
                     "c. a. r.",
                     "c a r"
                  ]
               },
               {
                  "value":"HOUSE",
                  "synonyms":[
                     "h. o. u. s. e.",
                     "h o u s e"
                  ]
               },
               {
                  "value":"ROCK",
                  "synonyms":[
                     "r. o. c. k.",
                     "r o c k"
                  ]
               },
               {
                  "value":"PIZZA",
                  "synonyms":[
                     "p. i. z. z. a.",
                     "p i z z a"
                  ]
               },
               {
                  "value":"FRIDGE",
                  "synonyms":[
                     "f. r. i. d. g. e.",
                     "f r i d g e"
                  ]
               }
            ],
            "valueSelectionStrategy":"TOP_RESOLUTION"
         }
      ]
   }
}