Skip to content

Fix the email node (crunchbase), fix the creator company

David78c41c6f0659
diff --git a/episode_6/template_job_board_linkedin_leadgen.json b/episode_6/template_job_board_linkedin_leadgen.json
index 77ead0a..6cd1b8d 100644
--- a/episode_6/template_job_board_linkedin_leadgen.json
+++ b/episode_6/template_job_board_linkedin_leadgen.json
@@ -5,7 +5,10 @@
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
- "position": [-360, -20],
+ "position": [
+ -360,
+ -20
+ ],
"id": "75936d24-d058-461a-b355-ea742fa9a311",
"name": "When clicking ‘Test workflow’"
},
@@ -15,7 +18,10 @@
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
- "position": [3340, 60],
+ "position": [
+ 3340,
+ 60
+ ],
"id": "a00fb760-ee18-4192-b8ab-9e829ea68007",
"name": "Code1"
},
@@ -26,7 +32,10 @@
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
- "position": [3340, 460],
+ "position": [
+ 3340,
+ 460
+ ],
"id": "e70b11e2-76ab-40c9-97ec-b8faf57b8a99",
"name": "Split Out"
},
@@ -50,7 +59,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3560, 460],
+ "position": [
+ 3560,
+ 460
+ ],
"id": "0519d9c2-1bd8-48fd-a523-e5a852311ae6",
"name": "HTML5"
},
@@ -60,7 +72,10 @@
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
- "position": [3780, 460],
+ "position": [
+ 3780,
+ 460
+ ],
"id": "1fd7e856-1782-465a-a0ed-b86a47394ab8",
"name": "Code2"
},
@@ -71,7 +86,10 @@
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
- "position": [3320, 660],
+ "position": [
+ 3320,
+ 660
+ ],
"id": "fee9ab43-7998-4dfc-a0d1-6513bbef0aae",
"name": "Split Out1"
},
@@ -101,7 +119,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3540, 660],
+ "position": [
+ 3540,
+ 660
+ ],
"id": "52fb7c68-434c-4efc-a671-7f84b2c79c4e",
"name": "HTML7"
},
@@ -113,7 +134,10 @@
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
- "position": [3760, 660],
+ "position": [
+ 3760,
+ 660
+ ],
"id": "f8d59b3b-ff80-4dfc-96b3-be4781481746",
"name": "Aggregate"
},
@@ -124,7 +148,10 @@
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
- "position": [3300, 880],
+ "position": [
+ 3300,
+ 880
+ ],
"id": "f89f08c4-0a1b-4cba-8219-d5d4800d67f3",
"name": "Split Out2"
},
@@ -159,7 +186,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3520, 880],
+ "position": [
+ 3520,
+ 880
+ ],
"id": "0a28de0a-eaa1-41ce-a271-3e8e155035e6",
"name": "HTML9"
},
@@ -169,7 +199,10 @@
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
- "position": [3740, 880],
+ "position": [
+ 3740,
+ 880
+ ],
"id": "7041f6bd-ff5b-465b-88bb-a88bafc9d976",
"name": "Code3"
},
@@ -199,7 +232,10 @@
},
"type": "n8n-nodes-base.filter",
"typeVersion": 2.2,
- "position": [3960, 880],
+ "position": [
+ 3960,
+ 880
+ ],
"id": "ba6385f9-b136-4439-8106-904484a13235",
"name": "Filter1"
},
@@ -211,7 +247,10 @@
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
- "position": [4180, 880],
+ "position": [
+ 4180,
+ 880
+ ],
"id": "cb936423-3206-468c-a9b9-7e837b773fc7",
"name": "Aggregate1"
},
@@ -223,7 +262,10 @@
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
- "position": [3760, 1100],
+ "position": [
+ 3760,
+ 1100
+ ],
"id": "94276571-4e9a-44c5-b9d7-9781a67729e6",
"name": "Aggregate2"
},
@@ -234,7 +276,10 @@
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
- "position": [3320, 1100],
+ "position": [
+ 3320,
+ 1100
+ ],
"id": "52d74478-0b0a-4999-85a1-1e24e78576a0",
"name": "Split Out3"
},
@@ -254,7 +299,10 @@
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
- "position": [4180, 1160],
+ "position": [
+ 4180,
+ 1160
+ ],
"id": "cd026b52-214c-4abc-8ce1-6a907c55570f",
"name": "Edit Fields3"
},
@@ -265,7 +313,10 @@
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
- "position": [3320, 1500],
+ "position": [
+ 3320,
+ 1500
+ ],
"id": "c135cc5d-7e08-4ea1-b2ba-689e46296653",
"name": "Split Out4"
},
@@ -277,7 +328,10 @@
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
- "position": [3760, 1500],
+ "position": [
+ 3760,
+ 1500
+ ],
"id": "ad9aa117-74cb-441c-9c98-4c35a1dfce90",
"name": "Aggregate4"
},
@@ -297,7 +351,10 @@
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
- "position": [4180, 1500],
+ "position": [
+ 4180,
+ 1500
+ ],
"id": "bf76022d-e1ab-4494-8e8b-7c6a66af875b",
"name": "Edit Fields6"
},
@@ -310,7 +367,10 @@
},
"type": "n8n-nodes-base.merge",
"typeVersion": 3.1,
- "position": [4820, 480],
+ "position": [
+ 4820,
+ 480
+ ],
"id": "7302c508-591a-4387-a0e6-e141d62d29bc",
"name": "Merge"
},
@@ -321,7 +381,10 @@
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
- "position": [5160, 560],
+ "position": [
+ 5160,
+ 560
+ ],
"id": "20ad6cdc-2f56-4db9-b9e0-cfdb77a899da",
"name": "Aggregate3"
},
@@ -336,7 +399,10 @@
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
- "position": [5920, 1080],
+ "position": [
+ 5920,
+ 1080
+ ],
"id": "c443eb58-0cb7-4d88-b66c-a4c9bee9cda4",
"name": "OpenAI Chat Model",
"credentials": {
@@ -353,18 +419,24 @@
},
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"typeVersion": 1.2,
- "position": [6100, 1080],
+ "position": [
+ 6100,
+ 1080
+ ],
"id": "d3c706de-2ab5-4ec5-8403-769c9eab6d81",
"name": "Structured Output Parser"
},
{
"parameters": {
- "batchSize": 2,
+ "batchSize": 10,
"options": {}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
- "position": [960, -20],
+ "position": [
+ 960,
+ -20
+ ],
"id": "835d779a-b6c7-4421-9a41-cbc660793e2d",
"name": "Loop Over Items"
},
@@ -374,7 +446,10 @@
},
"type": "n8n-nodes-base.limit",
"typeVersion": 1,
- "position": [620, -20],
+ "position": [
+ 620,
+ -20
+ ],
"id": "c00cbc8a-247c-491a-824b-2940ff523b33",
"name": "Limit"
},
@@ -386,7 +461,10 @@
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
- "position": [-40, -140],
+ "position": [
+ -40,
+ -140
+ ],
"id": "52981cfa-ea8a-4ff4-9b6e-d5ceea7a62b6",
"name": "Sticky Note"
},
@@ -398,7 +476,10 @@
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
- "position": [560, -220],
+ "position": [
+ 560,
+ -220
+ ],
"id": "a3f1174e-d1cc-4f87-b1ea-74f3b90f21b4",
"name": "Sticky Note1"
},
@@ -424,7 +505,10 @@
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
- "position": [20, -20],
+ "position": [
+ 20,
+ -20
+ ],
"id": "a6287afe-4a35-419e-b81c-469448e4e5ed",
"name": "Configure"
},
@@ -435,7 +519,10 @@
},
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1.1,
- "position": [320, -20],
+ "position": [
+ 320,
+ -20
+ ],
"id": "30c86e8b-64bb-4061-b635-77aa1a0f6f3a",
"name": "Get job board RSS feed"
},
@@ -446,7 +533,10 @@
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
- "position": [1320, 0],
+ "position": [
+ 1320,
+ 0
+ ],
"id": "f43e9074-6d23-4fa9-8e80-e92dec65777a",
"name": "Scrape the job ad"
},
@@ -469,7 +559,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [1760, 0],
+ "position": [
+ 1760,
+ 0
+ ],
"id": "755c78d3-f71c-4ff4-bf74-071eb0a9c3c4",
"name": "Extract job ad"
},
@@ -479,7 +572,10 @@
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
- "position": [1980, 0],
+ "position": [
+ 1980,
+ 0
+ ],
"id": "a4bab2bf-10a3-463d-bcd8-62838f914bca",
"name": "Extract location data"
},
@@ -499,7 +595,7 @@
},
{
"name": "q",
- "value": "={{ `site:linkedin.com/company ${$('Extract location data').item.json.creator} ${$json.location}` }}"
+ "value": "={{ `site:linkedin.com/company ${$('Get job board RSS feed').item.json['dc:creator']} ${$json.location}` }}"
}
]
},
@@ -507,7 +603,10 @@
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
- "position": [1380, 500],
+ "position": [
+ 1380,
+ 500
+ ],
"id": "ef1249f4-60ed-42c1-a481-5983cc67885f",
"name": "Google X-Ray Search"
},
@@ -537,7 +636,10 @@
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
- "position": [1600, 500],
+ "position": [
+ 1600,
+ 500
+ ],
"id": "6362da74-8e3e-4c8a-9f7d-b7f3eb3ff379",
"name": "Results?"
},
@@ -561,7 +663,10 @@
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
- "position": [2180, 480],
+ "position": [
+ 2180,
+ 480
+ ],
"id": "fde13240-b6a7-4c25-b2a4-cddb3a77cbb5",
"name": "Scrape LinkedIn"
},
@@ -619,7 +724,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [2520, 480],
+ "position": [
+ 2520,
+ 480
+ ],
"id": "5a3edba8-5aef-4e55-b16f-010320ed5d30",
"name": "Extract main blocks"
},
@@ -652,7 +760,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3120, 60],
+ "position": [
+ 3120,
+ 60
+ ],
"id": "c5c1cc8e-62b2-47fb-8214-9136f0a93d02",
"name": "Extract info"
},
@@ -678,7 +789,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3120, 460],
+ "position": [
+ 3120,
+ 460
+ ],
"id": "11abc9ee-1989-474b-b3c5-c51e0d1e108a",
"name": "Extract about us"
},
@@ -700,7 +814,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3100, 660],
+ "position": [
+ 3100,
+ 660
+ ],
"id": "9761d0bd-0525-4897-a217-20b95acba1c4",
"name": "Extract employees"
},
@@ -721,7 +838,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3480, 240],
+ "position": [
+ 3480,
+ 240
+ ],
"id": "65a1d070-fdb4-4ed2-8364-f9a7a0a308e1",
"name": "Extract locations"
},
@@ -743,7 +863,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3080, 880],
+ "position": [
+ 3080,
+ 880
+ ],
"id": "79dd423a-294e-43b1-b1a8-87a7cd2f59c5",
"name": "Extract updates"
},
@@ -774,7 +897,10 @@
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
- "position": [3080, 1120],
+ "position": [
+ 3080,
+ 1120
+ ],
"id": "e9b72a69-5c29-4490-a3c0-6d94eb9fea29",
"name": "Are there products?"
},
@@ -805,7 +931,10 @@
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
- "position": [3080, 1520],
+ "position": [
+ 3080,
+ 1520
+ ],
"id": "5ac34b71-37f3-48b2-9b5d-18e5aef13ef5",
"name": "Are there affiliated pages?"
},
@@ -825,7 +954,10 @@
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
- "position": [3320, 1720],
+ "position": [
+ 3320,
+ 1720
+ ],
"id": "4e3a74a8-a29f-453c-975e-6a0d232c18b4",
"name": "No affiliated pages"
},
@@ -845,7 +977,10 @@
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
- "position": [3320, 1280],
+ "position": [
+ 3320,
+ 1280
+ ],
"id": "de21f912-2ff1-412f-aeb7-e8b93d2f4d2a",
"name": "No products"
},
@@ -874,7 +1009,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3540, 1100],
+ "position": [
+ 3540,
+ 1100
+ ],
"id": "55f1f71b-918a-4854-9ff9-7c7726903c17",
"name": "Extract products"
},
@@ -900,7 +1038,10 @@
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
- "position": [3540, 1500],
+ "position": [
+ 3540,
+ 1500
+ ],
"id": "fcae2015-c82c-489e-a9e1-3add7557bbf0",
"name": "Extract affiliated pages"
},
@@ -912,20 +1053,26 @@
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.6,
- "position": [5920, 860],
+ "position": [
+ 5920,
+ 860
+ ],
"id": "a062f98b-5fec-437c-a6ab-10fa4d52ed3b",
"name": "Summarize available data"
},
{
"parameters": {
- "sendTo": "{YOUR_EMAIL_ADDRESS}",
+ "sendTo": "[email protected]",
"subject": "=New prospect: {{ $('Aggregate3').item.json.data[0].name }}",
- "message": "=<h1>Company name: {{ $('Aggregate3').item.json.data[0].name }}</h1>\n<p>Category: {{ $('Aggregate3').item.json.data[0].category }}</p>\n<p>Linkedin Page: {{ $('Set Linkedin URL from the first result').item.json.linkedin_url }}</p>\n<p>Website: {{ $('Aggregate3').item.json.data[0].Website }}</p>\n{{ $('Extract main blocks').item.json.crunchbase ? `<p>Crunchbase: ${$('Main content').item.json.crunchbase.split('?')[0]}</p>` : `` }}\n\n<h2>Summary</h2>\n<p>{{ $json.output.company_summary }}</p>\n<h2>Why is it a good prospect</h2>\n<p>{{ $json.output.why_good_prospect }}</p>",
+ "message": "=<h1>Company name: {{ $('Aggregate3').item.json.data[0].name }}</h1>\n<p>Category: {{ $('Aggregate3').item.json.data[0].category }}</p>\n<p>Linkedin Page: {{ $('Set Linkedin URL from the first result').item.json.linkedin_url }}</p>\n<p>Website: {{ $('Aggregate3').item.json.data[0].Website }}</p>\n{{ $('Extract main blocks').item.json.crunchbase ? `<p>Crunchbase: ${$('Extract main blocks').item.json.crunchbase.split('?')[0]}</p>` : `` }}\n\n<h2>Summary</h2>\n<p>{{ $json.output.company_summary }}</p>\n<h2>Why is it a good prospect</h2>\n<p>{{ $json.output.why_good_prospect }}</p>",
"options": {}
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
- "position": [6280, 860],
+ "position": [
+ 6280,
+ 860
+ ],
"id": "dad2eba2-5994-4c19-8cc4-aef177988065",
"name": "Send email",
"webhookId": "5239298c-8f8b-408b-bc7e-cc36cd3a59e8",
@@ -944,7 +1091,10 @@
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
- "position": [5820, 500],
+ "position": [
+ 5820,
+ 500
+ ],
"id": "9d23305b-a4a2-4143-a0eb-5252209197b5",
"name": "Sticky Note2"
},
@@ -956,7 +1106,10 @@
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
- "position": [2440, -220],
+ "position": [
+ 2440,
+ -220
+ ],
"id": "19d4f56f-562f-4677-acf6-d1e5b16ae847",
"name": "Sticky Note3"
},
@@ -968,7 +1121,10 @@
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
- "position": [6300, 1840],
+ "position": [
+ 6300,
+ 1840
+ ],
"id": "d99561f4-f73f-4f34-993b-a130b1912d86",
"name": "Sticky Note4"
},
@@ -976,7 +1132,10 @@
"parameters": {},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
- "position": [6460, 2060],
+ "position": [
+ 6460,
+ 2060
+ ],
"id": "bc8ed2e4-1ec8-4bb0-859d-2f59cd48a175",
"name": "Wait 5s",
"webhookId": "0c941134-e324-4857-8e36-2ded681a4b38"
@@ -1003,7 +1162,10 @@
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
- "position": [1960, 480],
+ "position": [
+ 1960,
+ 480
+ ],
"id": "137ce2cb-4461-4c9f-8e0d-3941045be4c2",
"name": "Set Linkedin URL from the first result"
}
@@ -1606,11 +1768,11 @@
"settings": {
"executionOrder": "v1"
},
- "versionId": "1f00732a-a0b2-40b3-908a-1706dbb32c06",
+ "versionId": "2dab2644-3f3b-4911-ae37-836229ec9f90",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "636db6b6ab21a21c6458e2137f340e33dc3e49f5a1c560c8d1e2372c227cf40e"
},
"id": "giQWXEEBqglvTXZi",
"tags": []
-}
+}
\ No newline at end of file