Post message
Post a message to a channel (or a user's DM), optionally as a thread reply.
Command in the Slack toolkit · id ooa.slack/post_message · 13 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Bot token | Credential | Yes | Slack bot token (xoxb-...) from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Channel | String | Yes | Channel id, a user id for a direct message, or a channel name such as #ops-alerts (looked up first). | |
| Text | String | Yes | Message text (Slack markdown). | |
| Thread ts | String | No | Reply in the thread of this message. | |
| Reply broadcast | Boolean | No | false | Thread replies only: also show the reply in the channel. |
| Blocks | Any | No | Block Kit layout: a List of blocks or its JSON text; the text is then the notification fallback. | |
| Unfurl links | Boolean | No | Show previews of linked pages; Slack decides when empty. | |
| Unfurl media | Boolean | No | Show previews of linked images and videos; Slack decides when empty. | |
| Mrkdwn | Boolean | No | true | Format the text as Slack markdown; false sends it as typed. |
| Username | String | No | Name shown as the sender (needs the chat:write.customize scope). | |
| Icon emoji | String | No | Emoji shown as the sender's picture (needs chat:write.customize). | |
| Files | List | No | Local files to share in the same conversation, right after the message. | |
| Endpoint address | String | No | https://slack.com/api | API endpoint; change only for testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| ts | String | Message timestamp id (use it to reply in a thread). |