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:historychannels:managechannels: write.inviteschat:writegroups:writeim:writempim:writeusers: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.
Add Event Subscriptions
To enable Resolve Actions to receive incoming data from Slack, configure Event Subscriptions in Slack as follows:
- In the Resolve Actions platform, navigate to the top hamburger menu and Configuration > API Access.
- Copy the Events URL.
- Navigate back to api.slack.com.
- In the left-hand menu, click Event Subscriptions.
- Paste the Events URL into the Request URL field.
- Once the connection is verified, toggle On in the upper right corner to enable the subscription.
- Under Subscribe to bot events, select message.channels to subscribe to Slack messages. Add additional events as needed.
- Click Save.