Coordinate outage incident response with Postgres, Slack, and email
Ready for 3.0What this workflow does
This workflow has 50 nodes and runs manually, when you click “Execute workflow” (plus 4 other triggers). Along the way it connects Postgres. It also calls slack.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 4 other triggers).
- Postgres: run a query
- Set Continuity Config (Edit Fields (Set)): sets 15 fields: publicWebhookBase, fromEmail, defaultChannelId…
- Switch: routes items into 4 branches
- Code: runs custom JavaScript code
- Code: runs custom JavaScript code
- Code: runs custom JavaScript code
- Postgres: run a query
- Switch: routes items into 3 branches
- Postgres: run a query
- Postgres: run a query
…plus 35 more steps. See the full node list below.
Services it uses
Other PostgreSQL + Slack templates (109)
HTTP calls to: slack.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Postgres
n8n-nodes-base.postgres - Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow turns monitoring alerts into coordinated incident response by tracking incidents in Postgres, creating Slack war-room channels, paging responders via email, escalating if nobody acknowledges, sending periodic status updates, and…