All Projects → willianjusten → eve

willianjusten / eve

Licence: other
A simple bot to work with the new Facebook Messenger API using Wit.ai.

Programming Languages

javascript
184084 projects - #8 most used programming language

Eve

A simple bot to work with the new Facebook Messenger API, using Wit.ai.

Example

Getting Started

Some steps from Messenger Setup like Webhooks, you have to configure Heroku first.

Install dependencies

npm install

Structure

├── Procfile  # tells to heroku what to do
├── bot.js # our bot actions
├── fb-connect.js # connection to facebook uses FB_PAGE_TOKEN
├── index.js # express layer
├── parser.js # our message parser
├── sessions.js # find our define our sessionId
└── settings.js # exports our environmet variables

Define variables on Heroku

In order to work with Facebook and Wit Authentication, you have to create those environment variables on Heroku.

WIT_TOKEN
FB_PAGE_ID
FB_PAGE_TOKEN
FB_VERIFY_TOKEN

Link and push to heroku

heroku create
git push heroku master

License

This software is free and open source, distributed under the The MIT License. So feel free to use this without linking back to me or using a disclaimer.

If you’d like to give me credit somewhere on your blog or tweet a shout out to @willian_justen, that would be pretty sweet.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].