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 内容机器",
"tags": [],
"nodes": [
{
"id": "5b1cc120-3c02-46b4-bfc7-bdc9e9ae363d",
"name": "Google Gemini 聊天模型",
"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": "接收帖子标题",
"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": "生成 AI 内容",
"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": "格式化 AI 输出",
"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": "发布到 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": "发布到 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": "附加 LinkedIn 和 X 发布响应",
"type": "n8n-nodes-base.merge",
"position": [
-320,
-120
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineAll"
},
"typeVersion": 3
},
{
"id": "351351dd-da19-421c-8a94-dc7687a05097",
"name": "显示确认",
"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": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1120,
520
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1
},
{
"id": "38e09681-ab07-4479-b5fb-b66af78f72d8",
"name": "获取 LinkedIn 帖子",
"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": "筛选高互动帖子",
"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": "生成帖子创意(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": "保存草稿到 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": "通知审核者(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": {
"Post to X": {
"main": [
[
{
"node": "Append Linkedin And X Publishing Responses",
"type": "main",
"index": 0
}
]
]
},
"Format AI Output": {
"ai_outputParser": [
[
{
"node": "Generate AI Content",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Post to LinkedIn": {
"main": [
[
{
"node": "Append Linkedin And X Publishing Responses",
"type": "main",
"index": 1
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Fetch LinkedIn Posts",
"type": "main",
"index": 0
}
]
]
},
"Receive Post Title": {
"main": [
[
{
"node": "Generate AI Content",
"type": "main",
"index": 0
}
]
]
},
"Generate AI Content": {
"main": [
[
{
"node": "Post to X",
"type": "main",
"index": 0
},
{
"node": "Post to LinkedIn",
"type": "main",
"index": 0
}
]
]
},
"Fetch LinkedIn Posts": {
"main": [
[
{
"node": "Filter High Engagement Posts",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Generate AI Content",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Filter High Engagement Posts": {
"main": [
[
{
"node": "Generate Post Ideas (OpenAI)",
"type": "main",
"index": 0
}
]
]
},
"Generate Post Ideas (OpenAI)": {
"main": [
[
{
"node": "Save Drafts to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Save Drafts to Google Sheets": {
"main": [
[
{
"node": "Notify Reviewer (Slack)",
"type": "main",
"index": 0
}
]
]
},
"Append Linkedin And X Publishing Responses": {
"main": [
[
{
"node": "Show Confirmation",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
帖子工厂
基于OpenAI、LinkedIn和Twitter审批的自动化社交媒体内容创作
If
Gmail
Slack
+10
22 节点Saloni Malhotra
社交媒体
内容聚合
使用Gemini AI从网站文章自动化社交媒体帖子发布到LinkedIn和X/Twitter
If
Set
Xml
+16
34 节点Vadim
内容创作
基于GPT-4和审批流程的WhatsApp到社交媒体内容生成
基于GPT-4和审批流程的WhatsApp到社交媒体内容生成
If
Set
Gmail
+13
54 节点Jamot
社交媒体
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
AI生成LinkedIn帖子含人工审批
使用GPT-4、GoToHuman和Blotato的AI生成LinkedIn帖子含人工审批
Code
Merge
Filter
+10
19 节点Robert Breen
社交媒体
社交媒体教程
基于AI的社交媒体内容生成与发布
Set
Code
Form
+11
26 节点Amjid Ali
人工智能