-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.json
More file actions
54 lines (54 loc) · 2.32 KB
/
Copy pathrules.json
File metadata and controls
54 lines (54 loc) · 2.32 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
{
"id": "n8n-support-ticket-routing",
"rules": [
{
"id": "route-high-risk-enterprise-ticket",
"type": "simple_rule",
"options": {},
"conditions": [
{
"id": "priority-threshold",
"type": "compare_two_numbers",
"options": {},
"params": [
{ "id": "ticket-priority", "name": "op1", "type": "state_number", "value": "ticket.priority", "options": {} },
{ "id": "priority-comparison", "name": "comp", "type": "comparator", "value": ">=", "options": {} },
{ "id": "priority-threshold-value", "name": "op2", "type": "simple_number", "value": "8", "options": {} }
]
},
{
"id": "negative-sentiment-threshold",
"type": "compare_two_numbers",
"options": {},
"params": [
{ "id": "ticket-sentiment", "name": "op1", "type": "state_number", "value": "ticket.sentimentScore", "options": {} },
{ "id": "sentiment-comparison", "name": "comp", "type": "comparator", "value": "<=", "options": {} },
{ "id": "sentiment-threshold-value", "name": "op2", "type": "simple_number", "value": "-0.4", "options": {} }
]
},
{
"id": "enterprise-tier-check",
"type": "compare_two_strings",
"options": {},
"params": [
{ "id": "ticket-tier", "name": "op1", "type": "state_string", "value": "ticket.customerTier", "options": {} },
{ "id": "tier-comparison", "name": "comp", "type": "comparator", "value": "=", "options": {} },
{ "id": "enterprise-tier", "name": "op2", "type": "simple_string", "value": "enterprise", "options": {} }
]
}
],
"actions": [
{
"id": "assign-human-escalation",
"type": "set_support_route",
"options": {},
"params": [
{ "id": "route-name", "name": "route", "type": "simple_string", "value": "human-escalation", "options": {} },
{ "id": "sla-hours", "name": "slaHours", "type": "simple_number", "value": "2", "options": {} },
{ "id": "reason", "name": "reason", "type": "simple_string", "value": "High-priority enterprise ticket with negative sentiment requires deterministic workflow routing.", "options": {} }
]
}
]
}
]
}