Slack

output.slack Output v0.1.0

Sends a Slack message (text or Block Kit blocks) to a channel via chat.postMessage with a bot token. Leave the text blank to send the input payload as pretty-printed JSON.

Ports

DirectionPortLabel
InputinputPayload
OutputoutputSend result

Properties

PropertyTypeDefaultDescription
Credential
credentialId
credential "" Use a stored credential for this connection — its fields are filled in at run start. Pick "None" to enter the connection details manually.
accepts credential templates: slack-bot
Bot token
token
string "" Slack bot token — use ${credential.slack-bot.botToken}. Empty is allowed here; it must resolve by run time.
Channel
channel
string "" Channel ID (C…) or #name to post into.
Message
messageMode
select "text" Plain text, or Block Kit blocks.
textblocks
Text
text
string "" Message text. Leave blank to send the input payload as pretty-printed JSON.
Shown when (messageMode ?? "text") === "text"
Blocks
blocks
json [] Block Kit blocks as a JSON array.
Shown when messageMode === "blocks"
Thread ts field
threadTsField
string "" Dot-path to a thread timestamp on the input — when set, the message is posted as a thread reply.
Base URL
baseUrl
string "https://slack.com/api" Slack API base URL (override for testing).
Timeout (ms)
timeoutMs
int 15000 Abort the request after this many milliseconds.

This page is generated from the node registry by gen-node-docs.mjs on every site build — ports, properties, defaults and visibility rules cannot drift from the code.