LinkedIn 节点

使用 Anysite LinkedIn 节点在 n8n 工作流中提取 LinkedIn 数据

概述

Anysite LinkedIn 节点在您的 n8n 工作流中提供全面的 LinkedIn 数据提取功能。搜索用户、公司、帖子,并提取详细的个人资料信息。

节点配置

认证

从下拉菜单中选择您的 Anysite API 凭证,或创建新凭证。

可用操作

搜索用户

搜索 LinkedIn 用户和个人资料。

参数:

输出示例:

{
  "users": [
    {
      "id": "user123",
      "name": "John Smith",
      "headline": "Senior Software Engineer at Tech Corp",
      "location": "San Francisco, CA",
      "profileUrl": "https://linkedin.com/in/johnsmith",
      "followers": 2500,
      "connections": 500
    }
  ]
}

获取用户资料

获取特定用户的详细个人资料信息。

参数:

输出示例:

{
  "profile": {
    "id": "user123",
    "name": "John Smith",
    "headline": "Senior Software Engineer at Tech Corp",
    "summary": "Experienced engineer with 8+ years...",
    "experience": [
      {
        "company": "Tech Corp",
        "position": "Senior Software Engineer",
        "duration": "2022 - Present",
        "description": "Lead backend development..."
      }
    ],
    "education": [...],
    "skills": ["Python", "AWS", "Kubernetes"],
    "recentPosts": [...]
  }
}

搜索公司

搜索 LinkedIn 公司和组织。

参数:

输出示例:

{
  "companies": [
    {
      "id": "company456",
      "name": "Tech Corp Inc",
      "industry": "Computer Software",
      "size": "1001-5000 employees",
      "location": "San Francisco, CA",
      "website": "https://techcorp.com",
      "followers": 125000
    }
  ]
}

获取用户帖子

从 LinkedIn 用户提取帖子和活动。

参数:

输出示例:

{
  "posts": [
    {
      "id": "post789",
      "text": "Excited to announce our new product launch...",
      "publishedAt": "2024-08-26T10:00:00Z",
      "reactions": {
        "likes": 45,
        "comments": 12,
        "reposts": 8
      },
      "mediaUrls": ["https://example.com/image.jpg"]
    }
  ]
}

工作流示例

潜在客户生成工作流

搜索潜在客户

使用 LinkedIn 搜索用户操作,根据职位、公司或行业查找潜在客户。

提取详细资料

对于找到的每个潜在客户,使用"获取用户资料"收集包括工作经历、技能和近期活动在内的全面信息。

筛选和评分

使用 n8n 的内置节点根据条件筛选潜在客户并分配潜在客户分数。

存储结果

使用 n8n 的集成节点将合格的潜在客户保存到您的 CRM、数据库或 Google Sheets。

工作流示例:

{
  "nodes": [
    {
      "name": "LinkedIn Search",
      "type": "@horizondatawave/n8n-nodes-anysite.LinkedIn",
      "operation": "searchUsers",
      "parameters": {
        "query": "marketing manager",
        "filters": {
          "location": "New York",
          "industry": "Technology"
        },
        "limit": 50
      }
    },
    {
      "name": "Get Full Profiles",
      "type": "@horizondatawave/n8n-nodes-anysite.LinkedIn",
      "operation": "getUserProfile",
      "parameters": {
        "userId": "={{ $json.id }}",
        "includePosts": true,
        "postLimit": 5
      }
    },
    {
      "name": "Filter Qualified Leads",
      "type": "n8n-nodes-base.filter",
      "parameters": {
        "conditions": [
          {
            "field": "experience[0].company",
            "operation": "notEqual",
            "value": "Competitor Corp"
          }
        ]
      }
    },
    {
      "name": "Save to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "parameters": {
        "operation": "append",
        "sheetId": "your-sheet-id",
        "values": [
          "={{ $json.name }}",
          "={{ $json.headline }}",
          "={{ $json.location }}",
          "={{ $json.profileUrl }}"
        ]
      }
    }
  ]
}

内容研究工作流

跟踪行业领袖发布的内容:

  1. 搜索行业领袖 - 在您的行业中找到思想领袖
  2. 获取最近帖子 - 提取他们最新的内容和互动指标
  3. 分析趋势 - 使用 AI 节点识别热门话题和主题
  4. 生成内容创意 - 根据分析创建内容建议
  5. 安排通知 - 向您的团队发送重要趋势的提醒

竞争对手分析工作流

监控竞争对手活动和员工动态:

  1. 跟踪竞争对手员工 - 搜索竞争对手公司的员工
  2. 监控职位变动 - 检测关键员工离职或加入竞争对手
  3. 分析公司更新 - 跟踪竞争对手公司页面的更新和公告
  4. 情感分析 - 通过员工帖子分析员工情绪
  5. 生成报告 - 创建每周竞争情报报告

错误处理

常见错误

超出速率限制

错误: 429 - Rate limit exceeded

解决方案:

用户未找到

错误: 404 - User not found

解决方案:

无效的搜索查询

错误: 400 - Invalid search parameters

解决方案:

重试逻辑示例

{
  "name": "LinkedIn with Retry",
  "type": "@horizondatawave/n8n-nodes-anysite.LinkedIn",
  "retryOnFail": true,
  "maxTries": 3,
  "waitBetweenTries": 2000,
  "parameters": {
    "operation": "searchUsers",
    "query": "software engineer"
  }
}

速率限制最佳实践

请求间隔

在批量操作之间添加延迟:

{
  "name": "Delay Between Requests",
  "type": "n8n-nodes-base.wait",
  "parameters": {
    "amount": 1,
    "unit": "seconds"
  }
}

批量处理

将大型数据集分成较小的批次处理:

{
  "name": "Split Into Batches",
  "type": "n8n-nodes-base.splitInBatches",
  "parameters": {
    "batchSize": 10
  }
}

高级功能

动态筛选

使用表达式创建动态搜索筛选器:

// 基于前一数据的动态地点筛选
{
  "location": "={{ $json.companyHeadquarters }}",
  "industry": "={{ $json.targetIndustry }}"
}

数据丰富

将 LinkedIn 数据与其他来源结合:

{
  "workflow": [
    "LinkedIn Search → Get Profiles",
    "Email Finder → Enrich with Contacts",
    "Company Data → Add Firmographic Info",
    "CRM Integration → Update Lead Records"
  ]
}

内容分析

使用 AI 节点分析 LinkedIn 帖子:

// LinkedIn 帖子情感分析
{
  "name": "Analyze Post Sentiment",
  "type": "n8n-nodes-base.openAi",
  "parameters": {
    "operation": "analyze",
    "prompt": "Analyze the sentiment of this LinkedIn post: {{ $json.postText }}"
  }
}

集成示例

CRM 集成

自动在您的 CRM 中创建潜在客户:

{
  "name": "Create Salesforce Lead",
  "type": "n8n-nodes-base.salesforce",
  "parameters": {
    "operation": "create",
    "resource": "lead",
    "data": {
      "FirstName": "={{ $json.firstName }}",
      "LastName": "={{ $json.lastName }}",
      "Company": "={{ $json.currentCompany }}",
      "Title": "={{ $json.headline }}",
      "LinkedIn__c": "={{ $json.profileUrl }}"
    }
  }
}
{
  "name": "Create HubSpot Contact",
  "type": "n8n-nodes-base.hubspot",
  "parameters": {
    "operation": "create",
    "resource": "contact",
    "data": {
      "firstname": "={{ $json.firstName }}",
      "lastname": "={{ $json.lastName }}",
      "jobtitle": "={{ $json.headline }}",
      "linkedin_profile": "={{ $json.profileUrl }}"
    }
  }
}

Slack 通知

发送重要潜在客户的提醒:

{
  "name": "Slack Alert",
  "type": "n8n-nodes-base.slack",
  "parameters": {
    "operation": "postMessage",
    "channel": "#sales-leads",
    "text": "🎯 High-value prospect found: {{ $json.name }} at {{ $json.company }}\n📍 Location: {{ $json.location }}\n🔗 Profile: {{ $json.profileUrl }}"
  }
}

后续步骤