Automated Slack Alerts for n8n Workflow Failures
detail.loadingPreview
Proactively manage your n8n workflows with this automated solution that sends instant Slack notifications whenever a workflow fails. Stay informed and quickly resolve issues to minimize downtime.
About This Workflow
This n8n workflow snippet provides an essential layer of error handling and monitoring for your automated processes. It leverages the On Error trigger to detect workflow failures, the Set message node to construct a detailed alert message including the workflow name, execution URL, and the specific error details, and finally, the Slack node to push this crucial information directly to a designated Slack channel (#alerts-n8n-workflows). This ensures your team is immediately aware of any disruptions, enabling rapid response and mitigation to maintain operational continuity.
Key Features
- Instant Failure Notifications: Receive immediate alerts on Slack the moment a workflow encounters an error.
- Detailed Error Reporting: Get comprehensive information about the failed workflow, including its name, a direct link to the execution, and the specific error message from the node.
- Customizable Alerts: Easily adjust the alert message content to include additional relevant context or team-specific information.
- Simplified Setup: Integrates seamlessly with existing n8n workflows and requires minimal configuration.
How To Use
- Integrate Error Handling: Add the
On Errortrigger node to your existing n8n workflows. Configure it to capture workflow execution errors. - Set Up Alert Message: Connect the
On Errornode to aSetnode. Configure theSetnode'svaluesto create a custom alert message using placeholders like{{$json["workflow"]["name"]}},{{ $json.execution.url }}, and{{ $json.execution.error.message }}. - Configure Slack Notification: Connect the
Setnode to aSlacknode. Ensure you have your Slack credentials set up (e.g., 'Cloudbot bot token'). Specify the target channel (e.g.,#alerts-n8n-workflows) and map the alert message from theSetnode to thetextparameter in the Slack node. - Add to Workflows: Copy and paste this workflow snippet into your n8n instance and link it to the error output of your critical workflows.
Apps Used
Workflow JSON
{
"id": "b964f7a5-3dec-41c6-9e82-b87a37cf727c",
"name": "Automated Slack Alerts for n8n Workflow Failures",
"nodes": 19,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: b964f7a5-3dec...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.