Schedule Message
slack.schedule_message
ActionChat & messagingconnection required
Calls the Slack Web API with the connection's bot token.
Queue a message to post at a future Unix timestamp, up to 120 days ahead.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Slack
- Secret shape
- the Slack bot token (xoxb-…), or {"token": "xoxb-…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
5 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 the message lives in (C…, or D… for a DM). Supports {{ }}. | string | Yes | — | — | — |
post_at When to post, as a Unix timestamp in seconds. Must be in the future. | number | Yes | — | ≥ 1 | — |
text Message text. Also the notification fallback when blocks are present. Supports {{ }}. | string | No | — | — | — |
blocks Block Kit blocks, as a JSON array. Slack renders these instead of text. | array | No | — | array of object | — |
thread_ts Post as a reply in this thread (the parent message's ts). | string | No | — | — | — |
- At least one of text, blocks must be set.
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok Always true; a failure raises instead. | boolean | true |
channel The channel the message is queued for. | string | — |
scheduled_message_id Slack's id for the queued message — pass it to slack.delete_scheduled_message. | string | — |
post_at The Unix timestamp the message will post at. | number | — |
{
"channel": "",
"ok": true,
"post_at": 0,
"scheduled_message_id": ""
}Notes
- The bot must be a member of a private channel before it can act there (Slack answers not_in_channel otherwise).
- Slack rate-limits each Web API method on its own tier; a throttled call fails with the number of seconds to wait and is safe for the node's retry policy to repeat.
- Slack refuses a post_at more than 120 days ahead, or in the past.
Templates that use Slack
See Schedule 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.