Configuring the Slack Integration
The Resolve Actions Platform provides built-in activities to integrate with Slack. Using these, you can automate actions, including sending messages, managing channels, and responding to Slack events in real time.
The activities available are:
- Slack Archive Channel
- Slack Create Channel
- Slack Invite to Channel
- Slack Kick from Channel
- Slack List Users
- Slack Send Message
All of the prerequisite configuration listed below will occur on the Slack site itself.
Prerequisites
To use the Slack integration, you will need to own a Workspace in Slack and create an Slack app from the api.slack.com menu.
Once you create the app, you will need:
- App ID (under Basic Information)
- Signing Secret (under Basic Information)
- Bot Token (under OAuth & Permissions)
You will need to copy the App ID and the Signing Secret directly from this page.
Bot Token Scopes
Before generating the Bot Token,
- Navigate to OAuth & Permissions.
- Add the scopes listed below under Scopes > Bot Token Scopes.
- Scroll up to the OAuth Tokens section and install the bot to your environment.
- This will generate the Bot User OAuth Token.
Bot Token Scopes
channels:history
channels:manage
channels: write.invites
chat:write
groups:write
im:write
mpim:write
users:read
If a required scope is missing, Resolve will return an error message listing which scopes need to be added.
Set Global variables
Once you have completed the steps listed above, keep your Slack settings open to copy the required information into Resolve Actions.
- In the top left hamburger menu, navigate to Repository > General.
- Click the Global Variables dropdown.
- Find the SlackBotToken and click the name to open its configuration module.
- Enter the Slack bot token taken from the OAuth & Permissions screen by clicking Change Password.
- Save the configuration.
- Find the SlackSigningSecret variable and click the name top open its configuration module.
- Enter the Signing Secret by clicking Change Password.
- Save the configuration.