knoten / builtin / integration
Slack
Integrate with Slack to perform operations on channels, messages, users, and files.
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Post, read, edit and search Slack messages, look up channels and people, and share files, from a workflow.
What it does
Section titled “What it does”The Slack node works on four kinds of things (Resource), each with its own Operation:
- Channel: list the channels the token can see, or get one channel’s details.
- Message: send, read, update, delete or search messages.
- User: list workspace members, or get one person’s profile.
- File: upload a file to channels, or get a file’s details.
It cannot create or archive channels, or manage members.
Channel, User and Message fields are lists loaded from your workspace once a credential is set, so you can pick instead of typing ids. You can still type an id or use an expression.
When to use it
Section titled “When to use it”- Post an alert when something changes: a price drop, a new form entry, a failed run.
- Send a daily digest built by earlier nodes to a channel.
- Upload a screenshot or a generated file to a channel.
- Search past messages and pass them to an AI node.
Inputs and settings
Section titled “Inputs and settings”| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Credential (erforderlich) | Credential | The Credential to use to make the request. |
11 Auswahlmöglichkeiten · wählen Sie Resource and Operation, um die Einstellungen zu sehen
Einstellungen für Channel · Get many
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Limit | Number | Number of results to return (1-1000). Standard: 100 |
Einstellungen für Channel · Get info
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Channel (erforderlich) | Choice (loaded from your account) | The Slack channel to work with. |
Einstellungen für Message · Send
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Channel (erforderlich) | Choice (loaded from your account) | The Slack channel to work with. |
| Text (erforderlich) | Text | The message text. |
| Thread Timestamp | Text | The thread timestamp to reply to. |
| Blocks | List | Slack block elements for rich formatting. |
| Attachments | List | Message attachments. |
| Username | Text | Override the default username. |
| Icon Emoji | Text | Override the default icon with an emoji. |
Einstellungen für Message · Get
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Channel (erforderlich) | Choice (loaded from your account) | The Slack channel to work with. |
| Limit | Number | Number of results to return (1-1000). Standard: 100 |
Einstellungen für Message · Update
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Channel (erforderlich) | Choice (loaded from your account) | The Slack channel to work with. |
| Message (erforderlich) | Choice (loaded from your account) | The message ID to work with. |
| Text (erforderlich) | Text | The message text. |
| Blocks | List | Slack block elements for rich formatting. |
| Attachments | List | Message attachments. |
Einstellungen für Message · Delete
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Channel (erforderlich) | Choice (loaded from your account) | The Slack channel to work with. |
| Message (erforderlich) | Choice (loaded from your account) | The message ID to work with. |
Einstellungen für Message · Search
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Search Query (erforderlich) | Text | The search query for messages. |
| Limit | Number | Number of results to return (1-1000). Standard: 100 |
Einstellungen für User · Get many
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Limit | Number | Number of results to return (1-1000). Standard: 100 |
Einstellungen für User · Get info
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| User (erforderlich) | Choice (loaded from your account) | The Slack user to work with. |
Einstellungen für File · Upload
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| Binary source | Text | The logical $binary key on the incoming item to send as the file (defaults to 'data'). Fed automatically from an upstream node that produces a binary (e.g. HTTP Request, Screenshot). Standard: data |
| File | File | The file to upload. |
| Channels | List | Channels to share the file with. |
| Initial Comment | Text | Add a comment when uploading the file. |
| Thread Timestamp | Text | The thread timestamp to reply to. |
| File Title | Text | Override the file name. |
Einstellungen für File · Get
| Einstellung | Typ | Was es bewirkt |
|---|---|---|
| File ID (erforderlich) | Text | The ID of the file to retrieve. |
Einstellungen für Channel · Get many werden angezeigt
To reply in a thread, put the parent message’s timestamp in Thread Timestamp (Slack’s ts, for example 1712345678.123456). For File → Upload, the file comes from the incoming item’s $binary data (the key named in Binary source, data by default), as produced by Http Request, Screenshot Page or Convert to File.
Outputs
Section titled “Outputs”-
Output
Get many and Get (messages) return a list, one item per channel, user or message. Send returns the posted message, including its ts, which you can reuse to update, delete or reply to it. Search returns the matching messages.
Dependencies and credentials
Section titled “Dependencies and credentials”- Credential (connection, Bearer Token): required. See Connect Slack.
Use a Slack bot or user token. The token’s scopes decide what works: for example chat:write to send, channels:read to list channels, search:read (user token) to search, files:write to upload. See Create a credential.
Example workflow
Section titled “Example workflow”- A Schedule trigger runs every weekday at 9:00.
- RSS Feed Read and Limit pick the 3 newest posts.
- Aggregate puts them in one item.
- Slack, Message → Send, to
#news, with a Text listing the titles and links.
Common issues
Section titled “Common issues”- The run is blocked in the web app. Slack runs through the browser extension. Install the extension and allow Slack for this workflow when asked, or run the workflow from the extension.
- “missing_scope” or “not_allowed_token_type”. The token lacks the scope for this operation. Add the scope in your Slack app settings, reinstall the app to the workspace, and update the credential.
- “not_in_channel”. Invite the bot to the channel (
/invite @your-bot) before sending to it. - “Slack file upload: no binary found on the incoming item”. The previous node did not produce a file under the key in Binary source. Check the key, or add a node that produces a file.
- The channel list is empty. Set the credential first; the list loads from Slack with it.
Related nodes
Section titled “Related nodes”- Discord and Telegram: other chat apps.
- Push Notification: a message to your phone.
- Browser Notification: a desktop notification, no account needed.
- Http Request: call Slack API methods this node does not cover.