Error to Slack (Stage)
AI-generatedSummary
Send error notifications to Slack using a configurable bot token, channel, and formatting options.
Inputs
- slackToken (required) — Slack Bot User OAuth Token (xoxb-...). Create an app, add chat:write scope, install to workspace.
- channel (required) — Channel ID (e.g. C01234ABCD) or channel name (e.g. #alerts). Bot must be in the channel.
- formatMode — How to build the Slack message from incoming items.
- messagePrefix — Optional prefix for each message (e.g. emoji or label).
- errorField — JSON key containing the error text (default: error). Use "error" for Trigger Error output.
- botIdField — JSON key containing the bot ID (default: botId). Use "botId" for Trigger Error output.
Output shape
array of items; each item contains a json property with the processed payload and flags _slackSent (boolean) indicating success, and optionally _slackError on failure
If
continueOnFailis enabled, failed posts are marked with_slackErrorand the workflow continues; otherwise errors propagate.
Examples
Example 1: Simple error message to #alerts
Slack token, channel '#alerts', formatMode 'simple', using default errorField and botIdField.
Example 2: Structured JSON error with custom prefix
Set Slack token, channel, formatMode 'structured', add a Message Prefix, optionally adjust errorField and botIdField.
Example 3: Continue on failure and mark items
Enable continueOnFail (by default), allowing failed Slack posts to be recorded with _slackError while processing remaining items.