hoodsy / messenger-bot-boilerplate

A Chatbot boilerplate app for Facebook Messenger with NLP by Wit.ai and analytics by Dashbot.io.

Home Page:https://www.facebook.com/messengerbotboilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

messenger-bot-boilerplate

Messenger Bot Boilerplate

Dependency Status devDependency Status

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.

logo-tools

Table of Contents

Usage

git clone https://github.com/hoodsy/messenger-bot-boilerplate.git
cd messenger-bot-boilerplate
npm install
npm start

Setup

Facebook Messenger

  1. Follow the steps at Messenger Bot Tutorial to create a Facebook App or Page, setup Webhooks, and set Environmental Variables.

  2. Set FB_PAGE_TOKEN, FB_APP_SECRET, FB_APP_SECRET, and FB_VERIFY_TOKEN in example.env.

  3. Move example.env -> .env.

Wit.ai

  1. Sign up for a Wit.ai account here.

  2. Clone messenger-bot-boilerplate on Wit.ai.

  3. Set WIT_TOKEN with your Server Access Token from Wit.ai.

  4. Check out Messenger Bot Wit.ai Tutorial to learn how and why we want to use Wit.ai for NLP in our bot.

Dashbot

  1. Sign up for a Dashbot account here.

  2. Create a new app in Dashbot.

  3. Set DASHBOT_KEY with your Bot Key from Wit.ai.

Deploy

Head back to Messenger Bot Tutorial for a walkthrough on deploying your bot to Heroku.

  1. Change DB name in config/index.js
  2. Run settings.sh and test-settings.sh

About

A Chatbot boilerplate app for Facebook Messenger with NLP by Wit.ai and analytics by Dashbot.io.

https://www.facebook.com/messengerbotboilerplate/


Languages

Language:JavaScript 91.0%Language:Shell 9.0%