Communication & MessagingComplex WorkflowManual Triggered
Integrations:
ErrorTriggerLangChainSticky NoteN8nGmail
Target Audience
Target Audience
- n8n Users: Individuals using n8n for automation who encounter errors in their workflows. - Developers: Developers looking for a way to automatically diagnose and summarize errors in their n8n workflows. - Project Managers: Managers who need to keep track of workflow errors and resolutions without manual intervention. - Technical Support Teams: Teams responsible for troubleshooting issues in automated workflows and need structured error reporting.
Problem Solved
Problem Solved
This workflow addresses the challenge of automatically diagnosing errors that occur in n8n workflows. It provides a structured report that includes: - Diagnosis of the error. - Cause of the error. - Resolution steps to fix the issue. This automation reduces the time spent on troubleshooting and enhances the efficiency of handling errors, ensuring that workflows can be restored quickly.
Workflow Steps
Workflow Steps
1. Error Trigger: The workflow is manually triggered whenever an error occurs in an n8n workflow. 2. Get Failed Execution: It retrieves details about the failed execution, including metadata like execution ID and workflow name. 3. Extract Error Details: A custom code node extracts relevant error information, filtering out any irrelevant nodes. 4. Error Solver Agent: Utilizes OpenAI's language model to analyze the extracted error details and generate a diagnosis, cause, and resolution. 5. Set Diagnosis Fields: The results from the error solver are structured and assigned to specific fields for clarity. 6. Generate Email: Constructs an HTML email report containing all the error details, formatted for readability. 7. Send Gmail: Finally, the workflow sends the generated report to specified email addresses, ensuring stakeholders are informed.
Customization Guide
Customization Guide
- Email Addresses: Update the 'SET EMAIL' node to change the recipient email addresses for notifications. - Error Messages: Modify the JavaScript code in 'Extract Error Details' to adjust how error details are processed or what specific information is included. - OpenAI Model: Change the OpenAI model settings in 'OpenAI Chat Model' to utilize different models or parameters based on your needs. - Styling of Email: Adjust the HTML template in the 'Generate Email' node to change the visual layout or styling of the error report email. - Trigger Conditions: Customize the conditions in the 'Remove Manual Exec' node to control when the workflow should run based on specific execution modes.