通过 Bright Data 将维基百科内容转为带图的 LinkedIn AI 内容发布器
高级
这是一个Social Media, Multimodal AI领域的自动化工作流,包含 19 个节点。主要使用 If, Code, Wait, LinkedIn, FormTrigger 等节点。 使用GPT-4摘要和Ideogram图片从维基百科生成LinkedIn帖子
前置要求
- •LinkedIn API 凭证
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
- •Anthropic API Key
使用的节点 (19)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "jYtmNu9biqEaTS14",
"meta": {
"instanceId": "bc8ca75c203589705ae2e446cad7181d6f2a7cc1766f958ef9f34810e53b8cb2",
"templateCredsSetupCompleted": true
},
"name": "通过 Bright Data 将维基百科内容转为带图的 LinkedIn AI 内容发布器",
"tags": [],
"nodes": [
{
"id": "9b8ad45f-4bd8-4eb9-a9f1-9a0f869205a0",
"name": "等待状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
80,
48
],
"parameters": {
"url": "=https://api.brightdata.com/datasets/v3/progress/{{ $json.snapshot_id }}",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "format",
"value": "json"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer BRIGHT_DATA_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "1d74b201-ff92-475e-badf-3adcdfc88149",
"name": "检查最终状态",
"type": "n8n-nodes-base.if",
"position": [
272,
48
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "or",
"conditions": [
{
"id": "35ed620d-b5d5-4e97-bcc5-52b283d85616",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "ready"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "78c09194-2899-4b0b-b00a-dd35f85b95c4",
"name": "维基百科抓取文章",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
512,
32
],
"parameters": {
"url": "=https://api.brightdata.com/datasets/v3/snapshot/{{ $json.snapshot_id }}",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "format",
"value": "json"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer BRIGHT_DATA_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "2f36e8a4-4c76-4b32-8519-56e16e26f349",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
736,
32
],
"parameters": {
"text": "=here is the title:- {{ $json.cataloged_text[0].title }}\nhere is the article of my title :- {{ $json.cataloged_text[0].text }}",
"options": {
"systemMessage": "=Task:- \nSummarize the following article in under 2000 characters, keeping it professional, informative, and engaging enough for a LinkedIn audience.\n\nUse bullet points if helpful. Avoid repetition. Remove any unnecessary fluff.\n\nTone should be confident, insightful, and thought-leadership oriented — ideal for busy professionals who want quick understanding.\n\nHere's the content:\n---\n{{ $json.cataloged_text[0].text }}\n---\n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.1
},
{
"id": "776e4ef3-61f8-4a31-aff3-550ff32861c8",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
720,
272
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "OPENAI_CREDENTIAL_ID",
"name": "OpenAI Account"
}
},
"typeVersion": 1.2
},
{
"id": "79f161a8-325c-47f1-8f83-541db9b922dc",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
880,
608
],
"parameters": {
"jsonSchemaExample": "{\n\t\"text\": \"California\"\n\n}"
},
"typeVersion": 1.3
},
{
"id": "ce3f23b3-aa8f-479c-b50b-8b7811c98ae5",
"name": "自动修复输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
"position": [
816,
368
],
"parameters": {
"options": {}
},
"typeVersion": 1
},
{
"id": "a7c51767-3fb8-4931-9316-8ada84ced20c",
"name": "图像生成",
"type": "n8n-nodes-base.httpRequest",
"position": [
1120,
32
],
"parameters": {
"url": "https://api.ideogram.ai/v1/ideogram-v3/generate",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "=prompt",
"value": "={{ $json.output.text }}"
},
{
"name": "rendering_speed",
"value": "TURBO"
},
{
"name": "resolution",
"value": "1280x704"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Api-Key",
"value": "IDEOGRAM_API_KEY"
}
]
}
},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "973e8cc1-c121-41d6-beb2-53ade53aaa8b",
"name": "创建帖子",
"type": "n8n-nodes-base.linkedIn",
"position": [
1648,
32
],
"parameters": {
"text": "={{ $('AI Agent').item.json.output.text }}",
"person": "LINKEDIN_PROFILE_ID",
"additionalFields": {},
"shareMediaCategory": "IMAGE"
},
"credentials": {
"linkedInOAuth2Api": {
"id": "LINKEDIN_CREDENTIAL_ID",
"name": "LinkedIn Account"
}
},
"typeVersion": 1
},
{
"id": "ee187ab3-c45f-4379-925b-b35a38ae6960",
"name": "HTTP 请求1",
"type": "n8n-nodes-base.httpRequest",
"position": [
1328,
32
],
"parameters": {
"url": "={{ $json.data[0].url }}",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
}
},
"typeVersion": 4.2
},
{
"id": "badfa608-4dce-4d7f-bee8-b91df407daa5",
"name": "Anthropic 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"position": [
816,
768
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "claude-sonnet-4-20250514",
"cachedResultName": "Claude 4 Sonnet"
},
"options": {}
},
"credentials": {
"anthropicApi": {
"id": "ANTHROPIC_CREDENTIAL_ID",
"name": "Anthropic Account"
}
},
"typeVersion": 1.3
},
{
"id": "9bc87c92-4ad5-4166-821a-908b8f21789a",
"name": "LinkedIn URL",
"type": "n8n-nodes-base.code",
"onError": "continueRegularOutput",
"position": [
1872,
32
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "const item = $input.item;\nconst shareUrn = item.json.urn || '';\n\n// Check if it's a valid LinkedIn share URN\nif (shareUrn.startsWith('urn:li:share:')) {\n item.json.linkedinUrl = `https://www.linkedin.com/feed/update/${shareUrn}/`;\n} else {\n item.json.linkedinUrl = 'Invalid LinkedIn URN';\n}\n\nreturn item;\n"
},
"typeVersion": 2
},
{
"id": "8d794457-0fda-4f5a-b104-dc1d49e3cbc9",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
480,
208
],
"webhookId": "04a84ebd-34a0-4095-8cda-c1acd041c582",
"parameters": {
"unit": "minutes",
"amount": 1
},
"typeVersion": 1.1
},
{
"id": "0e4118e7-40e8-412b-bcf8-f98e313475f7",
"name": "📝 表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
-368,
48
],
"webhookId": "5ca0f1b4-2957-47e5-9894-62f1d759504d",
"parameters": {
"options": {},
"formTitle": "Wikipedia Search",
"formFields": {
"values": [
{
"fieldLabel": "Article Name"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "18ba69a8-bdaf-4895-8aea-332cbca7cd5e",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-512,
-112
],
"parameters": {
"color": 7,
"width": 496,
"height": 352,
"content": "📝+🌐 启动并提交文章"
},
"typeVersion": 1
},
{
"id": "616019f6-fd99-4688-89c6-52fb87a8d1b3",
"name": "🌐 HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
-160,
48
],
"parameters": {
"url": "https://api.brightdata.com/datasets/v3/trigger",
"method": "POST",
"options": {},
"jsonBody": "=[\n {\n \"keyword\": \"{{ $json[\"Article Name\"] }}\",\n \"pages_load\": 1\n }\n] ",
"sendBody": true,
"sendQuery": true,
"sendHeaders": true,
"specifyBody": "json",
"queryParameters": {
"parameters": [
{
"name": "dataset_id",
"value": "gd_lr9978962kkjr3nx49"
},
{
"name": "include_errors",
"value": "true"
},
{
"name": "type",
"value": "discover_new"
},
{
"name": "discover_by",
"value": "keyword"
},
{
"name": "limit_per_input",
"value": "1"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer BRIGHT_DATA_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "36051a55-4361-4771-b9e8-0ec9a45d9b6b",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
16,
-368
],
"parameters": {
"color": 2,
"width": 624,
"height": 800,
"content": "🔷 Bright Data 提取部分:"
},
"typeVersion": 1
},
{
"id": "6fc44f9d-c523-4e5c-9aac-56ee9d186ee8",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
688,
-416
],
"parameters": {
"color": 3,
"width": 768,
"height": 912,
"content": "🤖 AI 摘要部分:"
},
"typeVersion": 1
},
{
"id": "63c942b0-4dac-4414-8278-9bf91d69816a",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1488,
-160
],
"parameters": {
"color": 4,
"width": 608,
"height": 416,
"content": "📤 发布部分:"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c1901b18-15a5-434b-8670-5a63f7058f34",
"connections": {
"Wait": {
"main": [
[
{
"node": "Wait for status",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Image Generate",
"type": "main",
"index": 0
}
]
]
},
"Create a post": {
"main": [
[
{
"node": "LinkedIn URL",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "Create a post",
"type": "main",
"index": 0
}
]
]
},
"Image Generate": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"Wait for status": {
"main": [
[
{
"node": "Check Final Status",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"🌐 HTTP Request": {
"main": [
[
{
"node": "Wait for status",
"type": "main",
"index": 0
}
]
]
},
"Check Final Status": {
"main": [
[
{
"node": "Wikipedia Scrap Post",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Anthropic Chat Model": {
"ai_languageModel": [
[
{
"node": "Auto-fixing Output Parser",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Wikipedia Scrap Post": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"📝 On form submission": {
"main": [
[
{
"node": "🌐 HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Auto-fixing Output Parser",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Auto-fixing Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
LinkedIn内容工厂(含OpenAI研究与品牌图像生成)
LinkedIn内容工厂,集成OpenAI研究与Replicate品牌图像生成
If
Set
Code
+10
23 节点Onur
社交媒体
多平台价格查找器:使用 Bright Data 和 Telegram 抓取价格
多平台价格查找器:使用 Bright Data、Claude AI 和 Telegram 抓取价格
If
Code
Wait
+9
85 节点Incrementors
市场调研
仿制SEO文章(公开版本)
使用Claude AI、Webflow和图像生成生成并发布SEO文章
If
Code
Wait
+14
30 节点Marko
内容创作
使用 Creatomate 生成短视频
使用 Creatomate、ElevenLabs 和 Pexels 素材库生成 AI 短视频
If
Code
Wait
+9
31 节点Matty Reed
内容创作
Arunava的多智能体智能Reddit自动化
使用AI品牌提及和Baserow跟踪自动评论Reddit帖子
If
Set
Code
+12
35 节点Arunava
社交媒体
帖子工厂
基于OpenAI、LinkedIn和Twitter审批的自动化社交媒体内容创作
If
Gmail
Slack
+10
22 节点Saloni Malhotra
社交媒体