/facebook-messenger-chat-bot-nodejs

A simple messenger bot using Mesenger Platform, enhanced with WitAI

Primary LanguageJavaScript

messenger-bot-nodejs

How to run this project ?

You can set up this project by following these steps below or an easier way, I created a video to set up this project ( Watch my video: https://www.youtube.com/watch?v=h-JqLlNTfrc )

1. Clone this project

  • Copy file .env.example -> create a .env file at the root folder -> fill all app variables in the .evn file
  • Run the "npm install" to test project at the localhost

2. Create a Heroku app, a Facebook Page, a Facebook App.

2.1 Create a Heroku app

  • Deploy app to Heroku ( need to setup dev dependencies: heroku config:set NPM_CONFIG_PRODUCTION=false )
  • Config env variables (setup dev dependencies)

2.2 Facebook Page

  • Create a Facebook Page
  • Config Whitelisted Domains (add the Heroku app domain)

2.3 Facebook App

  • Create a Facebook App
  • Config webhook