Facebook Bot

Concept 

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.

https://developers.facebook.com/docs/messenger-platform/getting-started/test-drive/?testdrive_messengerbot=true

Follow the instruction here.


Running it 

Running using 2 different processes.

Process #1.

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



Testing

Open your messenger and start sending messages to it. You can see your local (command prompt) node app displaying text messages from the user.


https://developers.facebook.com/apps/




Comments

Popular posts from this blog

PySpark - Working with JDBC Sqlite database