This workflow will add the calling user to a predefined set of channels.
This app uses the new Slack platform, meaning everything is hosted within Slack - so no cloud resources or other hosting is required.
To deploy the workflow, follow these steps:
- Install and configure the Slack CLI
- Replace the placeholder channel IDs in
channels.ts
with the IDs of the channels you want the workflow to invite users to- If you don't already have the Slack Developer Tools app installed, it's an easy way of gathering channel IDs. They can also be found in a channels' details view.
- Deploy the app to the Slack Platform with
slack deploy
, creating the trigger when prompted - Take the trigger URL outputted by the Slack CLI, and send that in the relevant place for your users
- That could be just sending it in channel, adding it as a channel bookmark, or placing it in a Canvas
- Invite the app to the source channel of the workflow invocations with
/invite @Channel Inviter
Once installed, users can execute the workflow with the link provided as above, and will then be added to the specified channels.
- The app must be added to the channel that users trigger the workflow from, otherwise executions will fail
- The user installing the app via
slack deploy
must be present in the target channel(s), and have invite permissions