Skip to main content
Version: 8.1

Slack Connector

The Slack Connector allows you to send messages to channels or users in your Slack workspace from your BPMN process.


To use the Slack Connector, a Slack app must be registered with the Slack workspace you would like to send messages to. A respective OAuth token needs to be configured as a secret in your cluster. Follow these steps in the appendix to learn how to set this up.

Create a Slack Connector task

To use a Slack Connector in your process, either change the type of an existing task by clicking on it and using the wrench-shaped Change type context menu, or create a new Connector task by using the Append Connector context menu. Follow our guide on using Connectors to learn more.

Make your Slack Connector executable

To make the Slack Connector executable, fill out the mandatory fields highlighted in red in the properties panel:

slack connector red properties

  1. Set Authentication to your Slack OAuth token, which is stored as a secret. For example, 'secrets.SLACK_OAUTH_TOKEN'.
  2. Set Channel/User Name to either the channel or user you want to send the message to.
    1. A channel is specified by a unique identifier starting with a # (for example, #myChannel).
    2. A user is specified by a username starting with an @ symbol (for example, @myUser).
  3. Set Message to the message string you would like to send (for example, Hello World!)

The Channel/User Name and Message can either be given static values, or FEEL expressions. FEEL expressions can be used to access process variables or dynamically create values. This can be handy if a process variable is used to store the relevant channel or if the message needs to be composed dynamically, for example:

slack connector compose


Slack's guidance on formatting can assist in formatting messages.

Slack API response

The Slack Connector exposes the Slack API response as a local variable called response.

The following fields are available in the response variable. Notice that all fields describe state in the Slack workspace:

  • ts: timestamp ID
  • channel: channel ID
  • message:
    • type: message type
    • type: team ID
    • user: user ID
    • text: message text
    • ts: timestamp ID
    • appID: Slack App ID
    • botID: Slack Bot ID

You can use an Output Mapping to map the response:

  1. Use Result Variable to store the response in a process variable. For example, myResultVariable.
  2. Use Result Expression to map fields from the response into process variables. For example:
= {
messageText: response.message.text

slack connector response mapping


To use the Slack Connector, the following prerequisites need to be set up.

  1. Slack workspace - The workspace the Slack Connector will communicate with.
  2. Slack basic app with bot token configured - The Slack Connector will communicate through this Slack app with the workspace. You can consider the Slack app as Slack bot representing the Camunda platform.
  3. Slack bot token stored as secret - The secret will store the Slack bot token and can be used to reference it from BPMN processes without revealing it in the BPMN xml.

Use a well-known Slack workspace

A Slack workspace consists of channels in which workspace members can communicate and collaborate. A workspace is identified by a unique name, for example In most cases you will know which workspace you want to connect with already. If you want to set up a new workspace, refer to the official Slack documentation.

Configure a basic Slack app


You can only install a Slack app to a workspace in which you are a member or that you own. It is not possible if you have guest-only permissions. See the guide to apps in Slack for more details.

The Slack Connector communicates through a Slack app with a concrete Slack workspace. For example, when sending a Slack message, the message will be posted by the Slack app. For the Slack Connector to work, you need to perform the following steps:

  1. Create a Slack app.
  2. Request required scopes - The scopes represent what your app can and cannot do (for example, posting messages). For the Slack Connector to work, at a minimum you need to grant the chat:write scope.
  3. Install the Slack app to your workspace.
  4. Invite the Slack app to your workspace via /invite.

Once the app is set up, copy the bot token of the app. It is represented as a string and begins with xoxb-. This is the OAuth Bearer token, which the Slack Connector will use to authenticate with the Slack API.

Store Slack bot token as secret

The Slack Connector uses an OAuth bearer token (for example, the Slack app bot token) to authenticate with the Slack API.

We advise you to keep your Slack bot token safe and avoid exposing it in the BPMN xml file by creating a secret:

  1. Follow our guide for creating secrets.
  2. Name your secret SLACK_OAUTH_TOKEN so you can reference it later in the Connector.