Skip to main content

Slack 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 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

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the Slack icon. A dialog box with name of the connection and connection methods appears.
  3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
  4. Click Bot for Slack to authenticate using OAuth.
  5. Sign in using your credentials.
  6. 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

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the Slack icon. A dialog box with name of the connection and connection methods appear.
  3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
  4. Select Slack User as the method to create the connection.
  5. Fill in the parameters:
  6. (Optional) Click Test Connection to test it.
  7. 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

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the Slack icon. A dialog box with name of the connection and connection methods appear.
  3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
  4. Select Slack Admin as the method to create the connection.
  5. Fill in the parameters:
  6. (Optional) Click Test Connection to test it.
  7. 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

  1. Go to Slack API: Applications.

  2. Click Create New App.

    Create New App

  3. Select From scratch.

    Select From scratch

  4. Fill out your App name and workspace > Create App.

    Fill parameters

    Create App

  5. Select OAuth and permissions.

    Select OAuth and Permissions

  6. Navigate to Scopes.

    Navigate to Scopes

  7. 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
  8. Click Install App.

    Install App

  9. Click Install to Workspace.

    Install to Workspace

  10. my_app is requesting permission to access the test Slack workspace dialog window appears > Allow.

    Allow dialog window

  11. Return to OAuth & permissions.

    Return to OAuth and Permissions

  12. 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.

    Copy Token

Creating your connection

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the Slack icon. A dialog box with name of the connection and connection methods appears.
  3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
  4. Select Token as the method to create the connection.
  5. Fill in the parameters:
    • Token
  6. (Optional) Click Test Connection to test it.
  7. Click Create connection. The new connection appears on the Connections page.

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:

  1. Slack message Go to Slack application, and in the desired channel send the following message:

     /invite @<AppName> # For Blink OAuth, AppName will be Blink
  2. Slack UI

    1. Select a specific channel > click the channel name.
    2. On the Integrations tab > Add apps.
    3. Choose the app from the apps list (For Blink OAuth, app name will be Blink).
  3. Slack app scope
    Add chat:write.public scope to your application.