A bot that checks bus times in London
If you don't know how to work with the bot framework, I highly recommend you go through this beginners course first:
- Install nodejs: https://nodejs.org/en/
- Install the bot emulator: https://aka.ms/bf-bc-emulator
- Inside the folder of your project (the busbot), run the following command to pull down all of the dependencies needed for the project
$ npm install
- Run this command to start the bot
$ node app.js
If you haven't used LUIS before, read through the documentation first:
https://www.microsoft.com/cognitive-services/en-us/luis-api/documentation/home
- Go to luis.ai
- Register or sign in to your account
- Click on 'Add New App' and select 'Import Existing Application'
- Upload the 'londonbusbot.json' file found in this project
- You then need to start feeding in different phrases 1) labeling the intents 2) highliging the entities you want to extract in each phrase
- Train and publish the model to get the URL needed to run the bot with LUIS, which is this line in of the code:
var model = process.env.LUIS_MODEL;