wit-ai / node-wit

Node.js SDK for Wit.ai
Other
2.05k stars 485 forks source link

How do I actually integrate this app with Facebook Messenger's API to create a chatbot? #8

Closed ninajlu closed 8 years ago

patapizza commented 8 years ago

Hi Nina,

We haven't released any examples showing an integration with the Messenger API yet. In the meantime, please refer to their documentation: https://developers.facebook.com/docs/messenger-platform/quickstart

From a high level, you want to call .runActions() for each user message, and forward your bot response within your say action.

Hope this helps.

patapizza commented 8 years ago

I just updated the README with basic instructions on how to do that. The example code is in examples/messenger.js.

DiegoRBaquero commented 8 years ago

I put up a simple wrapper if anyone is interested fb-messenger