LinkedIn内容机器
中级
这是一个Social Media, Multimodal AI领域的自动化工作流,包含 14 个节点。主要使用 Form, Merge, Slack, OpenAi, Twitter 等节点。 使用Gemini/OpenAI为X和LinkedIn生成并安排社交帖子
前置要求
- •Slack Bot Token 或 Webhook URL
- •OpenAI API Key
- •Twitter API 凭证
- •LinkedIn API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •Google Gemini API Key
使用的节点 (14)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "2MkrpeTUd7VHfSS9",
"meta": {
"instanceId": "e6142c3f5e31c23fb05dc2061d25cd2a74cf8639c4bc5152accf8c08b0d8f6ea"
},
"name": "Linkedin content machine",
"tags": [],
"nodes": [
{
"id": "5b1cc120-3c02-46b4-bfc7-bdc9e9ae363d",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-980,
80
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash"
},
"typeVersion": 1
},
{
"id": "b7447847-28bc-4ee3-9518-46dc3210268b",
"name": "Receive Post Title",
"type": "n8n-nodes-base.formTrigger",
"position": [
-1180,
-140
],
"webhookId": "4d921ee9-7668-4133-8750-4e35f9fc2353",
"parameters": {
"options": {},
"formTitle": "post",
"formFields": {
"values": [
{
"fieldLabel": "post title"
}
]
},
"authentication": "basicAuth",
"formDescription": "post"
},
"typeVersion": 2.2
},
{
"id": "9b52651d-ab43-429a-9176-56ed29afee35",
"name": "Generate AI Content",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-980,
-140
],
"parameters": {
"text": "=\nwrite min 50 word about this topic '{{ $json[\"post title\"] }}'\nfor Linkedin and X platform separately",
"options": {},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.7
},
{
"id": "f363dad1-532e-423d-b0ff-1f4ffa48dd9e",
"name": "Format AI Output",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-820,
120
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"event_name\": {\n \"type\": \"string\"\n },\n \"event_description\": {\n \"type\": \"string\"\n },\n \"platform_posts\": {\n \"type\": \"object\",\n \"properties\": {\n \"LinkedIn\": {\n \"type\": \"object\",\n \"properties\": {\n \"post\": {\n \"type\": \"string\"\n },\n \"hashtags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"call_to_action\": {\n \"type\": \"string\"\n }\n }\n },\n \"Twitter\": {\n \"type\": \"object\",\n \"properties\": {\n \"post\": {\n \"type\": \"string\"\n },\n \"hashtags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"character_limit\": {\n \"type\": \"integer\"\n }\n }\n }\n }\n },\n \"additional_notes\": {\n \"type\": \"string\"\n }\n }\n}"
},
"typeVersion": 1.2
},
{
"id": "e8fd6a4f-9448-4c76-96b0-895d6fc0b30c",
"name": "Post to X",
"type": "n8n-nodes-base.twitter",
"position": [
-600,
-240
],
"parameters": {
"text": "={{ $json.output.platform_posts.Twitter.post }}",
"additionalFields": {}
},
"typeVersion": 2
},
{
"id": "2f73b732-c9db-4ee8-8d58-38c4cbb562ec",
"name": "Post to LinkedIn",
"type": "n8n-nodes-base.linkedIn",
"position": [
-600,
-20
],
"parameters": {
"text": "={{ $json.output.platform_posts.LinkedIn.post }}",
"person": "-HtNhNKSsE",
"additionalFields": {}
},
"typeVersion": 1
},
{
"id": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
"name": "Append Linkedin And X Publishing Responses",
"type": "n8n-nodes-base.merge",
"position": [
-320,
-120
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineAll"
},
"typeVersion": 3
},
{
"id": "351351dd-da19-421c-8a94-dc7687a05097",
"name": "Show Confirmation",
"type": "n8n-nodes-base.form",
"position": [
-100,
-120
],
"webhookId": "9c0b2419-aff6-40dd-95f7-5dfd0a88d46c",
"parameters": {
"options": {},
"operation": "completion",
"completionTitle": "Your post has been successfully shared",
"completionMessage": "=🔗 View your posts:\n\nX (Twitter): \n[https://x.com/x/status/{{ $json.id }}]\n\nLinkedIn:\n[https://www.linkedin.com/feed/update/{{ $json.urn }}]"
},
"typeVersion": 1
},
{
"id": "2a1b857a-cc59-4662-806b-d74d0416d2e5",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1120,
520
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1
},
{
"id": "38e09681-ab07-4479-b5fb-b66af78f72d8",
"name": "Fetch LinkedIn Posts",
"type": "n8n-nodes-base.httpRequest",
"position": [
-880,
520
],
"parameters": {
"url": "https://api.apify.com/v2/actor-tasks/your-task-id/runs/last/dataset/items?token=YOUR_APIFY_TOKEN",
"options": {},
"jsonParameters": true
},
"typeVersion": 1
},
{
"id": "9d9af28f-82d8-484d-a4da-b24076861b90",
"name": "Filter High Engagement Posts",
"type": "n8n-nodes-base.function",
"position": [
-660,
520
],
"parameters": {
"functionCode": "return items.filter(item => item.json.engagement && item.json.engagement.likes > 10);"
},
"typeVersion": 1
},
{
"id": "108bf9c2-cbed-4d38-b9ce-8a88bab7f782",
"name": "Generate Post Ideas (OpenAI)",
"type": "n8n-nodes-base.openAi",
"position": [
-460,
520
],
"parameters": {
"model": "gpt-4o-mini",
"options": {},
"requestOptions": {}
},
"typeVersion": 1
},
{
"id": "9acab2bf-974f-432c-8dd0-3fcd78bd5f31",
"name": "Save Drafts to Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
-260,
520
],
"parameters": {
"range": "Sheet1!A:B",
"options": {},
"sheetId": "YOUR_GOOGLE_SHEET_ID",
"operation": "append"
},
"typeVersion": 1
},
{
"id": "9326e33a-24d1-4b49-bb60-fa40fefaf0b9",
"name": "Notify Reviewer (Slack)",
"type": "n8n-nodes-base.slack",
"position": [
-60,
520
],
"parameters": {
"text": "New LinkedIn post ideas are ready for review:\n\n{{$json[\"choices\"][0].message.content}}",
"channel": "YOUR_SLACK_CHANNEL",
"attachments": [],
"otherOptions": {}
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d8bd4e59-84a9-4e7d-bdae-557a8056ad95",
"connections": {
"e8fd6a4f-9448-4c76-96b0-895d6fc0b30c": {
"main": [
[
{
"node": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
"type": "main",
"index": 0
}
]
]
},
"f363dad1-532e-423d-b0ff-1f4ffa48dd9e": {
"ai_outputParser": [
[
{
"node": "9b52651d-ab43-429a-9176-56ed29afee35",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"2f73b732-c9db-4ee8-8d58-38c4cbb562ec": {
"main": [
[
{
"node": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
"type": "main",
"index": 1
}
]
]
},
"2a1b857a-cc59-4662-806b-d74d0416d2e5": {
"main": [
[
{
"node": "38e09681-ab07-4479-b5fb-b66af78f72d8",
"type": "main",
"index": 0
}
]
]
},
"b7447847-28bc-4ee3-9518-46dc3210268b": {
"main": [
[
{
"node": "9b52651d-ab43-429a-9176-56ed29afee35",
"type": "main",
"index": 0
}
]
]
},
"9b52651d-ab43-429a-9176-56ed29afee35": {
"main": [
[
{
"node": "e8fd6a4f-9448-4c76-96b0-895d6fc0b30c",
"type": "main",
"index": 0
},
{
"node": "2f73b732-c9db-4ee8-8d58-38c4cbb562ec",
"type": "main",
"index": 0
}
]
]
},
"38e09681-ab07-4479-b5fb-b66af78f72d8": {
"main": [
[
{
"node": "9d9af28f-82d8-484d-a4da-b24076861b90",
"type": "main",
"index": 0
}
]
]
},
"5b1cc120-3c02-46b4-bfc7-bdc9e9ae363d": {
"ai_languageModel": [
[
{
"node": "9b52651d-ab43-429a-9176-56ed29afee35",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"9d9af28f-82d8-484d-a4da-b24076861b90": {
"main": [
[
{
"node": "108bf9c2-cbed-4d38-b9ce-8a88bab7f782",
"type": "main",
"index": 0
}
]
]
},
"108bf9c2-cbed-4d38-b9ce-8a88bab7f782": {
"main": [
[
{
"node": "9acab2bf-974f-432c-8dd0-3fcd78bd5f31",
"type": "main",
"index": 0
}
]
]
},
"9acab2bf-974f-432c-8dd0-3fcd78bd5f31": {
"main": [
[
{
"node": "9326e33a-24d1-4b49-bb60-fa40fefaf0b9",
"type": "main",
"index": 0
}
]
]
},
"14220250-98e1-4c4e-84d8-8dedc9dc3532": {
"main": [
[
{
"node": "351351dd-da19-421c-8a94-dc7687a05097",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于OpenAI、LinkedIn和Twitter审批的自动化社交媒体内容创作
基于OpenAI、LinkedIn和Twitter审批的自动化社交媒体内容创作
If
Gmail
Slack
+
If
Gmail
Slack
22 节点Saloni Malhotra
社交媒体
使用Gemini AI从网站文章自动化社交媒体帖子发布到LinkedIn和X/T
使用Gemini AI从网站文章自动化社交媒体帖子发布到LinkedIn和X/Twitter
If
Set
Xml
+
If
Set
Xml
34 节点Vadim
内容创作
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+
If
Set
Wait
156 节点Diptamoy Barman
内容创作
AI生成LinkedIn帖子含人工审批
使用GPT-4、GoToHuman和Blotato的AI生成LinkedIn帖子含人工审批
Code
Merge
Filter
+
Code
Merge
Filter
19 节点Robert Breen
社交媒体
基于AI的社交媒体内容生成与发布
基于AI的社交媒体内容生成与发布
Set
Code
Form
+
Set
Code
Form
26 节点Amjid Ali
人工智能
RSS 到 LinkedIn 自动发布器
使用 RSS + Gemini AI + Templated.io 自动策划并发布到 LinkedIn 公司页面
If
Code
Linked In
+
If
Code
Linked In
19 节点Shrishti S Nagar
社交媒体