8
n8n 中文网amn8n.com

自动LinkedIn帖子模板

中级

这是一个Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 LinkedIn, FormTrigger, OpenAi 等节点。 使用GPT-4文本和AI图像生成并自动发布LinkedIn帖子

前置要求
  • LinkedIn API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "8jCMS5WazhTj6lEy",
  "meta": {
    "instanceId": "6dab325484db17217432bd17c46b16a74656e18b7a3b29fe24824c64123a2170",
    "templateCredsSetupCompleted": true
  },
  "name": "自动 LinkedIn 帖子模板",
  "tags": [],
  "nodes": [
    {
      "id": "874400e3-7dec-4952-860b-a4e37e846198",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -320
      ],
      "parameters": {
        "width": 224,
        "height": 288,
        "content": "## 表单提交时"
      },
      "typeVersion": 1
    },
    {
      "id": "548ac804-2035-42dc-859f-904bcc8a496d",
      "name": "帖子想法",
      "type": "n8n-nodes-base.formTrigger",
      "notes": "This node triggers the workflow when a new form is submitted.  \nUse it to capture the **post idea** and any extra details from the user.  \nIt acts as the starting point for generating LinkedIn content.  \n[Guide](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.formtrigger/)\n",
      "position": [
        0,
        0
      ],
      "webhookId": "3fcba17d-3265-4763-b051-68969ab2d8d1",
      "parameters": {
        "options": {},
        "formTitle": "LINKEDIN POST IDEA",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Idea",
              "placeholder": "The impact of AI in 2026",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Write an idea for a LinkedIn post"
      },
      "notesInFlow": true,
      "typeVersion": 2.2
    },
    {
      "id": "02ff126f-b012-4528-be8b-8478b409ba7d",
      "name": "生成帖子文本",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        208,
        0
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "assistant",
              "content": "You are an expert LinkedIn content writer specializing in [industry focus: e.g. AI, automation, entrepreneurship, productivity].  \nYour style is clear, professional, and human — optimized to grab attention and spark engagement.  \nYou write in a personal, approachable tone, adding emojis if helpful, and always ending with a call to action.  \n\nWrite LinkedIn posts as if you are [founder name], the founder of [business/company name], a [describe company type, e.g. automation agency / SaaS / consultancy].  \nThe voice should feel authentic and personal — avoid using “we” or corporate language, instead speak in first person (“I”) to show personality, experiences, and even humor or flaws.  \n\n"
            },
            {
              "content": "=“Idea for the post: {{ $json.Idea }}”  \n\nTask:  \nExpand this idea into **one engaging LinkedIn paragraph** with insights and a final call to action. Keep it curiosity-driven"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "gYP4uqeDRoDyiPbD",
          "name": "OpenAi account 2"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "03395e5d-c619-4a6c-8756-2e6435191c51",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -320
      ],
      "parameters": {
        "color": 4,
        "width": 256,
        "height": 288,
        "content": "## 生成 LinkedIn 帖子文本"
      },
      "typeVersion": 1
    },
    {
      "id": "b331a025-b808-4acc-b204-19aa2a95ea43",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -320
      ],
      "parameters": {
        "color": 5,
        "width": 224,
        "height": 288,
        "content": "## 为帖子生成图片"
      },
      "typeVersion": 1
    },
    {
      "id": "654c18fb-7f9f-49a8-b8c7-dc2e51a43077",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -320
      ],
      "parameters": {
        "color": 6,
        "height": 288,
        "content": "## 将帖子发布到 LinkedIn"
      },
      "typeVersion": 1
    },
    {
      "id": "bbe632f8-29e4-47fa-9158-5445ca009342",
      "name": "视觉创作",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        544,
        0
      ],
      "parameters": {
        "model": "gpt-image-1",
        "prompt": "=Create a visually appealing, minimalist LinkedIn post image that represents this idea:  \n“{{ $('Post Idea').item.json.Idea }}”  \nAdditional context: {{ $json.message.content }}  \n\nDesign requirements:  \n- Minimalist style with a clean light background  \n- Use [brand colors] (example: purple to dark blue gradient)  \n- Modern typography (e.g. Open Sans, tight kerning, low line spacing)  \n- Professional yet eye-catching composition suitable for LinkedIn feed  \n- Think of it like a LinkedIn content cover image that makes people stop scrolling.\n",
        "options": {},
        "resource": "image"
      },
      "credentials": {
        "openAiApi": {
          "id": "gYP4uqeDRoDyiPbD",
          "name": "OpenAi account 2"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "37481fe0-8ca6-4566-b96c-3ec5f6873e4c",
      "name": "在 LinkedIn 上发布",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        816,
        0
      ],
      "parameters": {
        "text": "={{ $('Generate Post Text').item.json.message.content }}",
        "person": "K6f9KL_emA",
        "additionalFields": {},
        "shareMediaCategory": "IMAGE"
      },
      "credentials": {
        "linkedInOAuth2Api": {
          "id": "82aiuwXeBmosN3cy",
          "name": "LinkedIn account 2"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "065d2a7d-9eeb-4254-afc6-0bb3f7348ebf",
  "connections": {
    "Post Idea": {
      "main": [
        [
          {
            "node": "Generate Post Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Visual Creation": {
      "main": [
        [
          {
            "node": "Post on LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Post Text": {
      "main": [
        [
          {
            "node": "Visual Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 多模态 AI

需要付费吗?

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

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

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

作者

AI & automation consultant helping businesses streamline processes, generate leads, and scale faster with smart workflows. Founder of SyncraLabs, integrating AI with n8n to create practical, high-impact automations. Passionate about sharing knowledge through ready-to-use templates and community contributions.

外部链接
在 n8n.io 查看

分享此工作流