Serverless service which provides you a basic Facebook Messenger Chatbot scaffold.
Make sure that you use Serverless v1.
Note: You might want to look take a look at the Facebook Messenger Platform quickstart guide or the Facebook Messenger Platform in-depth documentation.
- Run
serverless install --url https://github.com/pmuens/serverless-facebook-messenger-botto install the service in your current working directory - Next up cd into the service with
cd serverless-facebook-messenger-bot - Run
npm installto install all the necessary npm packages - Setup your Facebook Messenger Chatbot app
- Setup the Facebook Fanpage for your Chatbot
- Connect the Facebook Fanpage with the Facebook Messenger app
- Replace the
accessTokenvariable in thehandler.jsfile with your Fanpage token - Run
serverless deployto deploy your chatbot - Chat with the bot through the Fanpage (or your Facebook Messenger app on your smartphone)
- Lambda
- API Gateway