Skip to content

How 2 setup

MikhailShel edited this page Sep 22, 2017 · 1 revision

First thing you have to setup config for transports you are going to use

For now there are 2 transports that come prebuild from the box to set them up you will have to get credentials that are needed(config/config.json)

if you want to use only one of those just remove irrelevant config from config/config.json, so in case if you want to use only Facebook, you would have config that looks something like that:

{ "static_path": "/static", "redis_host": "127.0.0.1", "redis_port": "6379", "transports": { "Facebook": { "verify_token": "***", "access_token": "***", "access_point_root": "/fb_bot" } } }

  1. Facebook
  • go through facebook setup flow to get verify_token, access_token
  • Once you aquired those, specify root for an api Access point to hit for bot responses and privacy(look at transport/Facebook.py for details)
  1. Slack
  • Create a bot user at your slack channel, subscribe to message* events
  • get verify_token,token, bot_id to be able to receive events and validate endpoint
  • Specify root API you want to use to receive all the slack events on
  • look at transport/Slack.py for details

Clone this wiki locally