connector.slack · connector.slack_trigger · communication
Send and manage messages, channels, files, reactions, pins, users and user groups in a Slack workspace, and start workflows from Slack events, interactions and slash commands.
Vendor API documentation: https://docs.slack.dev/reference/methods
| Method | Credential kind | Auth kind | Fields | Test request |
| Bot or user token | slack/bot_token | bearer | token (secret), signing_secret (secret) | yes |
| OAuth2 (install a Slack app) | slack/oauth2 | oauth2_auth_code | client_id, client_secret (secret), signing_secret (secret) | yes |
Node type connector.slack. Choose a resource and an operation; each operation has its own parameters.
| Operation | ID | Effect | Paginated | Cassette tests |
| Send a message | message.post | writes | | 3 |
| Send an ephemeral message | message.post_ephemeral | writes | | 1 |
| Update a message | message.update | writes | | 1 |
| Delete a message | message.delete | writes | | 1 |
| Get a message permalink | message.get_permalink | reads | | 1 |
| Schedule a message | message.schedule | writes | | 1 |
| Search messages | message.search | reads | yes | 1 |
Operation message.post. Posts a message to a channel, private group, DM or thread.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Channel, DM or user ID. A user ID opens a DM with that user. Values from lookup channels. |
text | string | | | | Message text (mrkdwn). Used as the notification fallback when blocks are given. |
blocks | json | | | | Block Kit blocks as a JSON array (an object with a blocks key, as Block Kit Builder exports it, is accepted too). |
attachments | json | | | | Legacy secondary attachments as a JSON array. |
thread_ts | string | | | | Timestamp of the parent message to reply in its thread. |
reply_broadcast | boolean | false | | | Also show the thread reply in the channel. |
mrkdwn | boolean | true | | | |
unfurl_links | boolean | | | | |
unfurl_media | boolean | | | | |
link_names | boolean | | | | |
username | string | | | | Custom bot name (needs chat:write.customize). |
icon_emoji | string | | | | |
icon_url | string | | | | |
metadata | json | | | | Message metadata object ({ event_type, event_payload }). |
Operation message.post_ephemeral. Shows a message only to one user in a channel.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
user | resource_locator | | yes | | User who will see the message. Values from lookup users. |
text | string | | | | |
blocks | json | | | | |
thread_ts | string | | | | |
Operation message.update.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | Timestamp of the message to change. |
text | string | | | | |
blocks | json | | | | |
attachments | json | | | | |
link_names | boolean | | | | |
reply_broadcast | boolean | | | | |
Operation message.delete.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | |
Operation message.get_permalink.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | |
Operation message.schedule.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
post_at | number | | yes | | Unix timestamp (seconds) when the message is sent. |
text | string | | | | |
blocks | json | | | | |
thread_ts | string | | | | |
Operation message.search. Searches messages in the workspace. Needs a user token with the search:read scope.
| Name | Type | Default | Required | Shown when | Description |
query | string | | yes | | |
sort | options | "score" | | | One of score, timestamp. |
sort_dir | options | "desc" | | | One of asc, desc. |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
| Operation | ID | Effect | Paginated | Cassette tests |
| List channels | channel.list | reads | yes | 2 |
| Get a channel | channel.get | reads | | 2 |
| Create a channel | channel.create | writes | | 1 |
| Archive a channel | channel.archive | writes | | 1 |
| Unarchive a channel | channel.unarchive | writes | | 1 |
| Rename a channel | channel.rename | writes | | 1 |
| Set the channel topic | channel.set_topic | writes | | 1 |
| Set the channel description | channel.set_purpose | writes | | 1 |
| Invite users to a channel | channel.invite | writes | | 1 |
| Remove a user from a channel | channel.kick | writes | | 1 |
| Join a channel | channel.join | writes | | 1 |
| Leave a channel | channel.leave | writes | | 1 |
| Open a direct message | channel.open | writes | | 1 |
| Close a direct message | channel.close | writes | | 1 |
| Get channel history | channel.history | reads | yes | 1 |
| Get thread replies | channel.replies | reads | yes | 1 |
| List channel members | channel.members | reads | yes | 1 |
Operation channel.list.
| Name | Type | Default | Required | Shown when | Description |
types | multi_options | ["public_channel"] | | | One of public_channel, private_channel, mpim, im. |
exclude_archived | boolean | true | | | |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
Operation channel.get.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
include_num_members | boolean | false | | | |
Operation channel.create.
| Name | Type | Default | Required | Shown when | Description |
name | string | | yes | | Lowercase, no spaces or periods, at most 80 characters. |
visibility | options | "public" | | | One of public, private. |
team_id | string | | | | Workspace ID (only for org-wide apps). |
Operation channel.archive.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
Operation channel.unarchive.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
Operation channel.rename.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
name | string | | yes | | |
Operation channel.set_topic.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
topic | string | | yes | | |
Operation channel.set_purpose.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
purpose | string | | yes | | |
Operation channel.invite.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
users | multi_options | | yes | | User IDs to add (up to 1000). Values from lookup users. |
Operation channel.kick.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
user | resource_locator | | yes | | Values from lookup users. |
Operation channel.join.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
Operation channel.leave.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
Operation channel.open. Opens (or resumes) a DM or multi-person DM and returns its channel.
| Name | Type | Default | Required | Shown when | Description |
users | multi_options | | yes | | One user for a DM, or 2 to 8 users for a group DM. Values from lookup users. |
Operation channel.close.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
Operation channel.history. Lists messages in a channel, newest first.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
oldest | string | | | | Only messages after this timestamp (Unix seconds or message ts). |
latest | string | | | | Only messages before this timestamp. |
inclusive | boolean | false | | | |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
Operation channel.replies.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | Timestamp of the thread’s parent message. |
oldest | string | | | | |
latest | string | | | | |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
Operation channel.members.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
| Operation | ID | Effect | Paginated | Cassette tests |
| Upload a file | file.upload | writes | | 2 |
| Get file details | file.get | reads | | 1 |
| Download a file | file.download | reads | | 1 |
| List files | file.list | reads | yes | 1 |
| Delete a file | file.delete | writes | | 1 |
Operation file.upload. Uploads binary data with Slack’s external upload flow and optionally shares it in a channel or thread.
| Name | Type | Default | Required | Shown when | Description |
binary_property | binary_property | "data" | yes | | |
file_name | string | | | | Defaults to the binary file name. |
title | string | | | | |
channel | resource_locator | | | | Channel to share the file in. Leave empty to keep it private. Values from lookup channels. |
thread_ts | string | | | | Share as a reply in this thread. |
initial_comment | string | | | | Message text posted with the file. |
alt_text | string | | | | Image description for screen readers. |
snippet_type | string | | | | Syntax type for text snippets, for example python. |
Operation file.get.
| Name | Type | Default | Required | Shown when | Description |
file | string | | yes | | File ID (F…). |
Operation file.download. Fetches the file details and stores the file content as binary data.
| Name | Type | Default | Required | Shown when | Description |
file | string | | yes | | File ID (F…). |
binary_property | string | "data" | | | Binary property to write the file to. |
Operation file.list.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | | | Only files shared in this channel. Values from lookup channels. |
user | resource_locator | | | | Only files created by this user. Values from lookup users. |
types | multi_options | | | | One of all, spaces, snippets, images, gdocs, zips, pdfs. |
ts_from | string | | | | Only files created after this Unix timestamp. |
ts_to | string | | | | Only files created before this Unix timestamp. |
show_files_hidden_by_limit | boolean | false | | | |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
Operation file.delete.
| Name | Type | Default | Required | Shown when | Description |
file | string | | yes | | |
| Operation | ID | Effect | Paginated | Cassette tests |
| Add a reaction | reaction.add | writes | | 1 |
| Remove a reaction | reaction.remove | writes | | 1 |
| Get reactions of a message | reaction.get | reads | | 1 |
Operation reaction.add.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | Timestamp of the message. |
name | string | | yes | | Emoji name without colons, for example thumbsup. |
Operation reaction.remove.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | |
name | string | | yes | | |
Operation reaction.get.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | |
full | boolean | true | | | Return the complete list of users per reaction. |
| Operation | ID | Effect | Paginated | Cassette tests |
| Pin a message | pin.add | writes | | 1 |
| Unpin a message | pin.remove | writes | | 1 |
| List pinned items | pin.list | reads | | 1 |
Operation pin.add.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | |
Operation pin.remove.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
ts | string | | yes | | |
Operation pin.list.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
| Operation | ID | Effect | Paginated | Cassette tests |
| Get a user | user.get | reads | | 2 |
| List users | user.list | reads | yes | 1 |
| Find a user by email | user.lookup_by_email | reads | | 2 |
| Get a user’s presence | user.get_presence | reads | | 1 |
| Get a user’s profile | user.get_profile | reads | | 1 |
| Update a user’s profile | user.update_profile | writes | | 1 |
Operation user.get.
| Name | Type | Default | Required | Shown when | Description |
user | resource_locator | | yes | | Values from lookup users. |
include_locale | boolean | false | | | |
Operation user.list.
| Name | Type | Default | Required | Shown when | Description |
include_locale | boolean | false | | | |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
Operation user.lookup_by_email.
| Name | Type | Default | Required | Shown when | Description |
email | string | | yes | | |
Operation user.get_presence.
| Name | Type | Default | Required | Shown when | Description |
user | resource_locator | | yes | | Values from lookup users. |
Operation user.get_profile.
| Name | Type | Default | Required | Shown when | Description |
user | resource_locator | | | | Leave empty for the token’s own user. Values from lookup users. |
include_labels | boolean | false | | | |
Operation user.update_profile. Changes profile fields. Needs a user token with users.profile:write.
| Name | Type | Default | Required | Shown when | Description |
user | resource_locator | | | | Leave empty for the token’s own user (other users need an admin token). Values from lookup users. |
first_name | string | | | | |
last_name | string | | | | |
display_name | string | | | | |
title | string | | | | |
phone | string | | | | |
email | string | | | | |
pronouns | string | | | | |
status_text | string | | | | |
status_emoji | string | | | | |
status_expiration | number | | | | Unix timestamp when the status clears (0 = never). |
fields | json | | | | Custom profile fields as an object keyed by field ID: { “Xf123”: { “value”: “…” } }. |
| Operation | ID | Effect | Paginated | Cassette tests |
| List user groups | user_group.list | reads | | 1 |
| Create a user group | user_group.create | writes | | 1 |
| Update a user group | user_group.update | writes | | 1 |
| Set the members of a user group | user_group.update_users | writes | | 1 |
| Disable a user group | user_group.disable | writes | | 1 |
| Enable a user group | user_group.enable | writes | | 1 |
Operation user_group.list.
| Name | Type | Default | Required | Shown when | Description |
include_disabled | boolean | false | | | |
include_count | boolean | false | | | |
include_users | boolean | false | | | |
Operation user_group.create.
| Name | Type | Default | Required | Shown when | Description |
name | string | | yes | | |
handle | string | | | | Mention handle without the @. |
description | string | | | | |
channels | multi_options | | | | Default channels for the group. Values from lookup channels. |
include_count | boolean | false | | | |
Operation user_group.update.
| Name | Type | Default | Required | Shown when | Description |
user_group | resource_locator | | yes | | Values from lookup user_groups. |
name | string | | | | |
handle | string | | | | |
description | string | | | | |
channels | multi_options | | | | Values from lookup channels. |
Operation user_group.update_users.
| Name | Type | Default | Required | Shown when | Description |
user_group | resource_locator | | yes | | Values from lookup user_groups. |
users | multi_options | | yes | | The complete new member list. Values from lookup users. |
Operation user_group.disable.
| Name | Type | Default | Required | Shown when | Description |
user_group | resource_locator | | yes | | Values from lookup user_groups. |
Operation user_group.enable.
| Name | Type | Default | Required | Shown when | Description |
user_group | resource_locator | | yes | | Values from lookup user_groups. |
Lookups fill dropdowns and resource pickers in the editor from the vendor API.
| Lookup | Depends on | Search | Description |
channels | | client-side | {{ item.purpose.value if item.purpose else ‘’ }} |
users | | client-side | @{{ item.name }} |
user_groups | | client-side | @{{ item.handle }} |
Node type connector.slack_trigger.
| Trigger | ID | Kind | Deduplication key | Signature | Webhook registration | Cassette tests |
| Workspace event | events | webhook | | hmac_sha256 | manual | 0 |
| Interaction (buttons, menus, modals, shortcuts) | interaction | webhook | | hmac_sha256 | manual | 0 |
| Slash command | slash_command | webhook | | hmac_sha256 | manual | 0 |
| New message in channel (polling) | new_message | poll | {{ item.ts }} | | | 0 |
Starts the workflow for Events API deliveries (messages, mentions, reactions, channel and member changes). Paste the node’s webhook URL as the Request URL under Event Subscriptions in the Slack app settings and subscribe to the events you need there. Requests are verified with the app’s signing secret.
| Name | Type | Default | Required | Shown when | Description |
events | multi_options | ["any"] | | | Event types to accept. Message subtypes such as bot_message or file_share are matched too. 16 values, listed below. |
channel | resource_locator | | | | Only events in this channel. Leave empty for the whole workspace. Values from lookup channels. |
ignore_retries | boolean | false | | | Acknowledge Slack’s redelivery attempts without starting the workflow again. |
| Value | Label |
any | Any event |
message | New message |
app_mention | Bot mentioned |
bot_message | Message posted by a bot |
file_share | Message with a file |
reaction_added | Reaction added |
reaction_removed | Reaction removed |
channel_created | Channel created |
channel_archive | Channel archived |
member_joined_channel | User joined a channel |
member_left_channel | User left a channel |
team_join | New workspace member |
file_shared | File shared |
file_public | File made public |
pin_added | Message pinned |
app_home_opened | App home opened |
Starts the workflow when a user clicks a button, picks a menu option, submits a modal or runs a shortcut. Paste the node’s webhook URL as the Request URL under Interactivity & Shortcuts in the Slack app settings.
| Name | Type | Default | Required | Shown when | Description |
types | multi_options | ["any"] | | | One of any, block_actions, view_submission, view_closed, shortcut, message_action. |
action_id | string | | | | Only block actions with this action_id. |
callback_id | string | | | | Only shortcuts or modals with this callback_id. |
Starts the workflow when a user runs a slash command. Set the command’s Request URL to the node’s webhook URL. Slack shows nothing back unless the workflow replies through the response_url in the output.
| Name | Type | Default | Required | Shown when | Description |
command | string | | | | Only this command. Leave empty to accept every command sent to this URL. |
Checks a channel for new messages on the poll schedule. Works without a public URL.
| Name | Type | Default | Required | Shown when | Description |
channel | resource_locator | | yes | | Values from lookup channels. |
include_bots | boolean | true | | | Also emit messages posted by bots and apps. |
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
n8n-nodes-base.slack | 1 | unverified | |
n8n-nodes-base.slack | >=2 <3 | unverified | |
n8n-nodes-base.slackTrigger | 1 | unverified | |
Written from the vendor’s documentation: