抓取博客文章生成 AI 驱动的 LinkedIn 帖子(含 GPT-4o 和人工审核)
高级
这是一个Social Media, Multimodal AI领域的自动化工作流,包含 29 个节点。主要使用 If, Set, Html, Switch, LinkedIn 等节点。 抓取博客文章生成 AI 驱动的 LinkedIn 帖子(含 GPT-4o 和人工审核)
前置要求
- •LinkedIn API 凭证
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (29)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5ec543f78db8e552b46818580d4137dda2f58675a1a45426c44ae175fc35ac62"
},
"nodes": [
{
"id": "2cda8e96-8faf-4a48-8758-0798b7d5214d",
"name": "由 Github 模型提供支持",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-688,
-48
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 7
}
]
}
},
"typeVersion": 1.2
},
{
"id": "6a713237-fa9f-43b8-a141-7214fc0967d0",
"name": "拆分输出",
"type": "n8n-nodes-base.splitOut",
"position": [
0,
-48
],
"parameters": {
"options": {
"destinationFieldName": "post"
},
"fieldToSplitOut": "posts"
},
"typeVersion": 1
},
{
"id": "4e96a2f8-8e0e-4796-a95c-b203a24a7935",
"name": "获取订阅源项目 HTML",
"type": "n8n-nodes-base.html",
"position": [
-272,
-48
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "posts",
"cssSelector": "article.item",
"returnArray": true,
"returnValue": "html"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "4f8730da-4796-43d4-b2db-742cf59de1a1",
"name": "获取 n8n 博客订阅源",
"type": "n8n-nodes-base.httpRequest",
"position": [
-480,
-48
],
"parameters": {
"url": "https://blog.n8n.io/",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "308446a4-b9eb-4fee-b722-bb1e5830def5",
"name": "提取标题、链接+标签",
"type": "n8n-nodes-base.html",
"position": [
208,
-48
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"dataPropertyName": "post",
"extractionValues": {
"values": [
{
"key": "link",
"attribute": "href",
"cssSelector": ".item-title a",
"returnValue": "attribute"
},
{
"key": "title",
"cssSelector": ".item-title a"
},
{
"key": "tags",
"cssSelector": ".item-tags a"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "ae3ffdda-fc62-47c0-95e7-d582d0689ca0",
"name": "获取文章 HTML",
"type": "n8n-nodes-base.httpRequest",
"position": [
624,
-48
],
"parameters": {
"url": "={{ $json.articleUrl }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "21cf0d92-ea1e-41d7-9a25-87cd54f30e6e",
"name": "提取发布时间",
"type": "n8n-nodes-base.html",
"position": [
832,
-48
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "published",
"attribute": "content",
"cssSelector": "meta[property=\"article:published_time\"]",
"returnValue": "attribute"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "2c42b3fc-dcd8-4a9d-ad87-569bfe9a442f",
"name": "过去24小时内的文章?",
"type": "n8n-nodes-base.if",
"position": [
1040,
-48
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "778c01e9-a6f4-442f-ad27-301ba91ad0f1",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ (new Date($('Schedule Trigger').item.json.timestamp) - new Date($json.published)) / (1000 * 60 * 60) <= 480 }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "a5ce91f5-f19f-4b18-bfc9-3d5208b61234",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1536,
96
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {},
"typeVersion": 1.2
},
{
"id": "8d77d4d4-3f70-43fb-9b29-5e44a05b32f1",
"name": "总结文章",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
1472,
-48
],
"parameters": {
"text": "={{ $json.data }}",
"batching": {},
"messages": {
"messageValues": [
{
"message": "You will be passed a scraped article from a company blog. Please summarize it to highlight key topics, news, trends, or best practices. Make sure to use markdown format in your response!"
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "6748104e-d2e5-433d-92a5-8fa4655e2130",
"name": "草拟 LinkedIn 帖子",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-128,
576
],
"parameters": {
"text": "={{ $('Fetch Article (LLM-friendly)').item.json.data }}",
"batching": {},
"messages": {
"messageValues": [
{
"message": "={{ $json.prompt }}"
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "92674731-aaba-4b22-bc40-d92f1e14ef49",
"name": "文章链接",
"type": "n8n-nodes-base.set",
"position": [
416,
-48
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c1797d7f-2a80-438a-8e87-2c6ebce0c3cf",
"name": "articleUrl",
"type": "string",
"value": "=https://blog.n8n.io{{ $json.link }}"
}
]
},
"includeOtherFields": true
},
"typeVersion": 3.4
},
{
"id": "ad0e92d0-3b01-4868-af5c-4934f35ee2e5",
"name": "创建帖子",
"type": "n8n-nodes-base.linkedIn",
"position": [
1712,
976
],
"parameters": {
"text": "={{ $json.responseValues.postDraft.value }}",
"person": "=",
"additionalFields": {
"title": "={{ $('Extract Title,Link+Tag').item.json.title }}",
"originalUrl": "={{ $('Article link').item.json.articleUrl }}"
},
"shareMediaCategory": "ARTICLE"
},
"credentials": {},
"typeVersion": 1
},
{
"id": "1cff8341-9cde-4230-9741-c245996bdd58",
"name": "设置初始提示词",
"type": "n8n-nodes-base.set",
"position": [
-336,
576
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0a995978-dc24-47d9-82d7-9e8b6cff072b",
"name": "prompt",
"type": "string",
"value": "You will be passed a scraped article from a company blog. I'm an influencer for their product and will write a LinkedIn post for every news that is coming out. Please write an engaging post based on the article."
}
]
}
},
"typeVersion": 3.4
},
{
"id": "d3378b04-c420-4b8b-a858-ee5dc24efc9c",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-96,
736
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {},
"typeVersion": 1.2
},
{
"id": "9919b3b0-fb0b-4127-81c5-9ae5b016ffb7",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-704,
960
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "ba163d4f-6ce9-4406-b724-b91c325056aa",
"name": "切换",
"type": "n8n-nodes-base.switch",
"position": [
464,
560
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Approved",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "eb5d8644-4523-45b1-bda0-4864b9818805",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response }}",
"rightValue": "approved"
}
]
},
"renameOutput": true
},
{
"outputKey": "Rejected",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "2f338ad5-ae15-4750-b41d-5864640999c9",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response }}",
"rightValue": "rejected"
}
]
},
"renameOutput": true
},
{
"outputKey": "Retry",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "746224d7-8a61-412e-8d83-8ff15d895857",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.type }}",
"rightValue": "chat"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "81bbc886-1298-4f59-bbcd-63ce4fb79e4c",
"name": "重试",
"type": "n8n-nodes-base.set",
"position": [
608,
816
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "622c3ac0-d1e4-4a3f-aff2-3636eb1af992",
"name": "prompt",
"type": "string",
"value": "={{ $json.messages[0].content }}"
},
{
"id": "4ed769bf-cf03-4d5c-b582-fd0bd601e4a3",
"name": "reviewToUpdate",
"type": "string",
"value": "={{ $json.reviewId }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f7b67b9c-0899-4861-b6fb-8c12f474aeb7",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
-192
],
"parameters": {
"width": 256,
"height": 128,
"content": "### 待办事项"
},
"typeVersion": 1
},
{
"id": "e5ce456f-045a-4431-8f13-75b6fc5b2562",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-752,
-256
],
"parameters": {
"color": 7,
"width": 640,
"height": 464,
"content": "## 获取 n8n 博客订阅源"
},
"typeVersion": 1
},
{
"id": "a807957f-a767-4997-8212-6a0f114a3c96",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-48,
-256
],
"parameters": {
"color": 7,
"width": 1824,
"height": 464,
"content": "## 获取每篇文章"
},
"typeVersion": 1
},
{
"id": "0e4293a5-5d0d-430d-a263-0550911f84e6",
"name": "获取文章(LLM友好版本)",
"type": "n8n-nodes-base.httpRequest",
"position": [
1296,
-48
],
"parameters": {
"url": "=https://r.jina.ai/{{ $('Article link').item.json.articleUrl }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "296b4ffa-1cce-4c37-bc6e-d5ebf6e23cff",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-736,
336
],
"parameters": {
"color": 7,
"width": 288,
"height": 880,
"content": "## 遍历项目"
},
"typeVersion": 1
},
{
"id": "04e39ab4-deee-42ce-b276-ee6b51a79940",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-368,
336
],
"parameters": {
"color": 7,
"width": 1200,
"height": 880,
"content": "## 创建带有人工审核的 LinkedIn 帖子"
},
"typeVersion": 1
},
{
"id": "2836897f-3121-43d0-a0a3-17dfcff72dd0",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1632,
768
],
"parameters": {
"color": 7,
"width": 288,
"height": 448,
"content": "## 发布已批准的帖子"
},
"typeVersion": 1
},
{
"id": "6690f132-c386-4086-bc11-766be70548e5",
"name": "### 需要帮助?",
"type": "n8n-nodes-base.stickyNote",
"position": [
144,
480
],
"parameters": {
"color": 7,
"width": 256,
"height": 288,
"content": ""
},
"typeVersion": 1
},
{
"id": "bf63d446-2691-4b0e-bfb6-3550169e925d",
"name": "人工批准",
"type": "@gotohuman/n8n-nodes-gotohuman.gotoHuman",
"position": [
224,
576
],
"webhookId": "e1a973b2-5a8d-4eea-8dcf-8ff52e097849",
"parameters": {
"fields": {
"value": {
"link": "={{ [{url: $('Article link').item.json.articleUrl, label: $('Article link').item.json.title }] }}",
"summary": "={{ $('Summarize Article').item.json.text }}",
"postDraft": "={{ {ai:{prompt: $('Set Initial Prompt').item.json.prompt }, content: $json.text} }}",
"timestamp": "={{ new Date($('Extract publishing datetime').item.json.published).toDateTime().toRelative() }}"
},
"schema": [
{
"id": "link",
"type": "array",
"display": true,
"required": false,
"displayName": "link (urlLinks)",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "timestamp",
"type": "string",
"display": true,
"required": false,
"displayName": "timestamp (label)",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "summary",
"type": "string",
"display": true,
"required": false,
"displayName": "summary (markdown)",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "postDraft",
"type": "string",
"display": true,
"required": false,
"displayName": "postDraft (text)",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"additionalFields": {
"updateForReviewId": "={{ $('Retry').isExecuted ? $('Retry').item.json.reviewToUpdate : null }}"
},
"reviewTemplateID": {
"__rl": true,
"mode": "list"
}
},
"credentials": {},
"typeVersion": 1
},
{
"id": "3f76a477-140b-433f-a811-6c7ec5a9d208",
"name": "## 试试看!",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
272
],
"parameters": {
"width": 672,
"height": 752,
"content": ""
},
"typeVersion": 1
},
{
"id": "d5a9011e-7612-4807-987d-2fd91cc6e4c2",
"name": "GET 模型",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1504,
-256
],
"parameters": {
"width": 672,
"height": 912,
"content": "## n8n 新闻助手"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Retry": {
"main": [
[
{
"node": "Draft LinkedIn Post",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Create a post",
"type": "main",
"index": 0
}
],
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
],
[
{
"node": "Retry",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Extract Title,Link+Tag",
"type": "main",
"index": 0
}
]
]
},
"Article link": {
"main": [
[
{
"node": "Fetch Article HTML",
"type": "main",
"index": 0
}
]
]
},
"Create a post": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Human approval": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Set Initial Prompt",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Fetch n8n blog feed",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Summarize Article",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Summarize Article": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Fetch Article HTML": {
"main": [
[
{
"node": "Extract publishing datetime",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Draft LinkedIn Post",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Set Initial Prompt": {
"main": [
[
{
"node": "Draft LinkedIn Post",
"type": "main",
"index": 0
}
]
]
},
"Draft LinkedIn Post": {
"main": [
[
{
"node": "Human approval",
"type": "main",
"index": 0
}
]
]
},
"Fetch n8n blog feed": {
"main": [
[
{
"node": "Fetch feed item HTML",
"type": "main",
"index": 0
}
]
]
},
"Fetch feed item HTML": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Post from last 24hrs?": {
"main": [
[
{
"node": "Fetch Article (LLM-friendly)",
"type": "main",
"index": 0
}
],
[]
]
},
"Extract Title,Link+Tag": {
"main": [
[
{
"node": "Article link",
"type": "main",
"index": 0
}
]
]
},
"Extract publishing datetime": {
"main": [
[
{
"node": "Post from last 24hrs?",
"type": "main",
"index": 0
}
]
]
},
"Fetch Article (LLM-friendly)": {
"main": [
[
{
"node": "Summarize Article",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 GPT-4o、Fal.ai 和人工监督生成产品 AI 宣传视频
使用 GPT-4o、Fal.ai 和人工监督生成产品 AI 宣传视频
If
Set
Code
+12
72 节点gotoHuman
内容创作
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
WordPress + 社交媒体
基于GPT/Gemini和WordPress的自动化博客创建与多平台发布
If
Set
Switch
+18
44 节点Khairul Muhtadin
内容创作
内容生成器 v3
AI驱动博客自动化:使用GPT-4生成并发布SEO文章至WordPress和Twitter
If
Set
Code
+25
144 节点Jay Emp0
内容创作
使用OpenAI gpt-image-1和AI字幕创建并发布Instagram轮播图
从Google Sheets使用GPT-Image-1和AI字幕自动生成Instagram轮播图
If
Set
Code
+12
32 节点Jorge Martínez
多模态 AI
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
工作流信息
难度等级
高级
节点数量29
分类2
节点类型13
作者
gotoHuman
@gotohumanApprove critical actions in gotoHuman’s customizable review interface and edit AI outputs manually or by looping back to your workflow. Ensure AI-generated content is on-brand, messages to customers are accurate, and high-stakes decisions are made by humans.
外部链接
在 n8n.io 查看 →
分享此工作流