bwebs / slack-interactive-function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Work in progress! Known issues:

  • Courier Click/Interaction tracking
  • Data from first Courier send, missing in interactive updates
yarn install
yarn dev
  1. Create Slack App
  2. Set up Courier > Slack
  3. In Slack App, set up Interactivity Request URL to point to this app (use ngrok if running locally)
  4. cp .env.example .env and fill in values, then yarn dev
  5. Create a Slack Template in Courier that has interactivity (button or select)
  6. Change the Slack Channel settings for a replacement key of data.message.ts
  7. Send a test message
  8. Interact with it
  9. Data should flow through the middleware
  10. Create an automation that sends to the same JSON template. Alt text

About


Languages

Language:TypeScript 92.6%Language:JavaScript 7.4%