Send Message
Slack
Slack
Send Message
Sends a Slack message with chat.postMessage. Use Upload File for file uploads.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
channel | text | Required | Channel ID or channel name for a channel, private group, MPIM, or IM. Passing a user ID opens or uses a DM/App Home conversation when Slack allows it. |
text | text | Optional | The message text. When blocks are included, Slack uses this as fallback text for notifications and accessibility. Keep under 4,000 characters. |
blocks | array of object | Optional | Slack Block Kit blocks for rich message formatting. Each block is a raw Block Kit object with fields such as type, block_id, a text object (type/text/emoji/verbatim), a fields array of text objects, and an elements array of interactive/rich-text elements (type, text, action_id, url, value). |
attachments | array of object | Optional | Legacy Slack attachment objects. Each attachment may include fallback, text, pretext, color, title, title_link, image_url, thumb_url, footer, footer_icon, and ts. |
thread_ts | text | Optional | Provide a parent message ts value to post this message as a thread reply. |
reply_broadcast | yes/no | Optional | Use with thread_ts to also broadcast a thread reply to the whole channel. Defaults to false. |
username | text | Optional | Set the username shown on the message (requires chat:write.customize). |
icon_emoji | text | Optional | Emoji to use as the icon for this message (requires chat:write.customize). |
icon_url | text | Optional | URL to an image used as the icon for this message (requires chat:write.customize). |
mrkdwn | yes/no | Optional | Whether Slack should apply mrkdwn formatting to the message text. Enabled by default. |
markdown_text | text | Optional | Message text formatted in markdown. Cannot be combined with text or blocks. Limited to 12,000 characters. |
parse | select | Optional | Controls Slack message parsing. none removes automatic hyperlinking; full ignores mrkdwn formatting. (options: None, Full) |
link_names | yes/no | Optional | Find and link user groups in message text. |
unfurl_links | yes/no | Optional | Set to false to suppress Slack's automatic unfurling of links in the message. |
unfurl_media | yes/no | Optional | Set to false to suppress Slack's automatic unfurling of media content. |
as_user | yes/no | Optional | Legacy parameter documented by Slack as classic-app-only behavior for message authorship. |
metadata | object | Optional | Message metadata visible to apps and users in the workspace. Contains event_type (machine-readable event name) and event_payload (structured payload, e.g. id and title). |
event_type | text | Optional | A short machine-readable event type, e.g. 'task_created'. |
event_payload | object | Optional | Structured payload for the event. |
id | text | Optional | Entity id (e.g., task id). |
title | text | Optional | Short title or summary for the entity. |
Outputs
| Name | Type | Description |
|---|---|---|
ok | yes/no | Indicates whether the Slack request succeeded. |
channel | text | The channel-like identifier where the message was posted. |
ts | text | The Slack timestamp ID of the posted message (use as thread_ts to reply). |
message | object | Partial Slack message object returned by chat.postMessage. Includes text, username, bot_id, type, subtype, ts, and an attachments array of returned Slack attachment objects. |
text | text | The message text. |
username | text | Username of the sender when available. |
bot_id | text | Bot ID when the message originates from a bot. |
type | text | Message type. |
subtype | text | Message subtype. |
ts | text | Message timestamp inside the returned message object. |
thread_ts | text | The Slack thread timestamp if this message is a thread reply. |
error | text | Slack error code when ok is false, for example too_many_attachments. |
warning | text | Slack warning text if present. |
failure | text | Human-readable failure message when send fails. |
failureReason | text | Machine-readable failure reason or Slack error code. |
response_metadata | object | Slack response metadata: warnings, messages, next_cursor (pagination), and fileUploadFailures. |
tenantIntegrationId | text | The integration used to execute this action. |