-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.json
More file actions
90 lines (90 loc) · 2.24 KB
/
workflow.json
File metadata and controls
90 lines (90 loc) · 2.24 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"name": "HubSpot Lead to ServiceNow CSM Ticket",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "lead-webhook",
"options": {}
},
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [100, 300],
"notes": "Receives JSON payload from HubSpot/CRM"
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"body\"][\"priority\"]}}",
"value2": "high"
}
]
}
},
"name": "Check Priority",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [300, 300],
"notes": "Filters only High Priority leads"
},
{
"parameters": {
"authentication": "basicAuth",
"requestMethod": "POST",
"url": "https://dev12345.service-now.com/api/now/table/incident",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "short_description",
"value": "VIP Lead Issue: {{$json[\"body\"][\"message\"]}}"
},
{
"name": "urgency",
"value": "1"
},
{
"name": "caller_id",
"value": "={{$json[\"body\"][\"email\"]}}"
}
]
}
},
"name": "Create SN Ticket",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [500, 200],
"notes": "POST request to ServiceNow REST API"
},
{
"parameters": {
"channel": "sales-alerts",
"text": "⚠️ New Critical Ticket Created for VIP Lead: {{$json[\"body\"][\"email\"]}}"
},
"name": "Slack Alert",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [700, 200]
}
],
"connections": {
"Webhook Trigger": {
"main": [
[{"node": "Check Priority", "type": "main", "index": 0}]
]
},
"Check Priority": {
"main": [
[{"node": "Create SN Ticket", "type": "main", "index": 0}]
]
},
"Create SN Ticket": {
"main": [
[{"node": "Slack Alert", "type": "main", "index": 0}]
]
}
}
}