8
n8n 中文网amn8n.com

获取公司 LinkedIn 页面

高级

这是一个Sales领域的自动化工作流,包含 16 个节点。主要使用 If, Set, Airtop, Filter, FormTrigger 等节点。 使用 Airtop 查找公司 LinkedIn 页面

前置要求
  • 无特殊前置要求,导入即可使用

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "JuW1Q92YSk4ErvvC",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "获取公司 LinkedIn 页面",
  "tags": [],
  "nodes": [
    {
      "id": "293786b0-e37d-4c79-83fc-2c3bbae1752b",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -40,
        -120
      ],
      "webhookId": "b69c6918-139e-4103-9307-bf186cf3115a",
      "parameters": {
        "options": {},
        "formTitle": "Company LinkedIn",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Company domain",
              "placeholder": "company.com",
              "requiredField": true
            },
            {
              "fieldLabel": "Airtop Profile (connected to Linkedin)",
              "requiredField": true
            }
          ]
        },
        "formDescription": "=<p>This automation searches for a company's LinkedIn page.</p>\n\n<p>The automation requires an Airtop Profile name that is authenticated on Linkedin. Don't have one? Create a free Profile and log-in to X at - <a href=\"https://portal.airtop.ai/browser-profiles\">https://portal.airtop.ai/browser-profiles</a></p>"
      },
      "typeVersion": 2.2
    },
    {
      "id": "311095ba-b1b7-4080-ab0e-814b3c216003",
      "name": "统一参数",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -20
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ca4288c1-9336-4c1e-8eee-4e96c2f240cc",
              "name": "Company domain",
              "type": "string",
              "value": "={{ $json[\"Company domain\"] }}"
            },
            {
              "id": "efcc1d50-ff92-4420-af90-63ff7863cc1a",
              "name": "Airtop Profile",
              "type": "string",
              "value": "={{ $json[\"Airtop Profile (connected to Linkedin)\"] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "1f3f3545-6960-42dc-823e-10be62dfb3c7",
      "name": "公司 LinkedIn 存在吗?",
      "type": "n8n-nodes-base.filter",
      "position": [
        1520,
        -40
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "955d2f74-f1ae-46a6-ba1f-894e39c552bd",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.data.modelResponse }}",
              "rightValue": "linkedin.com/company"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "d939dbee-98ec-49aa-94d9-8c36912fd8d7",
      "name": "映射数据",
      "type": "n8n-nodes-base.set",
      "position": [
        1980,
        -140
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "02614eff-4a1e-479f-9b50-c2d5f7fead35",
              "name": "company_linkedin",
              "type": "string",
              "value": "={{ $json.company_linkedin }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "31c29d58-730e-4610-b41f-814ba9775159",
      "name": "当被其他工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -40,
        80
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "Company domain"
            },
            {
              "name": "Airtop Profile (connected to Linkedin)"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "c2952fbe-0622-4c0e-8d93-f34ccde536a7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -220
      ],
      "parameters": {
        "width": 400,
        "height": 460,
        "content": "## 输入参数"
      },
      "typeVersion": 1
    },
    {
      "id": "c020ca75-1cae-43aa-bd84-97be6da53a05",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        -220
      ],
      "parameters": {
        "color": 4,
        "width": 260,
        "height": 460,
        "content": "## 查询网页"
      },
      "typeVersion": 1
    },
    {
      "id": "61060ba2-5b44-4e9e-a9d6-b99769ed2426",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        -60
      ],
      "parameters": {
        "color": 5,
        "width": 920,
        "height": 280,
        "content": "## 搜索 LinkedIn"
      },
      "typeVersion": 1
    },
    {
      "id": "1c21c09e-22ca-4c1d-8a92-92fd23a3bcc0",
      "name": "网页搜索",
      "type": "n8n-nodes-base.airtop",
      "onError": "continueRegularOutput",
      "position": [
        400,
        -20
      ],
      "parameters": {
        "url": "={{ $json[\"Company domain\"] }}",
        "prompt": "This is the webpage for a company. Search for the linkedin of the company, it is highly probable that it is in the footer. Return only the link",
        "resource": "extraction",
        "operation": "query",
        "profileName": "={{ $('Unify parameters').item.json[\"Airtop Profile\"] }}",
        "sessionMode": "new",
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d306ed90-f949-4f23-904a-375e0fd65a59",
      "name": "LinkedIn 搜索",
      "type": "n8n-nodes-base.airtop",
      "maxTries": 2,
      "position": [
        840,
        60
      ],
      "parameters": {
        "url": "=https://www.linkedin.com/search/results/companies/?keywords={{  encodeURIComponent(['org','com','co','fr','us','uk','de','es','it','nl','ca','au','in','jp'].includes($('Unify parameters').item.json[\"Company domain\"].split('.').at(-1)) ? $('Unify parameters').item.json[\"Company domain\"].split('.')[0] : $('Unify parameters').item.json[\"Company domain\"].split('.').join(\" \")\n) }}",
        "prompt": "=This is Linked Search results. One of the first results should be the Linkedin Page of {{ $('Unify parameters').item.json[\"Company domain\"] }}\nReturn the Linkedin URL of the most likely page and nothing else.",
        "resource": "extraction",
        "operation": "query",
        "profileName": "={{ $('Unify parameters').item.json[\"Airtop Profile\"] }}",
        "sessionMode": "new",
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "e01562fd-0222-42fe-8d5b-80dd2d20e136",
      "name": "找到 LinkedIn 链接了吗?",
      "type": "n8n-nodes-base.if",
      "position": [
        620,
        -120
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bc93d626-bed0-4f63-8145-f2514b0ba38d",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.data.modelResponse }}",
              "rightValue": "linkedin.com/company"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "44767679-1c79-4257-9f6e-ef0cae6fdd6c",
      "name": "找到 LinkedIn 链接了吗?1",
      "type": "n8n-nodes-base.if",
      "position": [
        1080,
        40
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bc93d626-bed0-4f63-8145-f2514b0ba38d",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.data.modelResponse }}",
              "rightValue": "linkedin.com/company"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "0570831d-5172-4621-9fab-ad8d022f3065",
      "name": "Google 搜索",
      "type": "n8n-nodes-base.airtop",
      "maxTries": 2,
      "position": [
        1360,
        60
      ],
      "parameters": {
        "url": "=https://www.google.com/search?q={{  encodeURIComponent(`${$('Unify parameters').item.json[\"Company domain\"]} LinkedIn`) }}",
        "prompt": "=This is Google Search results. One of the first results should be the Linkedin Page of {{ $('Unify parameters').item.json[\"Company domain\"] }}\nReturn the Linkedin URL of the most likely page and nothing else.\nIf can't find the URL return 'NA'\nA valid Linkedin profile URL starts with \"https://www.linkedin.com/company/\"",
        "resource": "extraction",
        "operation": "query",
        "profileName": "=",
        "sessionMode": "new",
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "c928ff04-0a60-4be4-972b-c60cdfe9e246",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        -220
      ],
      "parameters": {
        "color": 6,
        "width": 400,
        "height": 440,
        "content": "## 验证 LinkedIn URL"
      },
      "typeVersion": 1
    },
    {
      "id": "be500c1a-af4a-4a4d-83c0-c4557aed7a38",
      "name": "验证 LinkedIn 链接",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        1760,
        -140
      ],
      "parameters": {
        "options": {},
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "5oytfka3VbKglzBE",
          "cachedResultName": "AIRTOP — Verify Company LinkedIn by Domain"
        },
        "workflowInputs": {
          "value": {
            "Company Domain": "={{ $('Unify parameters').item.json[\"Company domain\"] }}",
            "Company LinkedIn": "={{ $json.data.modelResponse }}",
            "Airtop Profile (connected to Linkedin)": "={{ $('Unify parameters').item.json[\"Airtop Profile\"] }}"
          },
          "schema": [
            {
              "id": "Company LinkedIn",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Company LinkedIn",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Company Domain",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Company Domain",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Airtop Profile (connected to Linkedin)",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Airtop Profile (connected to Linkedin)",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": true
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c2b5aff0-cea1-4564-a512-273e62c95495",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        -480
      ],
      "parameters": {
        "width": 700,
        "height": 1040,
        "content": "自述文件"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a26d6a2d-0cc4-4c5f-b126-c1c118955814",
  "connections": {
    "Google search": {
      "main": [
        [
          {
            "node": "Company LinkedIn exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webpage search": {
      "main": [
        [
          {
            "node": "LinkedIn link found?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linkedin search": {
      "main": [
        [
          {
            "node": "LinkedIn link found?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unify parameters": {
      "main": [
        [
          {
            "node": "Webpage search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Unify parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn link found?": {
      "main": [
        [
          {
            "node": "Verify LinkedIn link",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Linkedin search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify LinkedIn link": {
      "main": [
        [
          {
            "node": "Map data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn link found?1": {
      "main": [
        [
          {
            "node": "Company LinkedIn exists?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company LinkedIn exists?": {
      "main": [
        [
          {
            "node": "Verify LinkedIn link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Unify parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 销售

需要付费吗?

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

工作流信息
难度等级
高级
节点数量16
分类1
节点类型8
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者

Airtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words

外部链接
在 n8n.io 查看

分享此工作流