Slack
Slack is a messaging app for business that connects people to the information they need.
Creating a Slack connection
Create the connection by using one of the following methods:
- Bot for Slack
- Slack User
- Slack Admin
- Connect using a new application
- Link connection to a specific channels
Using Bot for Slack
The following scopes are used by the Bot for Slack connection:
channels:manage
channels:history
channels:read
chat:write
chat:write.public
groups:write
groups:read
groups:history
files:write
im:read
im:write
im:history
mpim:read
mpim:write
mpim:history
reactions:write
usergroups:write
users:read
users:read.email
team:read
Creating your connection
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the Slack icon. A dialog box with name of the connection and connection methods appears.
- (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
- Click Bot for Slack to authenticate using OAuth.
- Sign in using your credentials.
- To configure access to specific channels for your Slack connection, click here.
Using Slack User
The following scopes are used by the Slack User connection:
users:read.email
users.profile:read
users.profile:write
groups:write
groups:read
users:read
search:read
reactions:write
files:write
channels:write
channels:read
chat:write
channels:history
im:write
team:read
usergroups:write
mpim:read
mpim:write
im:read
Creating your connection
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the Slack icon. A dialog box with name of the connection and connection methods appear.
- (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
- Select Slack User as the method to create the connection.
- Fill in the parameters:
- (Optional) Click Test Connection to test it.
- Click Create connection. The new connection appears on the Connections page.
Using Slack Admin
The following scopes are used by the Slack Admin connection:
admin.conversations:write
admin.conversations:read
admin.invites:write
admin.invites:read
admin.teams:write
admin.teams:read
admin.usergroups:write
admin.usergroups:read
admin.users:write
admin.users:read
In addition to the Admin scopes, the Slack User Scopes are also being used.
Creating your connection
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the Slack icon. A dialog box with name of the connection and connection methods appear.
- (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
- Select Slack Admin as the method to create the connection.
- Fill in the parameters:
- (Optional) Click Test Connection to test it.
- Click Create connection. The new connection appears on the Connections page.
Connecting using a new application
This kind of Slack connection should not be used with Ask a Question via Slack steps.
To create the connection you need:
- A token
Obtaining the credentials
Go to Slack API: Applications.
Click Create New App.
Select From scratch.
Fill out your App name and workspace > Create App.
Select OAuth and permissions.
Navigate to Scopes.
Add the following scopes for your application:
Bot Token Scopes:
- channels:manage
- channels:history
- channels:read
- chat:write
- chat:write.public
- groups:write
- groups:read
- groups:history
- files:write
- im:read
- im:write
- im:history
- mpim:read
- mpim:write
- mpim:history
- reactions:write
- usergroups:write
- users:read
- users:read.email
- team:readUser Token Scopes:
- users.profile:write
Click Install App.
Click Install to Workspace.
my_app is requesting permission to access the test Slack workspace dialog window appears > Allow.
Return to OAuth & permissions.
Copy your token.
noteThere are two types of tokens: A "User OAuth Token" & A "Bot User OAuth Token". We recommend using the Bot User OAuth Token in most cases, but there are a few exception, such as the "Set User Profile" action.
Creating your connection
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the Slack icon. A dialog box with name of the connection and connection methods appears.
- (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
- Select Token as the method to create the connection.
- Fill in the parameters:
- Token
- (Optional) Click Test Connection to test it.
- Click Create connection. The new connection appears on the Connections page.
Link connection to a specific channel
To communicate with an existing Slack channel you have to invite your app to join from Slack.
To invite your app to the channel, follow one of the following options:
Slack message Go to Slack application, and in the desired channel send the following message:
/invite @<AppName> # For Blink OAuth, AppName will be Blink
Slack UI
- Select a specific channel > click the channel name.
- On the Integrations tab > Add apps.
- Choose the app from the apps list (For Blink OAuth, app name will be Blink).
Slack app scope
Add chat:write.public scope to your application.