Post Message
slack.post_message
ActionChat & messagingconnection required
Calls Slack's chat.postMessage with the connection's bot token.
Send a message to a Slack channel or user via a bot token.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Slack
- Secret shape
- the bot token (xoxb-…), or {"token": "xoxb-…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
channel Channel id, #name, or a user id for a DM. | string | Yes | — | — | — |
text Message text. Supports {{ }} expressions. | string | Yes | — | — | — |
thread_ts Reply in this thread (a prior message ts). | string | No | — | — | — |
blocks Optional Block Kit blocks. | array | No | — | array of object | — |
Output
One shape.
posted
| Field | Type | Example |
|---|---|---|
ok | boolean | true |
channel Channel the message landed in. | string | — |
ts Message timestamp — use it as thread_ts to reply. | string | — |
{
"channel": "",
"ok": true,
"ts": ""
}Notes
- The bot must be a member of a private channel before it can post there (Slack error not_in_channel otherwise).
Templates that use Slack
See Post Message run in a workflow.
In a technical demo we add the Slack connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.