Skip to content

Instantly share code, notes, and snippets.

@skanayi
Last active October 22, 2021 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skanayi/f6fe4c992cff7c6f4655fd14911871fc to your computer and use it in GitHub Desktop.
Save skanayi/f6fe4c992cff7c6f4655fd14911871fc to your computer and use it in GitHub Desktop.
error workflow
{
"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