Slack icon

Slack

Slack is a cloud-based platform that brings all your collaboration and messaging tool needs together, for both individuals and companies.

Overview

Slack is a versatile tool for messaging, sharing files, and collaboration within teams. It allows you to create channels for organized communication, react to important events, and configure the platform to suit your team’s unique tech stack. Whether it's integrating with other tools, automating workflows, or simply enhancing team communication, Slack provides a comprehensive environment tailored to your specific needs.

API Information

The Base URL used for the Slack connector is** https://slack.com/api**. More information can be found on their main API documentation (v1) site. Details regarding their API limitations can be found here.

Templates

These Templates provide pre-configured (best practice) examples of how to work with Slack and integrate it with other services.

PLEASE NOTE: We strongly advise users to read the Authentication and Notes on Using Slack sections to avoid common pitfalls before using any templates. This will help ensure a smooth setup and prevent common errors during integration.


Authentication

Version 10

When using the Slack connector for the first time, you need to create a new authentication. slack-auth-1 Name your authentication and specify the type (Personal or Organizational). slack-auth-v10 The next page optionally asks for User Scope and Slash Command Signing Secret.

  • User scope: You can set additional permission scopes for users if needed, following Slack's Permission scopes document.

    slack-user-scope

    Only add user scopes to this field; adding other scopes will cause authentication failure.


    After adding the user scope, ensure that the Use user token field in the Advanced properties section of Slack's properties panel is set to true. If this is not set to true, the user scope will not be applied.

    slack-user-scope-useUserToken-true The channels:write user scope, for example, allows you to send messages as a user rather than as a bot.

    slack-user-scope-op 1

For a detailed understanding, refer to the User Scope vs. Extra Permission Scopes section.

  • Slash Command Signing Secret: This is only necessary if you intend to use Slash commands and want an added layer of security. Slash commands can work without signing secrets.

    IMPORTANT:

    • This is not a mandatory part of the authentication process.
    • It is also not required for working with Slash commands unless you need extra security.

    Refer to the Slash Command Signing Secret section for instructions on how to obtain your Slash command signing secret. Feel free to skip this field if it is not needed for your use case.

slack-auth-v10 The next step is to select your service permissions. Basic permissions are pre-selected for your convenience. Feel free to check or uncheck the permissions based on your specific use case. slack-auth-v10-scopes.gif The last optional field allows you to set additional permission scopes for users, following Slack's Permission scopes document. For a detailed understanding, refer to the User Scope vs. Extra Permission Scopes section.

Do not add user scopes to this field; adding user scopes will cause authentication failure.


slack-auth-3 Once done, click **Create authentication. ** In the dialog box, choose the workspace from the top right, and then click Allow. slack-auth-v10-2 Return to the authentication field in the workflow builder properties panel, and select the newly created authentication from the available dropdown options. Your connector authentication setup for Slack version 10 is now complete.

Version 9.1

When using the Slack connector for the first time, you need to create a new authentication. slack-auth-1 Name your authentication and specify the type ('Personal' or 'Organizational'). slack-auth-v9 The next page optionally asks for the Slash Command Signing Secret. This is only necessary if you intend to use Slash commands and want an added layer of security. Slash commands can function without signing secrets.

IMPORTANT:

  • This is not a mandatory part of the authentication process.
  • It is also not required for working with Slash commands unless you need extra security.

Refer to the Slash Command Signing Secret section for instructions on how to obtain your signing secret. Feel free to skip this field if it is not needed for your use case. slack-auth-v9-1 The next step is to select your service permissions. For your convenience note that the basic permissions are already pre-selected. Feel free to check or un-check the permissions based on your use case. The last field allows you to set additional permission scopes for users if needed, following Slack's Permission scopes document. For a detailed understanding, refer to the User Scope vs. Extra Permission Scopes section.

Do not add user scopes to this field; adding user scopes will cause authentication failure.


slack-auth-v9-2 Once done, click **Create authentication. ** In the dialog box, choose the workspace from the top right, and then click Allow. slack-auth-v9-3 Go back to your settings authentication field (within the workflow builder properties panel), and select the recently added authentication from the available dropdown options . Your connector authentication setup for Slack's version 9.1 is now complete. Return to the authentication field in the workflow builder properties panel, and select the newly created authentication from the available dropdown options. Your Slack connector authentication setup for version 9.1 is now complete.

Slash command signing secret

To locate your slash command signing secret: Go to the Slack API page and click Your apps in the top right corner. On the next page select an app from your available list or create a new one if necessary. You will be redirected to the Basic Information page of your App. Scroll down to the App Credentials section. Your Signing Secret (i.e., Slash Command Signing Secret) can be found in this section. slack-auth-signing-secret

User Scope vs. Extra Permission Scopes

The User Scope field is available from version 10.

Ensure that you create distinct authentications for sending messages as a Bot and as a User.


User scopeExtra permission scopes
Acceptable scopesaccepts scopes that are relevant to both Users and Users + Botsaccepts scopes that are relevant to both Bot and Bot + Users
RequirementUse when need to send message as a UserUse when need to send message as a Bot
Forbidden scopesDoes not accept Bot scopes; providing them leads to authentication failure.Does not accept User scopes; providing them leads to authentication failure.
slack-send-msg-as-user-bot

Was this page helpful?