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:
Using OAuth
Blink’s application is configured with the scopes needed to run all the Slack actions.
Only this kind of connection works with Ask a Question via Slack steps.
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 Slack to authenticate using OAuth.
- Sign in using your credentials.
- To configure access to specific channels for your Slack connection, click here.
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 0Auth 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:read
User Token Scopes:
- users.profile:write
Click Install App.
Click Install to Workspace.
A my_app is requesting permission to access the test Slack workspace dialog window appears > Allow.
Return to OAuth & permissions.
Copy your token.
note
There 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.