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.
There are a number of things you'll need to do before running the bot:
- Register your bot on the Bot Framework's Developer Portal. You might need to create an account first.
- Create an App ID and password for your bot.
- 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.
- Install MongoDB. By default the bot will connect to a database named 'dev'. Create it with
use dev
from the mongo shell, or change the connection uri to select a different database.
The keys acquired from the previous section need to be passed to the bot via config.json in the project's root directory.
- Install the Bot Framework Emulator
- Set the endpoint url to http://localhost:3978/api/messages and 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