This is a clone of the Hello Jarvis Facebook Messenger bot, built with the Microsoft Bot Framework and Wit.ai for language processing. It has the exact same functionality and it required just 600 lines of code to implement.
- Get a Google Maps api key and activate the Geocoding and Time Zone API's in the Google API Console.
- Get a Wit.ai account and create a new app from the backup file that is included in the repo's resources directory.
- Get the Wit.ai Server Access Token from your app's settings page.
- In the config.json file, enter the obtained tokens from Google and Wit.ai.
- Install MongoDB. By default the bot will connect to
mongodb://localhost/dev
, but you can change the connection uri in the config file.
- Install the Bot Framework Emulator
- Set the endpoint url to http://localhost:3978/api/messages and, in case you have registered your bot, enter your App Id and App Password.
- Make sure you have MongoDB up and running before starting up the bot
- Run some usual npm commands:
$ npm install
$ npm run build
$ npm start
- Connect the emulator