1. Install Git(If not installed). https://git-scm.com/downloads
  2. Open the command prompt and navigate to the folder you want to get the sample code(eg:-E:\Karthik\GAB2019).
  3. Run the command in the command prompt.

git clone https://github.com/karthikeyanVK/LuisChatBot.git

  1. Open the LuisChatBot.sln in Visual studio 2017 

  1. Navigate to https://www.luis.ai/ and sign in with microsoft account.
  2. Click on “Import new app”.
  3. Click on “Choose app file(JSON format). And choose the file “home-automation.json” from the cloned folder.
  4. Go back and then import two more files(one by one) “nlp-with-dispatchDispatch.json” and “weather.json”
  5. You should see the list as below with all three, weather, nlpdispatch, Homeautomation apps added.
  6. Select the Weather from the list to navigate and click on Train.
  7. Click publish.
  8. Click on the popup.
  9. Click on “Refer to the list of endpoints”

  1. Copy the below values to nlp-with-dispatch.bot. Only application id is different for all three apps, other details are all same for all apps.

  1. Train and publish the same for nlpdispatch and HomeAutomation. Get the keys as above, and fill the values respectively in nlp-with-dispatch.bot as below.

  1. Now fill the qna values in the nlp-with-dispatch.bot which we got from the previous exercise.








Refer step 17.

  1. Navigate to https://portal.azure.com/ and search for the web app bot you created, and the copy the subscription id.
  2. Now your nlp-with-dispatch.bot should look like this.
  3. Install from https://github.com/Microsoft/BotFramework-Emulator/releases/download/v4.3.3/BotFramework-Emulator-4.3.3-windows-setup.exe 
  4. Open the emulator. Click on File and select New Bot Configuration.
  5. Give a Bot name and Endpoint URL as http://localhost:3978/api/messages. Click on Save and connect
  6. After save and connect open the saved .bot file by click on Open bot in the file menu.
  7. Chat with LUIS enabled bot as below.
  8. Now let us create a new app and integrate to our sample.
  9. Navigate to https://www.luis.ai/  and import the travelagent.json.
  10. Train and publish and gather configuration details and enter it in the nlp-with-dispatch.bot as below. Above home automation configuration
  11. Create NlpDispatchBot.cs and add private variable named as travelagent.
  12. Update the NlpDispatchBot as below.