8
n8n 中文网amn8n.com

使用 Gemini AI 和 Flux 图像生成通过热门帖子分析自动创建 LinkedIn 内容

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 20 个节点。主要使用 Code, Wait, Filter, LinkedIn, Aggregate 等节点。 使用 Gemini AI 和 Flux 图像生成通过热门帖子分析自动创建 LinkedIn 内容

前置要求
  • LinkedIn API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "YOUR_N8N_INSTANCE_ID",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "2421d1cb-fd45-4d09-af46-fe7eddb014bc",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -800,
        1648
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "843e69c0-6734-463d-ba79-81eed6350568",
      "name": "LinkedIn 内容自动化调度器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1520,
        144
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ee8cbee4-5929-409e-9f42-daa15971347d",
      "name": "获取 LinkedIn 个人资料链接",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1296,
        144
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "a134c65a-51a8-4ad2-9361-56770428013b",
      "name": "批量处理个人资料",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1072,
        144
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "baa9d8d0-dbc3-405c-827c-44201e9e1864",
      "name": "抓取 LinkedIn 帖子 API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -848,
        80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "200bf2c7-c5b1-499d-bdce-0c13c0f1018c",
      "name": "速率限制延迟",
      "type": "n8n-nodes-base.wait",
      "position": [
        -624,
        80
      ],
      "webhookId": "YOUR_WEBHOOK_ID",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "beec62a4-f99e-489e-ab2f-3102999e5853",
      "name": "筛选高互动帖子",
      "type": "n8n-nodes-base.filter",
      "position": [
        -400,
        80
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "eaa2f9f9-462f-4838-a5ca-69fa6be91614",
      "name": "将热门帖子保存到表格",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -176,
        144
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "5a5a5e59-e3ad-4c78-9296-495c90a00ad7",
      "name": "新帖子数据触发器",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -1456,
        1456
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "de36c1f0-e0d9-4613-8853-f7778ec3125d",
      "name": "筛选近期帖子(3天内)",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1232,
        1456
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "d29253cd-e744-4f41-90c4-07d4c7b101da",
      "name": "聚合趋势内容",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -1008,
        1456
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5b66d4ed-93c5-487f-b421-4988efb6f765",
      "name": "LinkedIn 内容策略 AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -784,
        1456
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5a5bec30-5bf1-4f0b-b925-7b5d482dd455",
      "name": "JSON 输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -640,
        1680
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "72e67a9d-7f68-4f12-ae37-f568e9cc8a28",
      "name": "生成帖子图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -432,
        1456
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ced01e5e-bb88-4eeb-86e0-df7d20725872",
      "name": "下载生成的图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -208,
        1456
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7501ca46-93ac-4ce8-a5d3-8d0eb0e2dc4f",
      "name": "发布到 LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        16,
        1456
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ec614e2-a0c0-4a3e-b189-29417ed8caf1",
      "name": "提取已分析帖子链接",
      "type": "n8n-nodes-base.code",
      "position": [
        224,
        1456
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "129d48d7-7c3b-4ef7-9296-d058d034832b",
      "name": "标记帖子为已分析",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        448,
        1456
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "009b2c84-7c90-4e76-8ffa-430e63d79853",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2096,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2b60af78-4faa-407e-9ade-301328afed03",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        1040
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "JSON Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "LinkedIn Content Strategy AI",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Post Image": {
      "main": [
        [
          {
            "node": "Download Generated Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to LinkedIn": {
      "main": [
        [
          {
            "node": "Extract Analyzed Post URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rate Limiting Delay": {
      "main": [
        [
          {
            "node": "Filter High-Engagement Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Post Data Trigger": {
      "main": [
        [
          {
            "node": "Filter Recent Posts (3 Days)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Generated Image": {
      "main": [
        [
          {
            "node": "Publish to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "LinkedIn Content Strategy AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Scrape LinkedIn Posts API": {
      "main": [
        [
          {
            "node": "Rate Limiting Delay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Trending Content": {
      "main": [
        [
          {
            "node": "LinkedIn Content Strategy AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Analyzed Post URLs": {
      "main": [
        [
          {
            "node": "Mark Posts as Analyzed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Viral Posts to Sheets": {
      "main": [
        [
          {
            "node": "Process Profiles in Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch LinkedIn Profile URLs": {
      "main": [
        [
          {
            "node": "Process Profiles in Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Profiles in Batches": {
      "main": [
        [],
        [
          {
            "node": "Scrape LinkedIn Posts API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter High-Engagement Posts": {
      "main": [
        [
          {
            "node": "Save Viral Posts to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Recent Posts (3 Days)": {
      "main": [
        [
          {
            "node": "Aggregate Trending Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Content Strategy AI": {
      "main": [
        [
          {
            "node": "Generate Post Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Content Automation Scheduler": {
      "main": [
        [
          {
            "node": "Fetch LinkedIn Profile URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, 多模态 AI

需要付费吗?

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

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

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

作者
Roshan Ramani

Roshan Ramani

@rawsun007

I love building smart n8n automations that actually work reliably. My focus is on making everyday tasks like email, social media, and CRM workflows simpler using AI. I've shared templates in the n8n community, including a WhatsApp Expense Tracker that people really enjoy. What keeps me excited is constantly trying new things - testing fresh nodes, playing with AI tools like LangChain, and discovering creative ways to connect systems!

外部链接
在 n8n.io 查看

分享此工作流