Skip to main content
Slack actions let an agent work with a workspace directly in a flow. An agent can post, update, delete, and search messages, manage channels, add reactions, and look up users, then pass the results to later steps.

Supported actions

Prerequisites

Store a Slack bot token (or a Slack OAuth connection) as a Slack credential in Credential Management, then select it on every Slack action. The Message Search action is the exception. It requires a credential backed by a Slack user token rather than a bot token, so store a separate user token credential for any flow that uses search.

How to use these actions

  • Map text inputs from earlier steps. Inputs such as Channel, Text, and Query accept a value mapped from a previous step.
  • Toggles and counts take fixed values. The Is Private, Exclude Archived, Reply Broadcast, Unfurl Links, and Unfurl Media toggles, along with Limit and Count, are set to fixed values.
  • Messages are addressed by channel and timestamp. To update, delete, or react to a message, supply its channel ID and its message Timestamp.
  • Reply in a thread. Set Thread Timestamp on Message Post to the timestamp of a parent message so the new message lands in that thread.
  • Search needs a user token. Message Search requires a credential backed by a Slack user token. The other actions use a bot token.
  • Reaction names omit colons. Use the emoji name without surrounding colons, for example thumbsup.

Actions

Message

Slack Message Post

Posts a message to a channel, group, or user.

Slack Message Update

Updates an existing message.

Slack Message Delete

Deletes a message. Searches for messages across the workspace.

Channel

Slack Channel Create

Creates a new channel.

Slack Channel Get

Retrieves a single channel.

Slack Channel Get All

Lists channels in the workspace.

Reaction

Slack Reaction Add

Adds an emoji reaction to a message.

User

Slack User Info

Retrieves a single user.

Slack User Get All

Lists the users in the workspace.

Example

An agent that posts an alert and confirms it in a thread:
1

Post the alert

A Slack Message Post action sets Channel to the alerts channel and maps Text to a summary built by an earlier model step.
2

Reply in the thread

A second Slack Message Post action sets Thread Timestamp to the timestamp returned by the first post, then adds follow up detail in that thread.
3

Acknowledge

A Slack Reaction Add action sets Channel and Timestamp to the original message and adds the eyes reaction to show the alert was seen.

Troubleshooting

The stored token is missing, expired, or revoked. Confirm the credential holds a valid bot token, or a user token for Message Search, and reconnect if needed.
The token lacks a required scope for the action, such as chat:write to post or search:read to search. Add the scope in your Slack app configuration and reinstall.
Message Search needs a credential backed by a user token, not a bot token. Confirm the search action uses the user token credential and that the query modifiers are valid.
The channel ID does not exist or the bot is not a member of it. Invite the bot to private channels before posting, and confirm the channel ID rather than the channel name.
For issues common to every vendor, see the Actions overview.