リード候補リストの構築

中級

これはLead Generation分野の自動化ワークフローで、13個のノードを含みます。主にIf, Code, Wait, Gmail, Filterなどのノードを使用。 ターゲットのリードリストを構築する:Surfe から HubSpot へリードを検索し、リッチ化する

前提条件
  • Googleアカウント + Gmail API認証情報
  • HubSpot API Key
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "mtCQYada6O64BILe",
  "meta": {
    "instanceId": "1c6299b01fe56ad80280bbb1a8394f761ca72a9606abe611a4617f9adc407187"
  },
  "name": "Building Prospecting Lists",
  "tags": [],
  "nodes": [
    {
      "id": "2299f88a-bfeb-4d28-8164-704a40c9cdae",
      "name": "ICP企業を検索",
      "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": "企業内の人物を検索",
      "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": "JSON ペイロード拡充リクエストを準備",
      "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 一括拡充 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 拡充ステータスを確認",
      "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": "拡充は完了したか?",
      "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": "3秒間待機",
      "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": "Surfe API レスポンスから人物リストを抽出",
      "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": "フィルター: 電話番号 AND メール",
      "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: 作成または更新",
      "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": "ワークフロー実行時",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1780,
        125
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b07b72bb-f631-4e60-9ad8-6cba88df6604",
      "name": "JSON ペイロードを企業ドメインで準備",
      "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
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - リード獲得

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数13
カテゴリー1
ノードタイプ8
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
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

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34