Install the Slack App for the Alfred Workflow
This guide will walk you through the installation process for the Slack app required to retrieve user and channel information for your Alfred workflow. Follow the steps below to get started.
1. Create an slack app
First thing’s first: you’ll want to create a Slack app.
After you fill out an app name (you can change it later) and pick a workspace to install it to, hit the Create App
button, and you’ll land on your app’s Basic Information page.
This page contains an overview of your app in addition to important credentials you’ll need later, like the Signing Secret
under the App Credentials header.
2. Tokens and installing app
We’re going to use bot and app tokens.
Navigate to the OAuth & Permissions on the left sidebar and scroll down to the Bot Token Scopes section. Click Add an OAuth Scope.
Now we have to grant the permissions for the scopes
channels:read
,groups:read
,im:read
,mpim:read
,search:read
,users:read
.
Scroll up to the top of the OAuth & Permissions page and click Install App to Workspace. You’ll be led through Slack’s OAuth UI, where you should allow your app to be installed to your development workspace.
Once you authorize the installation, you’ll land on the OAuth & Permissions page and see a User OAuth Token.
Congratulations you have created the slack application
3. Installing the workflow
- Download the slack-workflow
- Open the slack-workflow file and install the workflow.
- Add the env variables of the slack application
Basic Information -> App Credentials ->Signing Secret
OAuth & Permissions -> OAuth Tokens for Your Workspace ->User OAuth Token
- click the install button
4. Install Homebrew
Homebrew is a requirement to install the dependencies of the slack workflow application
- Open the terminal application of your preference
- copy and paste this line
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- It is a Package Manager so for installing you would need to provide your computer password for this installations
5. Install Slack Workflow dependencies
WARNING
Homebrew is required
- Open alfred
- Type the command:
install slack-workflow
6. Update slack users and channels
- Open alfred
- Type the command:
update slack-workflow
Now you are ready to go.
Usage
You can use now the workflow opening alfred and starting by @
or #