What we are doing here is to serve up an nodejs app which handles messages that users or customer post to facebook. This gives us an opportunity to add various service like Luis or Wit.Ai to handle NLP. Surprising Wit.Ai is very similiar to Luis.
Getting started with sample code
Downloading sample app with Facebook messenger test drive.
Follow the instruction here.
Running using 2 different processes.
Kicks it off using "node app.js" - default port is 5000 but you can always change it.
Process #2 (tunneling to Facebook)
Runs the following command - lt --port 5060
Open your messenger and start sending messages to it. You can see your local (command prompt) node app displaying text messages from the user.