kennu/serverless-chatbot

Boilerplate for a Serverless chatbot application

★ 0Forks 0JavaScriptGitHub ↗Compare

README

Serverless Chatbot

Kenneth Falck [email protected] 2016

Overview

This is a basic boilerplate application for implementing AWS Lambda based chat bots that can talk with Facebook Messenger or Microsoft Bot Framework.

Prerequisites

Install Node.js 4 or later and run:

npm install
cd bot-logic && npm install && cd ..
cd facebook-bot && npm install && cd ..
cd microsoft-bot && npm install && cd ..

Initial setup

Before you can deploy, you need to configure the Serverless project.

Then run these commands, using the tokens you got from Facebook:

sls project init
sls variables set -t stage -s dev -k FACEBOOK_BOT_VERIFY_TOKEN -v (your verify token)
sls variables set -t stage -s dev -k FACEBOOK_BOT_PAGE_ACCESS_TOKEN -v (your page access token)

Deployment

To deploy to the default stage (dev), run:

sls function deploy -a
sls endpoint deploy -a

Contributors

kennurenovate-bot

Issues