Unitalk Slack icon

Unitalk Slack

Consume Slack API via Unitalk

Message → Send

AI-generated

Summary

Send a message to a specified Slack channel or user, supporting simple text, Blocks, or legacy attachments, with options for message formatting and delivery style.

Inputs

  • Send Message To (required) — Choose whether to send the message to a Slack channel or a user.
  • Channel (required) — Select the Slack channel to send the message to, by list selection, channel ID, name, or URL; shown only if sending to a channel.
  • User (required) — Select the Slack user to send the message to, by list selection, user ID, or username; shown only if sending to a user.
  • Message Type (required) — Choose the type of message: simple text, blocks (rich content using Slack's Block Kit), or attachments (legacy Slack message format).
  • Message Text (required) — The text content of the message, required if sending a simple text message.
  • Blocks (required) — The JSON string of Block Kit content to send if message type is blocks.
  • Attachments (required) — Collection of legacy attachments to include in the message if message type is attachments.
  • Notification Text — Fallback text shown in notifications when sending block messages.
  • Options — Additional settings such as customizing the bot profile photo, appending a link to the workflow, enabling link formatting, replying in a thread, sending ephemeral messages, specifying send-as username, and controlling link unfurling and markdown use.

Output shape

The response data for each input item includes details about the posted Slack message, such as message timestamp and channel info.

The operation processes all input items individually, sending messages accordingly. The output item for each input reflects the Slack API response for that message. Ephemeral messages and thread replies are supported. Blocks must be valid Slack Block Kit JSON. Attachments use Slack's legacy format, which is deprecated but still supported.

Examples

Example 1: Send a simple text message to a Slack channel with markdown formatting enabled.

Set 'Send Message To' to 'Channel', select the desired Slack channel, choose 'Simple Text Message' as the message type, then provide the message text.

Example 2: Send a rich message using Slack Blocks to a user, including a fallback notification text.

Set 'Send Message To' to 'User', select the user, set message type to 'Blocks', input the Blocks JSON, and provide notification text.

Example 3: Send an ephemeral message in a channel visible only to a particular user.

Set 'Send Message To' to 'Channel', choose the channel, enable 'Send as Ephemeral Message' and select the user to receive the ephemeral message.

Links

Discussion