Skip to content

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
channeltextRequiredChannel 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.
texttextOptionalThe message text. When blocks are included, Slack uses this as fallback text for notifications and accessibility. Keep under 4,000 characters.
blocksarray of objectOptionalSlack 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).
attachmentsarray of objectOptionalLegacy Slack attachment objects. Each attachment may include fallback, text, pretext, color, title, title_link, image_url, thumb_url, footer, footer_icon, and ts.
thread_tstextOptionalProvide a parent message ts value to post this message as a thread reply.
reply_broadcastyes/noOptionalUse with thread_ts to also broadcast a thread reply to the whole channel. Defaults to false.
usernametextOptionalSet the username shown on the message (requires chat:write.customize).
icon_emojitextOptionalEmoji to use as the icon for this message (requires chat:write.customize).
icon_urltextOptionalURL to an image used as the icon for this message (requires chat:write.customize).
mrkdwnyes/noOptionalWhether Slack should apply mrkdwn formatting to the message text. Enabled by default.
markdown_texttextOptionalMessage text formatted in markdown. Cannot be combined with text or blocks. Limited to 12,000 characters.
parseselectOptionalControls Slack message parsing. none removes automatic hyperlinking; full ignores mrkdwn formatting. (options: None, Full)
link_namesyes/noOptionalFind and link user groups in message text.
unfurl_linksyes/noOptionalSet to false to suppress Slack's automatic unfurling of links in the message.
unfurl_mediayes/noOptionalSet to false to suppress Slack's automatic unfurling of media content.
as_useryes/noOptionalLegacy parameter documented by Slack as classic-app-only behavior for message authorship.
metadataobjectOptionalMessage 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_typetextOptionalA short machine-readable event type, e.g. 'task_created'.
event_payloadobjectOptionalStructured payload for the event.
idtextOptionalEntity id (e.g., task id).
titletextOptionalShort title or summary for the entity.

Outputs

Name Type Description
okyes/noIndicates whether the Slack request succeeded.
channeltextThe channel-like identifier where the message was posted.
tstextThe Slack timestamp ID of the posted message (use as thread_ts to reply).
messageobjectPartial Slack message object returned by chat.postMessage. Includes text, username, bot_id, type, subtype, ts, and an attachments array of returned Slack attachment objects.
texttextThe message text.
usernametextUsername of the sender when available.
bot_idtextBot ID when the message originates from a bot.
typetextMessage type.
subtypetextMessage subtype.
tstextMessage timestamp inside the returned message object.
thread_tstextThe Slack thread timestamp if this message is a thread reply.
errortextSlack error code when ok is false, for example too_many_attachments.
warningtextSlack warning text if present.
failuretextHuman-readable failure message when send fails.
failureReasontextMachine-readable failure reason or Slack error code.
response_metadataobjectSlack response metadata: warnings, messages, next_cursor (pagination), and fileUploadFailures.
tenantIntegrationIdtextThe integration used to execute this action.