Lead-Liste erstellen

Fortgeschritten

Dies ist ein Lead Generation-Bereich Automatisierungsworkflow mit 13 Nodes. Hauptsächlich werden If, Code, Wait, Gmail, Filter und andere Nodes verwendet. Ziel-Lead-Liste erstellen: Leads mit Surfe zu HubSpot finden und anreichern

Voraussetzungen
  • Google-Konto + Gmail API-Anmeldedaten
  • HubSpot API Key
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "id": "mtCQYada6O64BILe",
  "meta": {
    "instanceId": "1c6299b01fe56ad80280bbb1a8394f761ca72a9606abe611a4617f9adc407187"
  },
  "name": "Building Prospecting Lists",
  "tags": [],
  "nodes": [
    {
      "id": "2299f88a-bfeb-4d28-8164-704a40c9cdae",
      "name": "Suche nach ICP-Unternehmen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1560,
        125
      ],
      "parameters": {
        "url": "https://api.surfe.com/v2/companies/search",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "jsonBody": "{\n  \"filters\": {\n    \"industries\": [\"Software\", \"Apps\", \"SaaS\"],\n    \"employeeCount\": {\n        \"from\": 1,\n        \"to\": 35\n      },\n    \"countries\": [\"FR\"],\n    \"revenues\": [\"1-10M\"]\n  },\n  \"limit\": 20\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "5b7477c1-1a29-42ff-bd2c-207edeb49839",
      "name": "Suche nach Personen in Unternehmen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1120,
        125
      ],
      "parameters": {
        "url": "https://api.surfe.com/v2/people/search",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "jsonBody": "={{ $json }}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "de26445a-750e-4b12-83f7-4a864e146b8e",
      "name": "Vorbereitung der JSON Payload-Anreicherungsanfrage",
      "type": "n8n-nodes-base.code",
      "position": [
        -900,
        125
      ],
      "parameters": {
        "jsCode": "const people = $json.people || [];\n\nreturn [\n  {\n    json: {\n      \"include\": {\n        \"email\": true,\n        \"linkedInUrl\": false,\n        \"mobile\": true\n      },\n      \"notificationOptions\": {\n        \"webhookUrl\": \"\"\n      },\n      people: people.map((person) => ({\n        firstName: person.firstName || \"\",\n        lastName: person.lastName || \"\",\n        companyName: person.companyName || \"\",\n        companyDomain: person.companyDomain || \"\",\n        linkedinUrl: person.linkedInUrl || \"\",\n        externalID: `${person.firstName}_${person.lastName}_${person.companyDomain}`.toLowerCase().replace(/[^a-z0-9_]/g, '_')\n      }))\n    }\n  }\n];"
      },
      "typeVersion": 2
    },
    {
      "id": "a4e45b9e-327b-4ca2-9338-c2739ef93841",
      "name": "Surfe Bulk-Anreicherungen API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -680,
        125
      ],
      "parameters": {
        "url": "https://api.surfe.com/v2/people/enrich",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "jsonBody": "={{ $json }}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "8ec1dbe8-b0c3-413b-9576-74cabfbaed70",
      "name": "Surfe Anreicherungsstatus prüfen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -460,
        125
      ],
      "parameters": {
        "url": "=https://api.surfe.com/v2/people/enrich/{{ $json.enrichmentID }}",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "b9bba6b6-6d14-400a-bba0-64a06f4ce343",
      "name": "Ist die Anreicherung abgeschlossen?",
      "type": "n8n-nodes-base.if",
      "position": [
        -240,
        50
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "65a670df-84e8-4c87-956c-96758b8d8d26",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "COMPLETED"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "d6a21f33-d87d-4d9f-8d1d-597a943a0391",
      "name": "Warte 3 Sekunden",
      "type": "n8n-nodes-base.wait",
      "position": [
        -20,
        225
      ],
      "webhookId": "faddf14b-4e33-4108-a141-c1a172e0a5d1",
      "parameters": {
        "amount": 3
      },
      "typeVersion": 1.1
    },
    {
      "id": "1f811e79-79b2-46b6-8bac-0e94eb63c2d8",
      "name": "Personenliste aus Surfe API Antwort extrahieren",
      "type": "n8n-nodes-base.code",
      "position": [
        -20,
        0
      ],
      "parameters": {
        "jsCode": "const people = $json.people || [];\n\nreturn people.map(person => {\n  return {\n    json: {\n      id: person.id || '',\n      firstName: person.firstName || '',\n      lastName: person.lastName || '',\n      email: person.emails?.[0]?.email || '',\n      phone: person.mobilePhones?.[0]?.mobilePhone || '',\n      jobTitle: person.jobTitle || '',\n      companyName: person.companyName || '',\n      companyWebsite: person.companyDomain || '',\n      linkedinUrl: person.linkedInUrl || '',\n      country: person.country || '',\n      status: person.status || ''\n    }\n  };\n});"
      },
      "typeVersion": 2
    },
    {
      "id": "043348d5-0bb7-40d6-be4d-ad3c2a7658de",
      "name": "Filter: Telefon UND E-Mail",
      "type": "n8n-nodes-base.filter",
      "position": [
        200,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "4f8f9bec-6eee-4e62-8d5f-e8f5b85620d6",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              },
              "leftValue": "={{ $json.phone }}",
              "rightValue": ""
            },
            {
              "id": "007f5a66-4e2a-42bc-bbed-0fb2b2f39ae7",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              },
              "leftValue": "={{ $json.email }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "814c954b-749c-4b9a-93ca-70cdf9a48505",
      "name": "HubSpot: Erstellen oder Aktualisieren",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        420,
        0
      ],
      "parameters": {
        "email": "={{ $json.email }}",
        "options": {
          "resolveData": false
        },
        "authentication": "appToken",
        "additionalFields": {
          "country": "={{ $json.country }}",
          "jobTitle": "={{ $json.jobTitle }}",
          "lastName": "={{ $json.lastName }}",
          "firstName": "={{ $json.firstName }}",
          "websiteUrl": "={{ $json.linkedinUrl }}",
          "companyName": "={{ $json.companyName }}",
          "phoneNumber": "={{ $json.phone }}"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "25faa3d0-e800-4a68-a7da-b4295f9b03ae",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "notes": "Notify end of enrichement",
      "position": [
        640,
        0
      ],
      "webhookId": "b46c028e-8212-40fe-b4d5-0f7c1890585e",
      "parameters": {
        "sendTo": "<YOUR_EMAIL>",
        "message": "Your ICP prospecting enrichment is done.",
        "options": {},
        "subject": "Your ICP prospecting enrichment is done."
      },
      "executeOnce": true,
      "notesInFlow": true,
      "typeVersion": 2.1
    },
    {
      "id": "e6daaf79-f53c-4059-80f7-8bfd2df14ebf",
      "name": "Bei Klick auf 'Workflow ausführen'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1780,
        125
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b07b72bb-f631-4e60-9ad8-6cba88df6604",
      "name": "Vorbereitung des JSON PAYLOAD MIT Unternehmensdomänen",
      "type": "n8n-nodes-base.code",
      "position": [
        -1340,
        125
      ],
      "parameters": {
        "jsCode": "const companies = $json.companyDomains || [];\n\nreturn {\n    \"companies\": {\n      \"domains\": companies\n    },\n    \"limit\": 20\n  };\n\n"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9df5b0c2-a0af-4178-85ce-94fd0b835535",
  "connections": {
    "d6a21f33-d87d-4d9f-8d1d-597a943a0391": {
      "main": [
        [
          {
            "node": "8ec1dbe8-b0c3-413b-9576-74cabfbaed70",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2299f88a-bfeb-4d28-8164-704a40c9cdae": {
      "main": [
        [
          {
            "node": "b07b72bb-f631-4e60-9ad8-6cba88df6604",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "043348d5-0bb7-40d6-be4d-ad3c2a7658de": {
      "main": [
        [
          {
            "node": "814c954b-749c-4b9a-93ca-70cdf9a48505",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b9bba6b6-6d14-400a-bba0-64a06f4ce343": {
      "main": [
        [
          {
            "node": "1f811e79-79b2-46b6-8bac-0e94eb63c2d8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "d6a21f33-d87d-4d9f-8d1d-597a943a0391",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "814c954b-749c-4b9a-93ca-70cdf9a48505": {
      "main": [
        [
          {
            "node": "25faa3d0-e800-4a68-a7da-b4295f9b03ae",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5b7477c1-1a29-42ff-bd2c-207edeb49839": {
      "main": [
        [
          {
            "node": "de26445a-750e-4b12-83f7-4a864e146b8e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a4e45b9e-327b-4ca2-9338-c2739ef93841": {
      "main": [
        [
          {
            "node": "8ec1dbe8-b0c3-413b-9576-74cabfbaed70",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8ec1dbe8-b0c3-413b-9576-74cabfbaed70": {
      "main": [
        [
          {
            "node": "b9bba6b6-6d14-400a-bba0-64a06f4ce343",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e6daaf79-f53c-4059-80f7-8bfd2df14ebf": {
      "main": [
        [
          {
            "node": "2299f88a-bfeb-4d28-8164-704a40c9cdae",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "de26445a-750e-4b12-83f7-4a864e146b8e": {
      "main": [
        [
          {
            "node": "a4e45b9e-327b-4ca2-9338-c2739ef93841",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b07b72bb-f631-4e60-9ad8-6cba88df6604": {
      "main": [
        [
          {
            "node": "5b7477c1-1a29-42ff-bd2c-207edeb49839",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f811e79-79b2-46b6-8bac-0e94eb63c2d8": {
      "main": [
        [
          {
            "node": "043348d5-0bb7-40d6-be4d-ad3c2a7658de",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Lead-Generierung

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes13
Kategorie1
Node-Typen8
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Autor
go-surfe

go-surfe

@go-surfe

Save time and sell more with Surfe's API via n8n workflows. - Accurate data you can trust - Results in milliseconds - Scalable and versatile - Full automation For more check out: 💻 https://www.surfe.com?utm_source=n8n 🔗 https://www.linkedin.com/company/surfe/ 👾 https://github.com/surfe/api-examples

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34