Last active
October 22, 2021 03:45
-
-
Save skanayi/f6fe4c992cff7c6f4655fd14911871fc to your computer and use it in GitHub Desktop.
error workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{ | |
"parameters": {}, | |
"name": "Start", | |
"type": "n8n-nodes-base.start", | |
"typeVersion": 1, | |
"position": [ | |
250, | |
300 | |
] | |
}, | |
{ | |
"parameters": { | |
"fromEmail": "devops@domain.com", | |
"toEmail": "sumesh@domain.com {{undefined}} {{$parameter[\"attachments\"]}}", | |
"subject": "workflow with name: {{$node[\"Error Trigger\"].json[\"workflow\"][\"name\"]}} failed to execute", | |
"text": "Your workflow with ID: {{$node[\"Error Trigger\"].json[\"workflow\"][\"id\"]}} and name: {{$node[\"Error Trigger\"].json[\"workflow\"][\"name\"]}} failed to execute", | |
"options": { | |
"allowUnauthorizedCerts": false | |
} | |
}, | |
"name": "Send Email1", | |
"type": "n8n-nodes-base.emailSend", | |
"typeVersion": 1, | |
"position": [ | |
800, | |
300 | |
], | |
"notesInFlow": true, | |
"credentials": { | |
"smtp": { | |
"id": "1", | |
"name": "SMTP account" | |
} | |
}, | |
"notes": "send failure mail" | |
}, | |
{ | |
"parameters": {}, | |
"name": "Error Trigger", | |
"type": "n8n-nodes-base.errorTrigger", | |
"typeVersion": 1, | |
"position": [ | |
500, | |
300 | |
] | |
} | |
], | |
"connections": { | |
"Error Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "Send Email1", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment