Sample Slack app that uses the Events API and interactive messages to send new users a Terms of Service or welcome message
MIT License
✨ Updated December 2019: As we have introduced some new features, this tutorial and the code samples have been updated! All the changes from the previous version of this example, read the DIFF.md
Sample Slack app that presents a Terms of Service (or any other message) when a new user joins a team.
The user can accept the Terms of Service using message buttons. If a user has been presented with the Terms before and they haven't accepted, a background job can send them a reminder after a specific period of time. If you are on Plus plan or Slack Enterprise Grid, you may use the SCIM API to disable the user's account.
chat:write
, im:write
, users:read
npm install
.env
(see .env.sample
):
SLACK_ACCESS_TOKEN
: Your app's xoxb-
token (available on the Install App page, after you install the app to a workspace once.)SLACK_SIGNING_SECRET
: Your app's Signing Secret (available on the Basic Information page)npm start
)https://yourname.ngrok.com
) or Glitch URL + /events
team_join
team events/interactive