8
n8n 中文网amn8n.com

Linkedin 自动化 - Archit Jain

高级

这是一个AI, Marketing领域的自动化工作流,包含 35 个节点。主要使用 Code, Wait, Limit, Filter, Switch 等节点,结合人工智能技术实现智能自动化。 使用 GPT-4 和 Google Sheets 从 Twitter AI 帖子自动创建 LinkedIn 内容

前置要求
  • LinkedIn API 凭证
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "osBCgU5nbpfrepN6",
  "meta": {
    "instanceId": "933df83c84196d70ce3ffd0bf5d3e1aca31b7366f2f84e1f3482640096e4a3a9",
    "templateCredsSetupCompleted": true
  },
  "name": "Linkedin 自动化 - Archit Jain",
  "tags": [],
  "nodes": [
    {
      "id": "1a809241-0790-4976-9bea-7a3ce723d0ee",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -880
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "16bb5932-b1f3-405a-becf-27ced4c678fe",
      "name": "每天 5 点",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -140,
        -525
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "26a6cdf5-ad47-40a3-bf11-1a4318fe8d07",
      "name": "获取 AI 推文",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        80,
        -525
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "8918df8b-2d1f-4064-bb77-d5673e27f13c",
      "name": "清理推文",
      "type": "n8n-nodes-base.code",
      "position": [
        300,
        -525
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d7bd6803-e1f9-42e2-ab00-d1bbc30274f3",
      "name": "循环推文",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        520,
        -525
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "04b6064d-0ddf-4e11-967d-f2801bce2a22",
      "name": "查找现有推文",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        740,
        -600
      ],
      "parameters": {},
      "typeVersion": 4.6,
      "alwaysOutputData": true
    },
    {
      "id": "27451587-a415-453e-947e-1bc2809231c5",
      "name": "已存在,忽略",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1180,
        -500
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5708f4d5-e78d-42ed-9234-a16edb5ce8b4",
      "name": "保存新推文",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1400,
        -525
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "86097c09-2d25-415b-80d6-72d130880ae4",
      "name": "全部完成,结束",
      "type": "n8n-nodes-base.noOp",
      "position": [
        740,
        -800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "105091ee-bea5-445c-980b-96566af73d8c",
      "name": "每天 6 点",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -140,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "39b73976-c63f-4c22-be52-41b5a2ceee4b",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        80,
        120
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "f83a89ed-fd31-40de-be23-0755bc792d84",
      "name": "切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        960,
        -600
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ccd4fba6-c97b-4965-8330-ebdbe2a932fb",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1180,
        -700
      ],
      "webhookId": "ede04144-6f3e-4a9c-b64c-cd5e52fcc529",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "ea19b297-b627-4586-af5b-608e92035fca",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        520,
        120
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "a8659cc4-e4b6-4b11-8f42-bfaf4d15c7ae",
      "name": "4.1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        548,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6a1d98b0-97a2-4469-94fe-019d9547b515",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        300,
        120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0b5318b2-f18a-4d14-98a3-63e8ce5f2a08",
      "name": "多表:您可以连接多个表以实现有组织的数据结构",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        668,
        340
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "52315263-e2da-4238-b819-4065eadf9b1d",
      "name": "循环帖子",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        896,
        120
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "669b07e5-5d5f-4776-89fe-2e3a5e6e5893",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1116,
        120
      ],
      "webhookId": "d8eeb37d-8894-456c-b41d-ef7e5c9a59cd",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "0c54fe5b-8b8b-4808-ae93-04afdb848937",
      "name": "Google Sheets1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1336,
        195
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "13d9386c-2ee2-4bb1-b465-4f09bdbc8111",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1336,
        -80
      ],
      "webhookId": "388366cb-77ac-4e87-899f-94377370df94",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "586e326a-431d-418f-8bce-3e625716ab60",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1116,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "be441d03-228e-467c-9984-77babf5f7dcf",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -120
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "1695c93e-086e-46b0-a9c2-29ff4aa0621c",
      "name": "更新新闻",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -120,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8e40dd04-eb9c-41dd-bbe7-4e1bc8b794bf",
      "name": "筛选已批准",
      "type": "n8n-nodes-base.filter",
      "position": [
        100,
        760
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "9f1fb6ca-c6e9-4328-8039-5aafeb9c8b95",
      "name": "最多 20 条",
      "type": "n8n-nodes-base.limit",
      "position": [
        320,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8bbe2d6b-def0-4afa-91f9-b4c2e5dab0e5",
      "name": "获取发布时间",
      "type": "n8n-nodes-base.code",
      "position": [
        540,
        760
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "bde62053-2b0b-461f-b916-5f4a3f99b95f",
      "name": "循环已批准帖子",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        760,
        760
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "9fb8cbec-5177-4955-8528-d2a3a7c30a25",
      "name": "等待发布",
      "type": "n8n-nodes-base.wait",
      "position": [
        980,
        780
      ],
      "webhookId": "e088063a-b121-4a9a-9eaa-3c6d63abd169",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "95892a34-8a23-481d-92eb-5b740499e01c",
      "name": "下载图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        780,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dd58e9b3-b459-4d9c-8fda-7ea267ac4445",
      "name": "发布到 LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        980,
        1020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "63b8bfb0-4033-42a2-af94-ebfe229d9095",
      "name": "设置发布状态",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1180,
        780
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "e3914bad-12f2-4818-9c42-c0efc73c4aa8",
      "name": "设置已发布状态",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1180,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "a8214800-8601-4ed4-adca-e633c23e55c3",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        600
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "2027cc2a-7654-4c25-a92c-e232e65e51e2",
      "name": "更新用户",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1100,
        620
      ],
      "webhookId": "cf321257-96a3-4964-9660-9937ca1a082a",
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ad0a0ee6-05a6-4a42-ac8b-e2bb533ec2e2",
  "connections": {
    "4.1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Save New Tweet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Google Sheets1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Max 20": {
      "main": [
        [
          {
            "node": "Get Post Timings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Already Exists, Ignore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Loop Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6AM Daily": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Posts": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Posted": {
      "main": [
        [
          {
            "node": "Loop Approved Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Tweets": {
      "main": [
        [
          {
            "node": "All Done, End",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Find Existing Tweet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Posting": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5AM Everyday": {
      "main": [
        [
          {
            "node": "Get AI Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Tweets": {
      "main": [
        [
          {
            "node": "Loop Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Updated News": {
      "main": [
        [
          {
            "node": "Filter Approved",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get AI Tweets": {
      "main": [
        [
          {
            "node": "Clean Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post LinkedIn": {
      "main": [
        [
          {
            "node": "Set Posted",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Post LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets1": {
      "main": [
        [
          {
            "node": "Loop Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save New Tweet": {
      "main": [
        [
          {
            "node": "Loop Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Approved": {
      "main": [
        [
          {
            "node": "Max 20",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Post Timings": {
      "main": [
        [
          {
            "node": "Loop Approved Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Posting": {
      "main": [
        [
          {
            "node": "Set Posting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Existing Tweet": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Approved Posts": {
      "main": [
        [
          {
            "node": "Update User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Posting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Already Exists, Ignore": {
      "main": [
        [
          {
            "node": "Loop Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
高级
节点数量35
分类2
节点类型18
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流