ComponentsActions

Slack

Post and manage Slack messages, channels, reactions, and users from inside an agent workflow.

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

GroupActions
MessagePost, Update, Delete, Search
ChannelCreate, Get, Get All
ReactionAdd
UserInfo, Get All

Prerequisites

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.

InputRequiredDescription
ChannelYesThe channel, group, or user ID to post to.
TextYesThe message text. Supports Slack mrkdwn formatting.
Thread TimestampNoThe timestamp of a parent message to reply to.
Reply BroadcastNoToggle. When on, also posts a threaded reply to the channel. Defaults to off.
Unfurl LinksNoToggle. Whether to show previews for links. Defaults to on.
Unfurl MediaNoToggle. Whether to show previews for media. Defaults to on.

Slack Message Update

Updates an existing message.

InputRequiredDescription
ChannelYesThe channel, group, or user ID the message is in.
TimestampYesThe timestamp of the message to update.
TextYesThe new message text.

Slack Message Delete

Deletes a message.

InputRequiredDescription
ChannelYesThe channel, group, or user ID the message is in.
TimestampYesThe timestamp of the message to delete.

Searches for messages across the workspace.

InputRequiredDescription
QueryYesThe search query. Supports modifiers like from:, in:, and has:.
Sort DirectionNoSort order, either asc or desc. Defaults to desc.
CountNoMaximum number of results to return, from 1 to 100. Defaults to 20.

Channel

Slack Channel Create

Creates a new channel.

InputRequiredDescription
NameYesThe channel name. Lowercase, no spaces, up to 80 characters.
Is PrivateNoToggle. When on, creates a private channel. Defaults to off.

Slack Channel Get

Retrieves a single channel.

InputRequiredDescription
Channel IDYesThe unique identifier of the channel to retrieve.

Slack Channel Get All

Lists channels in the workspace.

InputRequiredDescription
Exclude ArchivedNoToggle. When on, omits archived channels. Defaults to off.
LimitNoMaximum number of channels to return, from 1 to 1000. Defaults to 100.
TypesNoComma separated list of channel types to include. One or more of public_channel, private_channel, mpim, and im.

Reaction

Slack Reaction Add

Adds an emoji reaction to a message.

InputRequiredDescription
ChannelYesThe channel, group, or user ID the message is in.
TimestampYesThe timestamp of the message to react to.
NameYesThe emoji name without colons, for example thumbsup.

User

Slack User Info

Retrieves a single user.

InputRequiredDescription
User IDYesThe unique identifier of the user to retrieve.

Slack User Get All

Lists the users in the workspace.

InputRequiredDescription
LimitNoMaximum number of users per page, from 1 to 1000. Defaults to 100.

Example

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

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

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.

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

For issues common to every vendor, see the Actions overview.

Was this page helpful?

On this page