Skip to content

Phuurl/slack-channel-inviter

Repository files navigation

Slack Channel Inviter

This workflow will add the calling user to a predefined set of channels.

Installation

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:

  1. Install and configure the Slack CLI
  2. 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.
  3. Deploy the app to the Slack Platform with slack deploy, creating the trigger when prompted
  4. 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
  5. Invite the app to the source channel of the workflow invocations with /invite @Channel Inviter

Usage

Once installed, users can execute the workflow with the link provided as above, and will then be added to the specified channels.

Workflow preview

Limitations

  • 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