项目作者: hoodsy

项目描述 :
A Chatbot boilerplate app for Facebook Messenger with NLP by Wit.ai and analytics by Dashbot.io.
高级语言: JavaScript
项目地址: git://github.com/hoodsy/messenger-bot-boilerplate.git
创建时间: 2016-12-20T04:08:00Z
项目社区:https://github.com/hoodsy/messenger-bot-boilerplate

开源协议:

下载


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

  1. git clone https://github.com/hoodsy/messenger-bot-boilerplate.git
  2. cd messenger-bot-boilerplate
  3. npm install
  4. 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