Automated Workflow Error Notifications via Gmail
detail.loadingPreview
Get instant Gmail alerts for n8n workflow execution and trigger errors. Includes detailed error logs for quick debugging.
🚀Ready to Deploy This Workflow?
🚀 Run Without Servers
Too complicated to set up? Run this workflow instantly on AIWord.
Run on AIWord Cloud ☁️About This Workflow
How it works
This n8n workflow is designed to proactively notify you of any errors that occur within your other n8n workflows. It's triggered by the Error Trigger node, which catches both execution-time errors and trigger-level failures.
- Error Trigger: This node initiates the error handling process when an error is detected in a connected workflow.
- Config: Sets up essential configuration variables such as your n8n app URL, the recipient email address for notifications, and a sender name.
- Constants: Derives crucial URLs for the failed workflow and the error handling workflow, and determines if the error is an execution or trigger error.
- If: This conditional node branches the logic based on whether the error is an execution error (
$json.workflow.isExecutionErroris true) or a trigger error. - HTML for Execution Error: If it's an execution error, this node generates detailed HTML content including execution ID, retry information, last executed node, error message, and the full stack trace.
- HTML for Trigger Error: If it's a trigger error, this node generates HTML with details about the trigger failure, including mode, error message, timestamp, name, description, context, and cause details.
- KeepEitherOfHTMLs: This
Mergenode consolidates the HTML content generated by either the execution error node or the trigger error node, ensuring only relevant error details are passed forward. - Merge: This node merges the consolidated HTML content with other data, preparing it for the email.
- Gmail: Finally, the
Gmailnode sends a formatted email containing all collected error details, including links to the workflows and comprehensive error logs, to the specified recipient.
Key Features
- Proactive email notifications for workflow errors.
- Handles both execution and trigger-level errors.
- Generates detailed error logs including stack traces.
- Includes links to the failed and error handling workflows.
- Customizable recipient email and sender name.
How To Use
- Copy Workflow: Add this workflow to your n8n workspace. Consider placing it within the same project as your main workflows for organization.
- Configure Error Workflow Settings: In the settings of this error handling workflow, set This workflow can be called by to an appropriate level (e.g., 'All Workflows' or specific workflows).
- Configure
ConfigNode: In theConfignode (position 120, 180), update the following:config.appUrl: Set to your n8n application's base URL (e.g.,https://YourAccountName.app.n8n.cloud/).config.emailing.sendTo: Enter the email address that should receive error notifications.config.emailing.senderName: Define the name that will appear as the sender of the notification emails.
- Setup Gmail Credentials: In the
Gmailnode (position 1360, 160), configure and select your Gmail credentials. - Link in Main Workflows: In your primary workflows, navigate to their settings and set the Error Workflow field to this newly added error handling workflow. (How to...)
Credentials Required: Gmail OAuth2 credentials.
Apps Used
Workflow JSON
{
"id": "34b1f7e4-60d1-47ca-9a28-0f53e4f1ac0e",
"name": "Automated Workflow Error Notifications via Gmail",
"nodes": 0,
"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.
🚀 Run Without Servers
Use our managed AI Automation Cloud. No DevOps, no errors. Start for free.
- Anti-detect Browser
- Managed Proxies
- 24/7 Uptime
Get This Workflow
ID: 34b1f7e4-60d1...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Integrations
- Gmail + Schedule Trigger(270 workflows)
- Gmail + Google Sheets(245 workflows)
- Execute Workflow Trigger + Split Out(193 workflows)
- Gmail + Split Out(132 workflows)
- Gmail + Gmail Trigger(119 workflows)
- Form Trigger + Gmail(107 workflows)
- Execute Workflow Trigger + Google Sheets(101 workflows)
- Gmail + Google Drive(93 workflows)
- Execute Workflow Trigger + Google Drive(73 workflows)
- Execute Workflow Trigger + Schedule Trigger(73 workflows)
Related Workflows
Discover more workflows you might like
n8n Error Alerting to LINE: Never Miss a Workflow Failure Again
Instantly get notified on LINE whenever an n8n workflow encounters an error. This template ensures you're always aware of issues, allowing for prompt resolution and uninterrupted automation.
Instant n8n Workflow Error Alerts via WhatsApp
Get instant WhatsApp notifications whenever one of your n8n workflows encounters an error. This dedicated error workflow ensures you're immediately aware of issues, providing crucial details directly to your phone to facilitate rapid response and minimize downtime.
Robust Error Logging and Intelligent Alerting
Proactively manage workflow errors by logging them to a database and intelligently rate-limiting notifications. This ensures you're informed without being overwhelmed by excessive alerts.
Automate Claude API Calls with Batch Processing
Streamline your AI interactions with Claude by leveraging n8n for efficient batch prompt submission. This workflow automates sending multiple prompts simultaneously and retrieving their results, saving you time and resources.
Automate N8N Workflow Backups to Nextcloud
Ensure the safety of your N8N automation workflows by automatically backing them up to your Nextcloud storage. This template provides a robust solution for versioned backups and automated cleanup of old backups.
Automate Secure API Access with Dynamic Token Management
Streamline your API integrations by automatically managing and refreshing access tokens. This workflow ensures your applications always have valid credentials, preventing service interruptions.