-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow-error-handler.json
More file actions
61 lines (61 loc) · 1.85 KB
/
Copy pathworkflow-error-handler.json
File metadata and controls
61 lines (61 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "Workflow Error Handler",
"nodes": [
{
"parameters": {},
"id": "error-trigger",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"typeVersion": 1,
"position": [0, 0]
},
{
"parameters": {
"authentication": "oAuth2",
"select": "user",
"user": {
"__rl": true,
"mode": "id",
"value": "UNGG09PRC"
},
"text": "=:rotating_light: *Workflow Error: {{ $json.workflow.name }}*\n\n*Failed node:* {{ $json.execution.lastNodeExecuted }}\n*Error:* {{ $json.execution.error.message }}\n*Mode:* {{ $json.execution.mode }}\n\n<{{ $json.execution.url }}|View Execution>",
"otherOptions": {
"includeLinkToWorkflow": false,
"mrkdwn": true
}
},
"id": "slack-error-dm",
"name": "Slack DM: Error Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.4,
"position": [288, 0],
"credentials": {
"slackOAuth2Api": {
"id": "26HMtp3bs8XtDn08",
"name": "Slack account"
}
}
},
{
"parameters": {
"content": "## Workflow Error Handler\n\nShared error workflow. Any workflow with **Settings → Error Workflow** pointed here will send a Slack DM to Robby when an execution fails.\n\nPayload comes from the Error Trigger: `workflow.name`, `execution.lastNodeExecuted`, `execution.error.message`, `execution.url`.",
"height": 260,
"width": 320,
"color": 3
},
"id": "sticky-error",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [-96, -192]
}
],
"connections": {
"Error Trigger": {
"main": [[{ "node": "Slack DM: Error Alert", "type": "main", "index": 0 }]]
}
},
"settings": {
"executionOrder": "v1"
}
}