achautha / workflow-powerups

Repository from Github https://github.comachautha/workflow-powerupsRepository from Github https://github.comachautha/workflow-powerups

Slack Workflow Builder Power-Ups

A collection of simple Workflow Builder extensions (aka Steps from Apps) to serve as examples and be useful in their own right.

This project is being developed in the open and will stagger it's way to maturity. under construction

Setting up the Slack App

Create an app at api.slack.com and add the configuration below.

Oauth and Permissions

Redirect URLs:

  • <your host>/slack/oauth_redirect
  • <your host>/update-status-step/auth/callback

Bot Token Scopes:

  • users:read
  • workflow.steps:execute

User Token Scopes:

  • users.profile:write

Enable Interactivity

Request URL: <your host>/slack/events

Enable Events

Request URL: <your host>/slack/events

Workflow Steps Configuration

Enable and then define these steps (Name - Callback ID):

  • Random String - random_string
  • Update your status - update_status
  • Flow Utilities - flow_utilities

Configuration

To run locally you'll need a .env file with these properties:

export SLACK_SIGNING_SECRET=
export SLACK_CLIENT_ID=
export SLACK_CLIENT_SECRET=
export STATE_SECRET=<generate some secret value for your install>
export HOST=https://host
export REDIS_URL=redis://127.0.0.1:6379

And then to run with nodemon: npm run-script dev

About

License:MIT License


Languages

Language:JavaScript 100.0%