Slack App Setup
Create a Slack app with OAuth scopes for messaging, channels, files, and user management.
Setup Steps
Section titled “Setup Steps”-
Create a Slack App
Go to the Slack API Dashboard and click “Create New App”. Select “From scratch” and choose your workspace.
-
Configure OAuth & Permissions
Navigate to “OAuth & Permissions” in your app settings.
-
Add Redirect URL
Add the OAuth redirect URL for Fp Switchboard:
https://api.switchboard.fpdigital.ai/oauth/slack/callback -
Add Bot Token Scopes
Add the following bot token scopes to enable all Fp Switchboard features:
channels:historychannels:readchannels:writechannels:write.inviteschat:writefiles:readfiles:writegroups:historygroups:readgroups:writeim:historyim:readim:writempim:historympim:readmpim:writereactions:readreactions:writeusers:readusers:read.emailteam:readsearch:readpins:readpins:writebookmarks:readbookmarks:writednd:readdnd:writereminders:readreminders:writeusergroups:readusergroups:writeemoji:read -
Get Client Credentials
Go to “Basic Information” and copy the Client ID and Client Secret.
-
Install App to Workspace
Install the app to your workspace to test the integration. This generates the initial tokens.
Environment Variables
Section titled “Environment Variables”npx wrangler secret put SLACK_CLIENT_IDnpx wrangler secret put SLACK_CLIENT_SECRET| Variable | Description |
|---|---|
SLACK_CLIENT_ID | Client ID from Slack App Basic Information |
SLACK_CLIENT_SECRET | Client Secret from Slack App Basic Information |
Redirect URI
Section titled “Redirect URI”https://api.switchboard.fpdigital.ai/oauth/slack/callback