Tutorial: Deploy (web)

Create a Dispatch LUIS model

  1. Initialize the dispatch model.
     dispatch init `
         --name "dispatch-name" `
         --luisAuthoringKey "luis-authoring-key" `
         --luisAuthoringRegion "luis-authoring-region `
         --dataFolder "path-to-output-folder"
    
  2. Add LUIS and QnA Maker sources
    • Foreach LUIS app, run the following command:
        dispatch add `
            --type "luis" `
            --name "luis-app-name" `
            --id "luis-app-id"  `
            --region "luis-region" `
            --intentName "l_luis-app-name" `
            --dataFolder "path-to-output-folder"
            --dispatch "path-to-.dispatch-file"
      
    • Foreach QnA Maker knowledgebase, run the following command:
        dispatch add `
            --type "qna" `
            --name "kb-name `
            --id "kb-id"  `
            --key "qna-subscription-key" `
            --intentName "q_kb-app-name" `
            --dataFolder "path-to-output-folder"
            --dispatch "path-to-.dispatch-file"
      
  3. Create the dispatch model.
     dispatch create `
         --dispatch "path-to-.dispatch-file" `
         --dataFolder "path-to-output-folder" `
         --culture "dispatch-culture"
    
  4. Run luisgen tool to generate a .cs representation of your Dispatch model.
     luisgen "path-to-.json-file" -cs "DispatchLuis" -o "output-folder"
    
  5. Add the following configuration to the cognitiveModels.your-locale.dispatchModel collection in cognitivemodels.json file:
     "dispatchModel": {
         "authoringkey": "",
         "appid": "",
         "name": "",
         "subscriptionkey": "",
         "region": "",
         "authoringRegion": ""
     }