feat: add folder support for workflows (fixes #70)

This commit is contained in:
Praveen Mudalgeri
2025-08-05 09:40:47 +05:30
parent 307d530f9b
commit c4885eee92
2057 changed files with 985290 additions and 974268 deletions

View File

@@ -0,0 +1,207 @@
{
"id": "1blBTEfOEjamDB0N",
"meta": {
"instanceId": "558d88703fb65b2d0e44613bc35916258b0f0bf983c5d4730c00c424b77ca36a",
"templateCredsSetupCompleted": true
},
"name": "Email form",
"tags": [],
"nodes": [
{
"id": "0994dde9-bad8-49b8-b164-1f191decf9ff",
"name": "Email is not valid, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
940,
480
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b27e140e-7758-42d4-bf07-39b17f85fc82",
"name": "Check if the email is valid",
"type": "n8n-nodes-base.if",
"position": [
620,
260
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "54d84c8a-63ee-40ed-8fb2-301fff0194ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "valid"
}
]
}
},
"typeVersion": 2
},
{
"id": "a691af9a-f66f-4fd1-ab82-3d3450098d67",
"name": "Verify email",
"type": "n8n-nodes-base.hunter",
"position": [
360,
260
],
"parameters": {
"email": "={{ $json.Email }}",
"operation": "emailVerifier"
},
"credentials": {
"hunterApi": {
"id": "wC6eWJWcNeFHvBqV",
"name": "Hunter account"
}
},
"typeVersion": 1
},
{
"id": "cfe4d91b-209c-49df-8483-141f5e27fba2",
"name": "Submit form",
"type": "n8n-nodes-base.formTrigger",
"position": [
80,
260
],
"webhookId": "80be3272-e1bc-47e4-8112-d39488e84f4b",
"parameters": {
"options": {},
"formTitle": "Join my mailing list now",
"formFields": {
"values": [
{
"fieldLabel": "Email",
"requiredField": true
}
]
},
"formDescription": "10x your productivity with my A.I. tips. I'll cut the B.S. and give you the most practical tips for A.I. automation."
},
"typeVersion": 2.2
},
{
"id": "30d816d9-7a91-47b2-8c06-da0b9114f375",
"name": "Add contact to list",
"type": "n8n-nodes-base.sendGrid",
"position": [
940,
240
],
"parameters": {
"email": "={{ $json.Email }}",
"resource": "contact",
"additionalFields": {
"listIdsUi": {
"listIdValues": {
"listIds": [
"11a55438-d4a8-4740-b054-d273359b7dfe"
]
}
}
}
},
"credentials": {
"sendGridApi": {
"id": "AFtBIAiI3x5QS0WL",
"name": "SendGrid account"
}
},
"typeVersion": 1
},
{
"id": "e80255c8-25b2-48d5-8605-d7702cbf7bc7",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
60,
-100
],
"parameters": {
"width": 505,
"height": 180,
"content": "## Automate Email List Building with n8n and Hunter io\n\n💡 Read the [case study here](https://rumjahn.com/create-email-capture-forms-for-free-using-n8n-and-sendgrid-and-easily-grow-your-subscriber-list/).\n\n📺 Watch the [youtube tutorial here](https://www.youtube.com/watch?v=NgvEHwu19Rs&t=2s)\n\n"
},
"typeVersion": 1
},
{
"id": "f989d552-81b9-4ee7-aa28-a006b703280f",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
100
],
"parameters": {
"color": 4,
"height": 320,
"content": "## Hunter io\n\nYou need to get a Hunter.io account and input the API key. There's 50 free credits per month."
},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "1df322f8-6d69-4ae7-b094-3f0dec019d3b",
"connections": {
"Submit form": {
"main": [
[
{
"node": "Verify email",
"type": "main",
"index": 0
}
]
]
},
"Verify email": {
"main": [
[
{
"node": "Check if the email is valid",
"type": "main",
"index": 0
}
]
]
},
"Check if the email is valid": {
"main": [
[
{
"node": "Add contact to list",
"type": "main",
"index": 0
}
],
[
{
"node": "Email is not valid, do nothing",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,545 @@
{
"meta": {
"instanceId": "257476b1ef58bf3cb6a46e65fac7ee34a53a5e1a8492d5c6e4da5f87c9b82833"
},
"nodes": [
{
"id": "bcd8e7dc-cb7f-4e2b-a0c6-2d154cb58938",
"name": "n8n Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
820,
360
],
"webhookId": "0bf8840f-1cc4-46a9-86af-a3fa8da80608",
"parameters": {
"path": "0bf8840f-1cc4-46a9-86af-a3fa8da80608",
"options": {},
"formTitle": "Contact us",
"formFields": {
"values": [
{
"fieldLabel": "What's your business email?"
}
]
},
"formDescription": "We'll get back to you soon"
},
"typeVersion": 2
},
{
"id": "0720ab51-5222-46fe-8a1a-31e25b81920c",
"name": "Hunter",
"type": "n8n-nodes-base.hunter",
"position": [
1040,
360
],
"parameters": {
"email": "={{ $json['What\\'s your business email?'] }}",
"operation": "emailVerifier"
},
"credentials": {
"hunterApi": {
"id": "oIxKoEBTBJeT1UrT",
"name": "Hunter account"
}
},
"typeVersion": 1
},
{
"id": "c20c626f-fd58-497f-942f-5d10f198f36d",
"name": "Check if the email is valid",
"type": "n8n-nodes-base.if",
"position": [
1240,
360
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "54d84c8a-63ee-40ed-8fb2-301fff0194ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "valid"
}
]
}
},
"typeVersion": 2
},
{
"id": "9c55911c-06b7-4291-a91d-30c0cb87b7f2",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
820,
180
],
"parameters": {
"color": 5,
"width": 547,
"height": 132,
"content": "### 👨‍🎤 Setup\n1. Add you **Hunter**, **Clearbit** and **Hubspot** credentials\n2. Click the Test Workflow button, enter your email and check your Hubspot\n3. Activate the workflow and use the form trigger production URL to collect your leads in a smart way "
},
"typeVersion": 1
},
{
"id": "4e518b0c-20e6-4fb3-8be9-c0989c750fda",
"name": "Enrich company",
"type": "n8n-nodes-base.clearbit",
"position": [
1620,
300
],
"parameters": {
"domain": "={{ $json.employment.domain }}",
"additionalFields": {}
},
"credentials": {
"clearbitApi": {
"id": "cKDImrinp9tg0ZHW",
"name": "Clearbit account"
}
},
"typeVersion": 1
},
{
"id": "47e8324b-c455-40b5-8769-4d2c4718de75",
"name": "Add lead to Hubspot",
"type": "n8n-nodes-base.hubspot",
"position": [
1940,
300
],
"parameters": {
"email": "={{ $('Check if the email is valid').item.json.email }}",
"options": {},
"authentication": "oAuth2",
"additionalFields": {
"jobTitle": "={{ $('Enrich person').item.json.employment.title }}",
"lastName": "={{ $('Enrich person').item.json.name.familyName }}",
"firstName": "={{ $('Enrich person').item.json.name.givenName }}",
"companyName": "={{ $('Enrich person').item.json.employment.name }}",
"companySize": "={{ $json.metrics.employees }}"
}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "WEONgGVHLYPjIE6k",
"name": "HubSpot account"
}
},
"typeVersion": 2
},
{
"id": "30451862-9283-44fd-a1b7-9b31bbe9cbd2",
"name": "Enrich person",
"type": "n8n-nodes-base.clearbit",
"position": [
1460,
300
],
"parameters": {
"email": "={{ $json.email }}",
"resource": "person",
"additionalFields": {}
},
"credentials": {
"clearbitApi": {
"id": "cKDImrinp9tg0ZHW",
"name": "Clearbit account"
}
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "c96096f2-6505-4955-bb1b-c4f903428b1d",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
820,
500
],
"parameters": {
"color": 7,
"width": 162,
"height": 139,
"content": "👆 You can exchange this with any form you like (*e.g. Typeform, Google forms, Survey Monkey...*)"
},
"typeVersion": 1
},
{
"id": "751458aa-7b63-48ab-881e-d68df94a3390",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1940,
460
],
"parameters": {
"color": 7,
"width": 162,
"height": 84,
"content": "👆 Adjust the fields you need in your Hubspot here"
},
"typeVersion": 1
},
{
"id": "6416c2ee-59a0-4496-bd62-0a3af06986b7",
"name": "Email is not valid, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
1460,
480
],
"parameters": {},
"typeVersion": 1
},
{
"id": "32bc2dc2-7b5c-4fc4-bf9f-a1231c6512d0",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1740,
180
],
"parameters": {
"color": 7,
"width": 162,
"height": 136.49297423887586,
"content": "👇 Idea: You could add criteria on when to add a lead to your Hubspot here. For inspiration, take a look at [this template](https://n8n.io/workflows/2106-reach-out-via-email-to-new-form-submissions-that-meet-a-certain-criteria)"
},
"typeVersion": 1
}
],
"pinData": {
"Hunter": [
{
"block": false,
"email": "niklas@n8n.io",
"score": 100,
"regexp": true,
"result": "deliverable",
"status": "valid",
"sources": [
{
"uri": "http://community.n8n.io/t/cant-send-email-with-multiple-attachments/22736/9",
"domain": "community.n8n.io",
"extracted_on": "2023-10-13",
"last_seen_on": "2024-01-14",
"still_on_page": true
},
{
"uri": "http://community.n8n.io/t/cant-send-email-with-multiple-attachments/22736",
"domain": "community.n8n.io",
"extracted_on": "2023-07-13",
"last_seen_on": "2024-01-11",
"still_on_page": true
}
],
"webmail": false,
"gibberish": false,
"accept_all": false,
"disposable": false,
"mx_records": true,
"smtp_check": true,
"smtp_server": true,
"_deprecation_notice": "Using result is deprecated, use status instead"
}
],
"Enrich person": [
{
"id": "f679f5ef-f7a0-4cb1-8790-fe663a0c092f",
"bio": null,
"geo": {
"lat": 53.5510846,
"lng": 9.9936819,
"city": "Hamburg",
"state": "Hamburg",
"country": "Germany",
"stateCode": "HH",
"countryCode": "DE"
},
"name": {
"fullName": "Niklas Hatje",
"givenName": "Niklas",
"familyName": "Hatje"
},
"site": null,
"email": "niklas@n8n.io",
"fuzzy": false,
"avatar": null,
"github": {
"id": null,
"blog": null,
"avatar": null,
"handle": null,
"company": null,
"followers": null,
"following": null
},
"twitter": {
"id": null,
"bio": null,
"site": null,
"avatar": null,
"handle": null,
"location": null,
"statuses": null,
"favorites": null,
"followers": null,
"following": null
},
"facebook": {
"handle": null
},
"gravatar": {
"urls": [],
"avatar": null,
"handle": null,
"avatars": []
},
"linkedin": {
"handle": "in/niklashatje"
},
"location": "Hamburg, HH, DE",
"timeZone": "Europe/Berlin",
"indexedAt": "2024-01-24T15:49:16.888Z",
"utcOffset": 1,
"employment": {
"name": "n8n",
"role": null,
"title": "Senior Produktmanager",
"domain": "n8n.io",
"subRole": null,
"seniority": "manager"
},
"googleplus": {
"handle": null
},
"emailProvider": false
}
],
"Enrich company": [
{
"id": "546ba3f6-a6b7-41a1-aed8-4f9bba4119e8",
"geo": {
"lat": 52.5297761,
"lng": 13.3892831,
"city": "Berlin",
"state": "Berlin",
"country": "Germany",
"stateCode": "BE",
"postalCode": "10115",
"streetName": "Borsigstraße",
"subPremise": null,
"countryCode": "DE",
"streetNumber": "27",
"streetAddress": "27 Borsigstraße"
},
"logo": "https://logo.clearbit.com/n8n.io",
"name": "n8n",
"site": {
"phoneNumbers": [],
"emailAddresses": []
},
"tags": [
"Information Technology & Services",
"Computer Programming",
"Software",
"Professional Services",
"Computers",
"E-commerce",
"Technology",
"B2B",
"B2C",
"SAAS",
"Mobile"
],
"tech": [
"mailgun",
"cloud_flare",
"workable",
"google_tag_manager",
"google_apps",
"typeform",
"google_analytics",
"facebook_advertiser",
"stripe"
],
"type": "private",
"phone": null,
"domain": "n8n.io",
"parent": {
"domain": null
},
"ticker": null,
"metrics": {
"raised": 13500000,
"employees": 60,
"marketCap": null,
"alexaUsRank": null,
"trafficRank": "high",
"annualRevenue": null,
"fiscalYearEnd": null,
"employeesRange": "51-250",
"alexaGlobalRank": 61323,
"estimatedAnnualRevenue": "$10M-$50M"
},
"twitter": {
"id": "1068479892537384960",
"bio": "n8n is an extendable workflow automation tool which enables you to connect anything to everything via its open, fair-code model.",
"site": "https://t.co/F1fzJ95bij",
"avatar": "https://pbs.twimg.com/profile_images/1536335358803251202/-gASF0c6_normal.png",
"handle": "n8n_io",
"location": "Berlin, Germany",
"followers": 7238,
"following": 1
},
"category": {
"sector": "Information Technology",
"sicCode": "73",
"gicsCode": "45102010",
"industry": "Internet Software & Services",
"naicsCode": "54",
"sic4Codes": [
"7371"
],
"naics6Codes": [
"541511"
],
"subIndustry": "Internet Software & Services",
"industryGroup": "Software & Services",
"naics6Codes2022": [
"541511"
]
},
"facebook": {
"likes": null,
"handle": null
},
"linkedin": {
"handle": "company/n8n"
},
"location": "Borsigstraße 27, 10115 Berlin, Germany",
"timeZone": "Europe/Berlin",
"indexedAt": "2024-02-08T21:30:12.524Z",
"legalName": null,
"utcOffset": 1,
"crunchbase": {
"handle": null
},
"description": "n8n.io is a powerful workflow automation tool that enables you to connect anything to everything. It is a free and open-source tool that can be installed on-premises, downloaded as a desktop app, or used as a cloud service. With n8n, you can automate b...",
"foundedYear": 2019,
"identifiers": {
"usCIK": null,
"usEIN": null
},
"domainAliases": [
"n8n.cloud",
"n8n.com"
],
"emailProvider": false,
"techCategories": [
"email_delivery_service",
"dns",
"applicant_tracking_system",
"tag_management",
"productivity",
"form_builder",
"analytics",
"advertising",
"payment"
],
"ultimateParent": {
"domain": null
}
}
],
"n8n Form Trigger": [
{
"formMode": "test",
"submittedAt": "2024-02-21T18:59:22.964Z",
"What's your business email?": "niklas@n8n.io"
}
]
},
"connections": {
"Hunter": {
"main": [
[
{
"node": "Check if the email is valid",
"type": "main",
"index": 0
}
]
]
},
"Enrich person": {
"main": [
[
{
"node": "Enrich company",
"type": "main",
"index": 0
}
]
]
},
"Enrich company": {
"main": [
[
{
"node": "Add lead to Hubspot",
"type": "main",
"index": 0
}
]
]
},
"n8n Form Trigger": {
"main": [
[
{
"node": "Hunter",
"type": "main",
"index": 0
}
]
]
},
"Check if the email is valid": {
"main": [
[
{
"node": "Enrich person",
"type": "main",
"index": 0
}
],
[
{
"node": "Email is not valid, do nothing",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,324 @@
{
"nodes": [
{
"id": "74e0d9d8-9a05-4bf6-82a1-7c7c6b488ac7",
"name": "n8n Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
380,
420
],
"webhookId": "ee00f236-5dad-49db-8f29-71b7bce37894",
"parameters": {
"path": "0bf8840f-1cc4-46a9-86af-a3fa8da80608",
"options": {},
"formTitle": "Contact us",
"formFields": {
"values": [
{
"fieldLabel": "What's your business email?"
}
]
},
"formDescription": "We'll get back to you soon"
},
"typeVersion": 2
},
{
"id": "86956707-6a69-465e-b73e-e49bfb6fa252",
"name": "Check if the email is valid",
"type": "n8n-nodes-base.if",
"position": [
800,
420
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "54d84c8a-63ee-40ed-8fb2-301fff0194ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "valid"
}
]
}
},
"typeVersion": 2
},
{
"id": "15991bbc-77c7-405f-8d8d-aeb5693b8eed",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
220
],
"parameters": {
"color": 5,
"width": 547,
"height": 158,
"content": "### 👨‍🎤 Setup\n1. Add you **MadKudu**, **Hunter**, and **Email** credentials \n2. Set the email where you want the alert\n3. Click the Test Workflow button, enter your email and check the Slack channel\n4. Activate the workflow and use the form trigger production URL to collect your leads in a smart way "
},
"typeVersion": 1
},
{
"id": "0a1d7df3-d536-4530-a3f1-d374bb645738",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
560
],
"parameters": {
"color": 7,
"width": 162,
"height": 139,
"content": "👆 You can exchange this with any form you like (*e.g. Typeform, Google forms, Survey Monkey...*)"
},
"typeVersion": 1
},
{
"id": "694b79a4-878e-4014-8975-8b81fa10f556",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
480
],
"parameters": {
"color": 7,
"width": 162,
"height": 84,
"content": "👆 Adjust the fit as you see necessary"
},
"typeVersion": 1
},
{
"id": "e843b7e4-631a-4679-952e-3f4f3ef4592d",
"name": "Email is not valid, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
1140,
560
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9e20efa9-add0-4109-8e83-67fd9ed6e2f9",
"name": "Score lead with MadKudu",
"type": "n8n-nodes-base.httpRequest",
"position": [
1140,
320
],
"parameters": {
"url": "=https://api.madkudu.com/v1/persons?email={{ $json.email }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "71W5Bt9g1G9GOhVL",
"name": "MadKudu Lead score"
}
},
"typeVersion": 4.1
},
{
"id": "1e0c1e73-b027-481c-a560-379e7c609b8e",
"name": "Verify email with Hunter",
"type": "n8n-nodes-base.hunter",
"position": [
600,
420
],
"parameters": {
"email": "={{ $json['What\\'s your business email?'] }}",
"operation": "emailVerifier"
},
"credentials": {
"hunterApi": {
"id": "ecwmdHFSBU5GGnV1",
"name": "Hunter account"
}
},
"typeVersion": 1
},
{
"id": "1769cddc-e479-4816-8807-b2c1a7cd72c3",
"name": "Not interesting enough",
"type": "n8n-nodes-base.noOp",
"position": [
1680,
460
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f01ed0bd-e198-47d0-95de-cf15ff04be75",
"name": "if customer fit score > 60",
"type": "n8n-nodes-base.if",
"position": [
1380,
320
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c23d7b34-a4ae-421f-bd7a-6a3ebb05aafe",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ $json.properties.customer_fit.score }}",
"rightValue": 60
}
]
}
},
"typeVersion": 2
},
{
"id": "f500ad36-3f4c-4c3e-aadc-ab014be7cb7d",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
1680,
160
],
"parameters": {
"sendTo": "mutasem@n8n.io",
"message": "=Got a hot lead for you {{ $json.properties.first_name }} {{ $json.properties.last_name }} from {{ $json.company.properties.name }} ({{ $json.company.properties.domain }}) based out of {{ $json.company.properties.location.state }}, {{ $json.company.properties.location.country }}.\n\n\n{{ $('Score lead with MadKudu').item.json.properties.customer_fit.top_signals_formatted }}",
"options": {},
"subject": "=⭐ Hot lead alert: {{ $json.properties.first_name }} {{ $json.properties.last_name }}",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "rd2agqPeJBD2377h",
"name": "Work Gmail"
}
},
"typeVersion": 2.1
},
{
"id": "b47b0249-fa84-42b8-b7c5-0e204bc35db4",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1640,
40
],
"parameters": {
"color": 7,
"width": 162,
"height": 84,
"content": "👇🏽 Update the email to send to"
},
"typeVersion": 1
}
],
"pinData": {
"n8n Form Trigger": [
{
"formMode": "test",
"submittedAt": "2024-02-22T13:59:54.709Z",
"What's your business email?": "jan@n8n.io"
}
]
},
"connections": {
"n8n Form Trigger": {
"main": [
[
{
"node": "Verify email with Hunter",
"type": "main",
"index": 0
}
]
]
},
"Score lead with MadKudu": {
"main": [
[
{
"node": "if customer fit score > 60",
"type": "main",
"index": 0
}
]
]
},
"Verify email with Hunter": {
"main": [
[
{
"node": "Check if the email is valid",
"type": "main",
"index": 0
}
]
]
},
"if customer fit score > 60": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
],
[
{
"node": "Not interesting enough",
"type": "main",
"index": 0
}
]
]
},
"Check if the email is valid": {
"main": [
[
{
"node": "Score lead with MadKudu",
"type": "main",
"index": 0
}
],
[
{
"node": "Email is not valid, do nothing",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,451 @@
{
"nodes": [
{
"id": "3890c4a4-0649-457f-9dd7-1e688f4a0024",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
160
],
"parameters": {
"color": 5,
"width": 731,
"height": 210.61602497398542,
"content": "### 👨‍🎤 Setup\n1. Add you **MadKudu**, **Hunter**, and **Gmail** credentials \n2. Setup your **HubSpot** Oauth2 creds using [n8n docs](https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.hubspottrigger/)\n3. Set the email content and subject\n4. Click the Test Workflow button, enter your email and check the Slack channel\n5. Activate the workflow and use the form trigger production URL to collect your leads in a smart way "
},
"typeVersion": 1
},
{
"id": "77a064c2-852b-4526-aa8b-9a25d3a56844",
"name": "n8n Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
380,
420
],
"webhookId": "09f63412-7c4a-4752-93cd-ff1c87774226",
"parameters": {
"path": "0bf8840f-1cc4-46a9-86af-a3fa8da80608",
"options": {},
"formTitle": "Contact us",
"formFields": {
"values": [
{
"fieldLabel": "What's your business email?"
}
]
},
"formDescription": "We'll get back to you soon"
},
"typeVersion": 2
},
{
"id": "9e0ea519-0022-4b9b-853a-6d627f2d427b",
"name": "Check if the email is valid",
"type": "n8n-nodes-base.if",
"position": [
800,
420
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "54d84c8a-63ee-40ed-8fb2-301fff0194ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "valid"
}
]
}
},
"typeVersion": 2
},
{
"id": "431c30eb-f9c8-4487-b75c-ee5fcf51a401",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
560
],
"parameters": {
"color": 7,
"width": 162,
"height": 139,
"content": "👆 You can exchange this with any form you like (*e.g. Typeform, Google forms, Survey Monkey...*)"
},
"typeVersion": 1
},
{
"id": "eed9a59d-f0a7-4c0c-a36d-1258580f4fac",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
500
],
"parameters": {
"color": 7,
"width": 162,
"height": 84,
"content": "👆 Adjust the fit as you see necessary"
},
"typeVersion": 1
},
{
"id": "e57ed336-8c89-453a-8632-1ea6ec6c5617",
"name": "Email is not valid, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
1140,
560
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7588462f-7e6c-4273-bead-9ae3d362e341",
"name": "Score lead with MadKudu",
"type": "n8n-nodes-base.httpRequest",
"position": [
1140,
320
],
"parameters": {
"url": "=https://api.madkudu.com/v1/persons?email={{ $json.email }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "71W5Bt9g1G9GOhVL",
"name": "MadKudu Lead score"
}
},
"typeVersion": 4.1
},
{
"id": "eac6b41d-fe4f-4cf4-92f5-6a00dcb68c4d",
"name": "Verify email with Hunter",
"type": "n8n-nodes-base.hunter",
"position": [
600,
420
],
"parameters": {
"email": "={{ $json['What\\'s your business email?'] }}",
"operation": "emailVerifier"
},
"credentials": {
"hunterApi": {
"id": "ecwmdHFSBU5GGnV1",
"name": "Hunter account"
}
},
"typeVersion": 1
},
{
"id": "51c86cbb-2a43-4ced-9787-6c95db62f390",
"name": "Not interesting enough",
"type": "n8n-nodes-base.noOp",
"position": [
1660,
460
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9f0daa67-6685-44b5-a802-8b70f8b91985",
"name": "if customer fit score > 60",
"type": "n8n-nodes-base.if",
"position": [
1380,
320
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c23d7b34-a4ae-421f-bd7a-6a3ebb05aafe",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ $json.properties.customer_fit.score }}",
"rightValue": 60
}
]
}
},
"typeVersion": 2
},
{
"id": "57bf0a97-bf58-43cc-8ab5-e3f298eac5f6",
"name": "Send outreach email",
"type": "n8n-nodes-base.gmail",
"position": [
2100,
120
],
"parameters": {
"sendTo": "={{ $json.to }}",
"message": "={{ $json.html }}",
"options": {
"senderName": "Mutasem from n8n",
"appendAttribution": false
},
"subject": "={{ $json.subject }}"
},
"credentials": {
"gmailOAuth2": {
"id": "rd2agqPeJBD2377h",
"name": "Work Gmail"
}
},
"typeVersion": 2.1
},
{
"id": "a93ee7c1-4b77-45ed-9eb8-2757fbeb2b78",
"name": "Set keys",
"type": "n8n-nodes-base.set",
"position": [
1840,
260
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f3ecc873-2d60-4f2d-bc40-81f9379c725b",
"name": "html",
"type": "string",
"value": "=Hello,\n\nThank you for filling out our form. We are excited to be able to help you.\n\nFeel free to schedle a 30-minute call with me here: www.calendly.com/schedule/mutasem\n\nCheers,\n\nMutasem"
},
{
"id": "9f4f5b68-984b-415e-a110-a35ded22dd41",
"name": "subject",
"type": "string",
"value": "Why n8n?"
},
{
"id": "5362aa67-f3fa-4a6e-b6e8-4c50cc7a3192",
"name": "to",
"type": "string",
"value": "={{ $json.properties.email.value }}"
},
{
"id": "ec4ccaef-374f-4fbc-9dda-3b743a00a146",
"name": "id",
"type": "number",
"value": "={{ $json.vid }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "f04e7151-b4c9-4294-8e3e-24830e601d6b",
"name": "Record engagement in HubSpot",
"type": "n8n-nodes-base.hubspot",
"position": [
2100,
420
],
"parameters": {
"type": "email",
"metadata": {
"html": "={{ $json.html }}",
"subject": "={{ $json.subject }}",
"toEmail": [
"={{ $json.to }}"
],
"firstName": "Mutasem",
"fromEmail": "mutasem@n8n.io"
},
"resource": "engagement",
"authentication": "oAuth2",
"additionalFields": {
"associations": {
"contactIds": "={{ $json.id }}"
}
}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "Gxwfj6z9NwaEC3P5",
"name": "HubSpot account 3"
}
},
"typeVersion": 2
},
{
"id": "92bd62d3-7180-4da6-a52b-31048b48b983",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1820,
160
],
"parameters": {
"color": 7,
"width": 162,
"height": 84,
"content": "👇🏽 Change the content here"
},
"typeVersion": 1
},
{
"id": "cab7bcd9-67af-4cf0-988d-fb2b37b3db8f",
"name": "HubSpot",
"type": "n8n-nodes-base.hubspot",
"position": [
1620,
180
],
"parameters": {
"email": "={{ $json.email }}",
"options": {},
"authentication": "oAuth2",
"additionalFields": {}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "Gxwfj6z9NwaEC3P5",
"name": "HubSpot account 3"
}
},
"typeVersion": 2
}
],
"pinData": {
"n8n Form Trigger": [
{
"formMode": "test",
"submittedAt": "2024-02-22T13:59:54.709Z",
"What's your business email?": "jan@n8n.io"
}
]
},
"connections": {
"HubSpot": {
"main": [
[
{
"node": "Set keys",
"type": "main",
"index": 0
}
]
]
},
"Set keys": {
"main": [
[
{
"node": "Send outreach email",
"type": "main",
"index": 0
},
{
"node": "Record engagement in HubSpot",
"type": "main",
"index": 0
}
]
]
},
"n8n Form Trigger": {
"main": [
[
{
"node": "Verify email with Hunter",
"type": "main",
"index": 0
}
]
]
},
"Score lead with MadKudu": {
"main": [
[
{
"node": "if customer fit score > 60",
"type": "main",
"index": 0
}
]
]
},
"Verify email with Hunter": {
"main": [
[
{
"node": "Check if the email is valid",
"type": "main",
"index": 0
}
]
]
},
"if customer fit score > 60": {
"main": [
[
{
"node": "HubSpot",
"type": "main",
"index": 0
}
],
[
{
"node": "Not interesting enough",
"type": "main",
"index": 0
}
]
]
},
"Check if the email is valid": {
"main": [
[
{
"node": "Score lead with MadKudu",
"type": "main",
"index": 0
}
],
[
{
"node": "Email is not valid, do nothing",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,480 @@
{
"meta": {
"instanceId": "257476b1ef58bf3cb6a46e65fac7ee34a53a5e1a8492d5c6e4da5f87c9b82833"
},
"nodes": [
{
"id": "332e7401-26ac-4ef0-a93c-1290454ffce4",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3180,
820
],
"parameters": {
"color": 5,
"width": 654.1162790697673,
"height": 144.52300171817149,
"content": "### 👨‍🎤 Setup\n1. Add your **Hunter.io**, **Clearbit** and **Pipedrive** credentials \n2. Click the test workflow button\n3. Activate the workflow and use the form trigger production URL to collect your leads in a smart way "
},
"typeVersion": 1
},
{
"id": "59c576d8-0fd2-45e4-849a-67a1125cf61e",
"name": "n8n Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
-3120,
1000
],
"webhookId": "09f63412-7c4a-4752-93cd-ff1c87774226",
"parameters": {
"path": "0bf8840f-1cc4-46a9-86af-a3fa8da80608",
"options": {},
"formTitle": "Contact us",
"formFields": {
"values": [
{
"fieldLabel": "What's your business email?"
}
]
},
"formDescription": "We'll get back to you soon"
},
"typeVersion": 2
},
{
"id": "963caa71-9919-4d14-837d-b879d41a8f93",
"name": "Check if the email is valid",
"type": "n8n-nodes-base.if",
"position": [
-2700,
1000
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "54d84c8a-63ee-40ed-8fb2-301fff0194ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "valid"
}
]
}
},
"typeVersion": 2
},
{
"id": "678db529-69f1-423a-b551-2321590b878a",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3120,
1140
],
"parameters": {
"color": 7,
"width": 162,
"height": 139,
"content": "👆 You can exchange this with any form you like (*e.g. Typeform, Google forms, Survey Monkey...*)"
},
"typeVersion": 1
},
{
"id": "bdd1848c-9b44-4476-9655-be7cb7ac377b",
"name": "Email is not valid, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
-2460,
1120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "40894780-029c-4654-9fba-09463e639eaf",
"name": "Verify email with Hunter",
"type": "n8n-nodes-base.hunter",
"position": [
-2900,
1000
],
"parameters": {
"email": "={{ $json['What\\'s your business email?'] }}",
"operation": "emailVerifier"
},
"credentials": {
"hunterApi": {
"id": "oIxKoEBTBJeT1UrT",
"name": "Hunter account"
}
},
"typeVersion": 1
},
{
"id": "54ea0ab7-6c36-4724-a897-90f5786cc023",
"name": "Clearbit",
"type": "n8n-nodes-base.clearbit",
"position": [
-2040,
900
],
"parameters": {
"email": "={{ $('Check if the email is valid').item.json.email }}",
"resource": "person",
"additionalFields": {}
},
"credentials": {
"clearbitApi": {
"id": "cKDImrinp9tg0ZHW",
"name": "Clearbit account"
}
},
"typeVersion": 1
},
{
"id": "31a7c331-73ab-4704-87ea-ce2d5e57bb7b",
"name": "Person already exists in Pipedrive, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
-2040,
1120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6add279c-0408-4df0-b382-b399a33f633a",
"name": "Is this a new person?",
"type": "n8n-nodes-base.if",
"position": [
-2240,
920
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "f1094c47-4084-4268-9026-ccc0335eeccf",
"operator": {
"type": "number",
"operation": "notExists",
"singleValue": true
},
"leftValue": "={{ $json.id }}",
"rightValue": ""
}
]
}
},
"executeOnce": true,
"typeVersion": 2
},
{
"id": "ad3a1538-a5a9-4e94-9c69-557363ae9490",
"name": "Search for person in Pipedrive",
"type": "n8n-nodes-base.pipedrive",
"position": [
-2460,
920
],
"parameters": {
"term": "={{ $json.email }}",
"resource": "person",
"operation": "search",
"additionalFields": {}
},
"credentials": {
"pipedriveApi": {
"id": "M3l7gIG8DdOex6wX",
"name": "Pipedrive account"
}
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "2515f2e1-0acd-43f8-9868-6a94830aaebd",
"name": "Is this a new organization?",
"type": "n8n-nodes-base.if",
"position": [
-1660,
900
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "f1094c47-4084-4268-9026-ccc0335eeccf",
"operator": {
"type": "number",
"operation": "notExists",
"singleValue": true
},
"leftValue": "={{ $json.id }}",
"rightValue": ""
}
]
}
},
"executeOnce": true,
"typeVersion": 2
},
{
"id": "2933eba8-d5fa-4178-8c9e-b330f6f3a529",
"name": "Create Organization",
"type": "n8n-nodes-base.pipedrive",
"position": [
-1460,
780
],
"parameters": {
"name": "={{ $('Clearbit').item.json.employment.name }}",
"resource": "organization",
"additionalFields": {}
},
"credentials": {
"pipedriveApi": {
"id": "M3l7gIG8DdOex6wX",
"name": "Pipedrive account"
}
},
"typeVersion": 1
},
{
"id": "8814f8f9-7dac-4cf3-8743-8ee9beb58b7c",
"name": "Search for organization in Pipedrive",
"type": "n8n-nodes-base.pipedrive",
"position": [
-1820,
900
],
"parameters": {
"term": "={{ $json.employment.name }}",
"resource": "organization",
"operation": "search",
"additionalFields": {}
},
"credentials": {
"pipedriveApi": {
"id": "M3l7gIG8DdOex6wX",
"name": "Pipedrive account"
}
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "13af2942-ad5e-4ad4-8b2d-442131507047",
"name": "Create Person",
"type": "n8n-nodes-base.pipedrive",
"position": [
-1280,
920
],
"parameters": {
"name": "={{ $('Clearbit').item.json.name.fullName }}",
"resource": "person",
"additionalFields": {
"email": [
"={{ $('Clearbit').item.json.email }}"
],
"org_id": "={{ $json.id }}"
}
},
"credentials": {
"pipedriveApi": {
"id": "M3l7gIG8DdOex6wX",
"name": "Pipedrive account"
}
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "ed923d21-abfe-4b60-8d1b-5f976a56dbbe",
"name": "Create lead",
"type": "n8n-nodes-base.pipedrive",
"position": [
-1120,
920
],
"parameters": {
"title": "={{ $json.name }} from {{ $json.org_id.name }}",
"resource": "lead",
"person_id": "={{ $json.id }}",
"associateWith": "person",
"additionalFields": {
"organization_id": "={{ $json.org_id.value }}"
}
},
"credentials": {
"pipedriveApi": {
"id": "M3l7gIG8DdOex6wX",
"name": "Pipedrive account"
}
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Clearbit": {
"main": [
[
{
"node": "Search for organization in Pipedrive",
"type": "main",
"index": 0
}
]
]
},
"Create Person": {
"main": [
[
{
"node": "Create lead",
"type": "main",
"index": 0
}
]
]
},
"n8n Form Trigger": {
"main": [
[
{
"node": "Verify email with Hunter",
"type": "main",
"index": 0
}
]
]
},
"Create Organization": {
"main": [
[
{
"node": "Create Person",
"type": "main",
"index": 0
}
]
]
},
"Is this a new person?": {
"main": [
[
{
"node": "Clearbit",
"type": "main",
"index": 0
}
],
[
{
"node": "Person already exists in Pipedrive, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Verify email with Hunter": {
"main": [
[
{
"node": "Check if the email is valid",
"type": "main",
"index": 0
}
]
]
},
"Check if the email is valid": {
"main": [
[
{
"node": "Search for person in Pipedrive",
"type": "main",
"index": 0
}
],
[
{
"node": "Email is not valid, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Is this a new organization?": {
"main": [
[
{
"node": "Create Organization",
"type": "main",
"index": 0
}
],
[
{
"node": "Create Person",
"type": "main",
"index": 0
}
]
]
},
"Search for person in Pipedrive": {
"main": [
[
{
"node": "Is this a new person?",
"type": "main",
"index": 0
}
]
]
},
"Search for organization in Pipedrive": {
"main": [
[
{
"node": "Is this a new organization?",
"type": "main",
"index": 0
}
]
]
}
}
}