1{
2 "name": "Lead routing",
3 "nodes": [
4 {
5 "parameters": { "path": "new-lead", "httpMethod": "POST" },
6 "name": "Webhook: new lead",
7 "type": "n8n-nodes-base.webhook",
8 "position": [240, 300]
9 },
10 {
11 "parameters": {
12 "url": "https://api.enrichment.example/v1/company",
13 "options": { "timeout": 8000 }
14 },
15 "name": "Enrich company",
16 "type": "n8n-nodes-base.httpRequest",
17 "position": [460, 300]
18 },
19 {
20 "parameters": {
21 "functionCode": "return items.filter(i => i.json.score >= 70)"
22 },
23 "name": "Score against ICP",
24 "type": "n8n-nodes-base.function",
25 "position": [680, 300]
26 },
27 {
28 "parameters": {
29 "conditions": { "number": [{ "value1": 70, "operation": "gte" }] }
30 },
31 "name": "If score >= 70",
32 "type": "n8n-nodes-base.if",
33 "position": [900, 300]
34 },
35 {
36 "parameters": {
37 "resource": "deal",
38 "stage": "Discovery",
39 "owner": "={{ $json.territory_owner }}"
40 },
41 "name": "Create CRM deal",
42 "type": "n8n-nodes-base.hubspot",
43 "position": [1120, 220]
44 },
45 {
46 "parameters": { "channel": "#revenue", "text": "New qualified lead" },
47 "name": "Notify the owner",
48 "type": "n8n-nodes-base.slack",
49 "position": [1120, 380]
50 }
51 ],
52 "connections": {
53 "Webhook: new lead": { "main": [[{ "node": "Enrich company" }]] },
54 "Enrich company": { "main": [[{ "node": "Score against ICP" }]] },
55 "Score against ICP": { "main": [[{ "node": "If score >= 70" }]] },
56 "If score >= 70": {
57 "main": [
58 [{ "node": "Create CRM deal" }, { "node": "Notify the owner" }],
59 []
60 ]
61 }
62 },
63 "settings": { "saveExecutionProgress": true, "timezone": "Europe/London" }
64}