Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Slack

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

Authentication

MethodCredential kindAuth kindFieldsTest request
Bot or user tokenslack/bot_tokenbearertoken (secret), signing_secret (secret)yes
OAuth2 (install a Slack app)slack/oauth2oauth2_auth_codeclient_id, client_secret (secret), signing_secret (secret)yes

Actions

Node type connector.slack. Choose a resource and an operation; each operation has its own parameters.

Message

OperationIDEffectPaginatedCassette tests
Send a messagemessage.postwrites3
Send an ephemeral messagemessage.post_ephemeralwrites1
Update a messagemessage.updatewrites1
Delete a messagemessage.deletewrites1
Get a message permalinkmessage.get_permalinkreads1
Schedule a messagemessage.schedulewrites1
Search messagesmessage.searchreadsyes1

Send a message

Operation message.post. Posts a message to a channel, private group, DM or thread.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesChannel, DM or user ID. A user ID opens a DM with that user. Values from lookup channels.
textstringMessage text (mrkdwn). Used as the notification fallback when blocks are given.
blocksjsonBlock Kit blocks as a JSON array (an object with a blocks key, as Block Kit Builder exports it, is accepted too).
attachmentsjsonLegacy secondary attachments as a JSON array.
thread_tsstringTimestamp of the parent message to reply in its thread.
reply_broadcastbooleanfalseAlso show the thread reply in the channel.
mrkdwnbooleantrue
unfurl_linksboolean
unfurl_mediaboolean
link_namesboolean
usernamestringCustom bot name (needs chat:write.customize).
icon_emojistring
icon_urlstring
metadatajsonMessage metadata object ({ event_type, event_payload }).

Send an ephemeral message

Operation message.post_ephemeral. Shows a message only to one user in a channel.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
userresource_locatoryesUser who will see the message. Values from lookup users.
textstring
blocksjson
thread_tsstring

Update a message

Operation message.update.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyesTimestamp of the message to change.
textstring
blocksjson
attachmentsjson
link_namesboolean
reply_broadcastboolean

Delete a message

Operation message.delete.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyes

Operation message.get_permalink.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyes

Schedule a message

Operation message.schedule.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
post_atnumberyesUnix timestamp (seconds) when the message is sent.
textstring
blocksjson
thread_tsstring

Search messages

Operation message.search. Searches messages in the workspace. Needs a user token with the search:read scope.

NameTypeDefaultRequiredShown whenDescription
querystringyes
sortoptions"score"One of score, timestamp.
sort_diroptions"desc"One of asc, desc.
return_allbooleanfalse
limitnumber50return_all = false

Channel

OperationIDEffectPaginatedCassette tests
List channelschannel.listreadsyes2
Get a channelchannel.getreads2
Create a channelchannel.createwrites1
Archive a channelchannel.archivewrites1
Unarchive a channelchannel.unarchivewrites1
Rename a channelchannel.renamewrites1
Set the channel topicchannel.set_topicwrites1
Set the channel descriptionchannel.set_purposewrites1
Invite users to a channelchannel.invitewrites1
Remove a user from a channelchannel.kickwrites1
Join a channelchannel.joinwrites1
Leave a channelchannel.leavewrites1
Open a direct messagechannel.openwrites1
Close a direct messagechannel.closewrites1
Get channel historychannel.historyreadsyes1
Get thread replieschannel.repliesreadsyes1
List channel memberschannel.membersreadsyes1

List channels

Operation channel.list.

NameTypeDefaultRequiredShown whenDescription
typesmulti_options["public_channel"]One of public_channel, private_channel, mpim, im.
exclude_archivedbooleantrue
return_allbooleanfalse
limitnumber50return_all = false

Get a channel

Operation channel.get.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
include_num_membersbooleanfalse

Create a channel

Operation channel.create.

NameTypeDefaultRequiredShown whenDescription
namestringyesLowercase, no spaces or periods, at most 80 characters.
visibilityoptions"public"One of public, private.
team_idstringWorkspace ID (only for org-wide apps).

Archive a channel

Operation channel.archive.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.

Unarchive a channel

Operation channel.unarchive.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.

Rename a channel

Operation channel.rename.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
namestringyes

Set the channel topic

Operation channel.set_topic.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
topicstringyes

Set the channel description

Operation channel.set_purpose.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
purposestringyes

Invite users to a channel

Operation channel.invite.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
usersmulti_optionsyesUser IDs to add (up to 1000). Values from lookup users.

Remove a user from a channel

Operation channel.kick.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
userresource_locatoryesValues from lookup users.

Join a channel

Operation channel.join.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.

Leave a channel

Operation channel.leave.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.

Open a direct message

Operation channel.open. Opens (or resumes) a DM or multi-person DM and returns its channel.

NameTypeDefaultRequiredShown whenDescription
usersmulti_optionsyesOne user for a DM, or 2 to 8 users for a group DM. Values from lookup users.

Close a direct message

Operation channel.close.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.

Get channel history

Operation channel.history. Lists messages in a channel, newest first.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
oldeststringOnly messages after this timestamp (Unix seconds or message ts).
lateststringOnly messages before this timestamp.
inclusivebooleanfalse
return_allbooleanfalse
limitnumber50return_all = false

Get thread replies

Operation channel.replies.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyesTimestamp of the thread’s parent message.
oldeststring
lateststring
return_allbooleanfalse
limitnumber50return_all = false

List channel members

Operation channel.members.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
return_allbooleanfalse
limitnumber50return_all = false

File

OperationIDEffectPaginatedCassette tests
Upload a filefile.uploadwrites2
Get file detailsfile.getreads1
Download a filefile.downloadreads1
List filesfile.listreadsyes1
Delete a filefile.deletewrites1

Upload a file

Operation file.upload. Uploads binary data with Slack’s external upload flow and optionally shares it in a channel or thread.

NameTypeDefaultRequiredShown whenDescription
binary_propertybinary_property"data"yes
file_namestringDefaults to the binary file name.
titlestring
channelresource_locatorChannel to share the file in. Leave empty to keep it private. Values from lookup channels.
thread_tsstringShare as a reply in this thread.
initial_commentstringMessage text posted with the file.
alt_textstringImage description for screen readers.
snippet_typestringSyntax type for text snippets, for example python.

Get file details

Operation file.get.

NameTypeDefaultRequiredShown whenDescription
filestringyesFile ID (F…).

Download a file

Operation file.download. Fetches the file details and stores the file content as binary data.

NameTypeDefaultRequiredShown whenDescription
filestringyesFile ID (F…).
binary_propertystring"data"Binary property to write the file to.

List files

Operation file.list.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatorOnly files shared in this channel. Values from lookup channels.
userresource_locatorOnly files created by this user. Values from lookup users.
typesmulti_optionsOne of all, spaces, snippets, images, gdocs, zips, pdfs.
ts_fromstringOnly files created after this Unix timestamp.
ts_tostringOnly files created before this Unix timestamp.
show_files_hidden_by_limitbooleanfalse
return_allbooleanfalse
limitnumber50return_all = false

Delete a file

Operation file.delete.

NameTypeDefaultRequiredShown whenDescription
filestringyes

Reaction

OperationIDEffectPaginatedCassette tests
Add a reactionreaction.addwrites1
Remove a reactionreaction.removewrites1
Get reactions of a messagereaction.getreads1

Add a reaction

Operation reaction.add.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyesTimestamp of the message.
namestringyesEmoji name without colons, for example thumbsup.

Remove a reaction

Operation reaction.remove.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyes
namestringyes

Get reactions of a message

Operation reaction.get.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyes
fullbooleantrueReturn the complete list of users per reaction.

Pin

OperationIDEffectPaginatedCassette tests
Pin a messagepin.addwrites1
Unpin a messagepin.removewrites1
List pinned itemspin.listreads1

Pin a message

Operation pin.add.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyes

Unpin a message

Operation pin.remove.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
tsstringyes

List pinned items

Operation pin.list.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.

User

OperationIDEffectPaginatedCassette tests
Get a useruser.getreads2
List usersuser.listreadsyes1
Find a user by emailuser.lookup_by_emailreads2
Get a user’s presenceuser.get_presencereads1
Get a user’s profileuser.get_profilereads1
Update a user’s profileuser.update_profilewrites1

Get a user

Operation user.get.

NameTypeDefaultRequiredShown whenDescription
userresource_locatoryesValues from lookup users.
include_localebooleanfalse

List users

Operation user.list.

NameTypeDefaultRequiredShown whenDescription
include_localebooleanfalse
return_allbooleanfalse
limitnumber50return_all = false

Find a user by email

Operation user.lookup_by_email.

NameTypeDefaultRequiredShown whenDescription
emailstringyes

Get a user’s presence

Operation user.get_presence.

NameTypeDefaultRequiredShown whenDescription
userresource_locatoryesValues from lookup users.

Get a user’s profile

Operation user.get_profile.

NameTypeDefaultRequiredShown whenDescription
userresource_locatorLeave empty for the token’s own user. Values from lookup users.
include_labelsbooleanfalse

Update a user’s profile

Operation user.update_profile. Changes profile fields. Needs a user token with users.profile:write.

NameTypeDefaultRequiredShown whenDescription
userresource_locatorLeave empty for the token’s own user (other users need an admin token). Values from lookup users.
first_namestring
last_namestring
display_namestring
titlestring
phonestring
emailstring
pronounsstring
status_textstring
status_emojistring
status_expirationnumberUnix timestamp when the status clears (0 = never).
fieldsjsonCustom profile fields as an object keyed by field ID: { “Xf123”: { “value”: “…” } }.

User group

OperationIDEffectPaginatedCassette tests
List user groupsuser_group.listreads1
Create a user groupuser_group.createwrites1
Update a user groupuser_group.updatewrites1
Set the members of a user groupuser_group.update_userswrites1
Disable a user groupuser_group.disablewrites1
Enable a user groupuser_group.enablewrites1

List user groups

Operation user_group.list.

NameTypeDefaultRequiredShown whenDescription
include_disabledbooleanfalse
include_countbooleanfalse
include_usersbooleanfalse

Create a user group

Operation user_group.create.

NameTypeDefaultRequiredShown whenDescription
namestringyes
handlestringMention handle without the @.
descriptionstring
channelsmulti_optionsDefault channels for the group. Values from lookup channels.
include_countbooleanfalse

Update a user group

Operation user_group.update.

NameTypeDefaultRequiredShown whenDescription
user_groupresource_locatoryesValues from lookup user_groups.
namestring
handlestring
descriptionstring
channelsmulti_optionsValues from lookup channels.

Set the members of a user group

Operation user_group.update_users.

NameTypeDefaultRequiredShown whenDescription
user_groupresource_locatoryesValues from lookup user_groups.
usersmulti_optionsyesThe complete new member list. Values from lookup users.

Disable a user group

Operation user_group.disable.

NameTypeDefaultRequiredShown whenDescription
user_groupresource_locatoryesValues from lookup user_groups.

Enable a user group

Operation user_group.enable.

NameTypeDefaultRequiredShown whenDescription
user_groupresource_locatoryesValues from lookup user_groups.

Lookups

Lookups fill dropdowns and resource pickers in the editor from the vendor API.

LookupDepends onSearchDescription
channelsclient-side{{ item.purpose.value if item.purpose else ‘’ }}
usersclient-side@{{ item.name }}
user_groupsclient-side@{{ item.handle }}

Triggers

Node type connector.slack_trigger.

TriggerIDKindDeduplication keySignatureWebhook registrationCassette tests
Workspace eventeventswebhookhmac_sha256manual0
Interaction (buttons, menus, modals, shortcuts)interactionwebhookhmac_sha256manual0
Slash commandslash_commandwebhookhmac_sha256manual0
New message in channel (polling)new_messagepoll{{ item.ts }}0

Trigger: Workspace event

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.

NameTypeDefaultRequiredShown whenDescription
eventsmulti_options["any"]Event types to accept. Message subtypes such as bot_message or file_share are matched too. 16 values, listed below.
channelresource_locatorOnly events in this channel. Leave empty for the whole workspace. Values from lookup channels.
ignore_retriesbooleanfalseAcknowledge Slack’s redelivery attempts without starting the workflow again.

Values of events

ValueLabel
anyAny event
messageNew message
app_mentionBot mentioned
bot_messageMessage posted by a bot
file_shareMessage with a file
reaction_addedReaction added
reaction_removedReaction removed
channel_createdChannel created
channel_archiveChannel archived
member_joined_channelUser joined a channel
member_left_channelUser left a channel
team_joinNew workspace member
file_sharedFile shared
file_publicFile made public
pin_addedMessage pinned
app_home_openedApp home opened

Trigger: Interaction (buttons, menus, modals, shortcuts)

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.

NameTypeDefaultRequiredShown whenDescription
typesmulti_options["any"]One of any, block_actions, view_submission, view_closed, shortcut, message_action.
action_idstringOnly block actions with this action_id.
callback_idstringOnly shortcuts or modals with this callback_id.

Trigger: Slash command

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.

NameTypeDefaultRequiredShown whenDescription
commandstringOnly this command. Leave empty to accept every command sent to this URL.

Trigger: New message in channel (polling)

Checks a channel for new messages on the poll schedule. Works without a public URL.

NameTypeDefaultRequiredShown whenDescription
channelresource_locatoryesValues from lookup channels.
include_botsbooleantrueAlso emit messages posted by bots and apps.

Import

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 typeVersion rangeStatusFixtures
n8n-nodes-base.slack1unverified
n8n-nodes-base.slack>=2 <3unverified
n8n-nodes-base.slackTrigger1unverified

Provenance

Written from the vendor’s documentation: