A Chatbot boilerplate app for Facebook Messenger with NLP by Wit.ai and analytics by Dashbot.io.
Also includes a basic send/receive API and message templates.
git clone https://github.com/hoodsy/messenger-bot-boilerplate.git
cd messenger-bot-boilerplate
npm install
npm start
-
Follow the steps at Messenger Bot Tutorial to create a Facebook App or Page, setup Webhooks, and set Environmental Variables.
-
Set
FB_PAGE_TOKEN
,FB_APP_SECRET
,FB_APP_SECRET
, andFB_VERIFY_TOKEN
inexample.env
. -
Move
example.env
->.env
.
-
Sign up for a Wit.ai account here.
-
Set
WIT_TOKEN
with your Server Access Token from Wit.ai. -
Check out Messenger Bot Wit.ai Tutorial to learn how and why we want to use Wit.ai for NLP in our bot.
-
Sign up for a Dashbot account here.
-
Create a new app in Dashbot.
-
Set
DASHBOT_KEY
with your Bot Key from Wit.ai.
Head back to Messenger Bot Tutorial for a walkthrough on deploying your bot to Heroku.
- Change DB name in
config/index.js
- Run
settings.sh
andtest-settings.sh