8
n8n 中文网amn8n.com

LinkedIn潜在客户生成(GPT-4o、Apify爬取与自动触达)

中级

这是一个Lead Generation, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 Aggregate, FormTrigger, HttpRequest, GoogleSheets, OpenAi 等节点。 LinkedIn潜在客户生成(GPT-4o、Apify爬取与自动触达)

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "6570b9a3c619b905a29a1c8dcd31f41add28a4b324f4ec6bd206e06c2b9731cf"
  },
  "nodes": [
    {
      "id": "161feae7-64f3-470a-8747-880024aed008",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1168,
        224
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData"
      },
      "typeVersion": 1
    },
    {
      "id": "f72f38e9-b5b1-4481-8248-f568c8b20123",
      "name": "您想要抓取的目标受众描述",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -288,
        224
      ],
      "webhookId": "6aac0ee2-c7d7-427a-ad13-ff570c7f7209",
      "parameters": {
        "options": {},
        "formTitle": "Audience ",
        "formFields": {
          "values": [
            {
              "fieldLabel": "descritpion of the company ",
              "placeholder": "company location,size,industry etc ",
              "requiredField": true
            }
          ]
        },
        "formDescription": "describe your audinece in plain text"
      },
      "typeVersion": 2.2
    },
    {
      "id": "bddc1d94-d65d-4d8f-811b-81a6c1d5f88f",
      "name": "为 Apify 抓取生成 Apollo URL",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -48,
        224
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "chatgpt-4o-latest",
          "cachedResultName": "CHATGPT-4O-LATEST"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "you are a helpful intelligent sales assitant "
            },
            {
              "content": "your task is to take as input of a prospect audeince and turn that into a apollo serach URL here is an example of the URL \nhttps://app.apollo.io/#/people?personLocations[]=United%20States&includedOrganizationKeywordFields[]=tags&includedOrganizationKeywordFields[]=name&sortAscending=false&sortByField=recommendations_score&qKeywords=marketing%20agency%20&page=1&personTitles[]=ceo%20and%20founder&personTitles[]=co-founder\nThis url describes a search for peolpe that are \n-located in the united state \n- Holds the titles: CEO,founder,co founder \n- have a keyword assosiated with \"marketing \"agency\"\nyou can only make changes to these fields only \nreturn your response as using this format  \n{\"SearchUrl\":\"SearchUrlgoeshere\"}"
            },
            {
              "content": "={{ $json['descritpion of the company '] }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "id": "6theco8aTqbElchh",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "f85a5a7f-97b8-445d-bb39-40671595b72e",
      "name": "运行 Apify actor 抓取潜在客户",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        352,
        224
      ],
      "parameters": {
        "url": "https://api.apify.com/v2/acts/jljBwyyQakqrL1wae/run-sync-get-dataset-items",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"cleanOutput\": true,\n    \"url\": \"{{ $json.message.content.SearchUrl }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "Bearer api key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "6cb4458f-c921-4e9b-ad10-581b47e42c2e",
      "name": "通过抓取 LinkedIn 数据生成破冰话题",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        560,
        224
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "chatgpt-4o-latest",
          "cachedResultName": "CHATGPT-4O-LATEST"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "you are a helpful "
            },
            {
              "content": "your task is to input a bunch of linkedin profile information of a user, and then geenrate a very short,very punchy incebreaker that i can use as a variable in my connection request \nreturn your output in this format \n{\"Icebreaker\":\"Icebreakergoeshere\"}\nin order to ensure icebreakers are punchy and high quality, make them follow this template \nHey {{name}}, loved seeing {{thingaboutThem}}, Im also into {{plausibleTieIN}}, thought Id connect.\nFor {{thingaboutThem}}and {{plausibleTiein}}, never use the exact information provided in a linked in field. instead,always parapharse. this makes it seems human written instead of just an automated message, Also, make it super short. Dont say stuff like \"\"passionate about truning vision into reality \" or anything like that be extremely Laconic and spartan."
            },
            {
              "content": "{\"LinkedInFields\":\"Danielle Morgan, Fort Lauderdale, Founder & CEO at DM Creative Agency, previous experience: Regional Sales Director at Out East Eyewear, Account Director at Radancy\"}\n"
            },
            {
              "content": "map the prospect's LinkedIn or details from the previous node. "
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "6theco8aTqbElchh",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "423b22af-c02f-4abc-a77e-8050dcca9c90",
      "name": "将破冰话题添加到 Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        944,
        224
      ],
      "parameters": {
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "642dd7d3-a634-4cb5-b930-1021a594413d",
      "name": "触发 Phantom Buster 发送个性化连接请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1392,
        224
      ],
      "parameters": {
        "url": "https://api.phantombuster.com/api/v2/(your agent id goes here)/launch",
        "method": "POST",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Phantombuster-Key",
              "value": "api key goes here"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9f714cd6-82dd-4e85-b076-cf01542d8395",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        80
      ],
      "parameters": {
        "height": 336,
        "content": "创建 Google Sheet 并添加相关列:姓名、LinkedIn URL、公司网站、描述以及由 Apify 节点生成的其他列,并进行相应映射"
      },
      "typeVersion": 1
    },
    {
      "id": "bbd5ef47-3815-4157-9269-c558e0fe7d26",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -32
      ],
      "parameters": {
        "height": 384,
        "content": "触发 Phantom Buster(一个发送 LinkedIn 连接请求的平台)向您的潜在客户发送请求。您需要前往 API 凭据获取相关 URL,但我已为连接请求硬编码了一个 URL,并将您的 API 密钥添加到请求头中。您正在运行的代理的代理 ID 将在 Phantom Buster 中该代理的 URL 中可用,无需请求体。"
      },
      "typeVersion": 1
    },
    {
      "id": "792ddc3b-1c38-4e7b-b84e-36c7009b6689",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        80
      ],
      "parameters": {
        "height": 304,
        "content": "为 GPT-4o 硬编码了生成破冰话题的提示;根据您的需求修改此提示"
      },
      "typeVersion": 1
    },
    {
      "id": "7b0d00de-8404-4bb5-bd9b-9201bab7ef62",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        128
      ],
      "parameters": {
        "height": 224,
        "content": "发送请求以运行抓取潜在客户的 Apify actor;所有配置已完成,请添加您的 API 密钥"
      },
      "typeVersion": 1
    },
    {
      "id": "de1af1ca-e857-4e37-8786-104300f73cad",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        64
      ],
      "parameters": {
        "height": 352,
        "content": "使用 GPT-4o 生成 Apollo URL,该 URL 将被 Apify actor 抓取以获取潜在客户数据。URL 是根据您在表单中输入的信息生成的。"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Description of the audience you want to scrap": [
      {
        "formMode": "test",
        "submittedAt": "2025-07-01T17:14:00.111+05:00",
        "descritpion of the company ": "i want a creative agency in united state with 1-1000 employess"
      }
    ]
  },
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "trigger phantom buster to send personlized connection request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Adding ice breaker to google sheets": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run apify actor to scrap the proscpect": {
      "main": [
        [
          {
            "node": "Genrate ice breaker by scraping linkedin data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Genrating appolo Url for apify to scrap": {
      "main": [
        [
          {
            "node": "Run apify actor to scrap the proscpect",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Description of the audience you want to scrap": {
      "main": [
        [
          {
            "node": "Genrating appolo Url for apify to scrap",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Genrate ice breaker by scraping linkedin data": {
      "main": [
        [
          {
            "node": "Adding ice breaker to google sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 潜在客户开发, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量12
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流