17 - AI LinkedIn回复器
中级
这是一个Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 If, Set, HttpRequest, GoogleSheets, ScheduleTrigger 等节点。 使用 GPT-3.5 自动回复 LinkedIn 评论并在 Google Sheets 中跟踪
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "PUBLIC_LINKEDIN_WORKFLOW_ID",
"meta": {
"instanceId": "PUBLIC_TEMPLATE_INSTANCE",
"templateCredsSetupCompleted": false
},
"name": "17 - AI LinkedIn回复器",
"tags": [],
"nodes": [
{
"id": "9760b272-ad71-47ec-aab8-51eb8b937bb7",
"name": "📥 获取LinkedIn评论",
"type": "n8n-nodes-base.httpRequest",
"position": [
900,
320
],
"parameters": {
"url": "https://api.linkedin.com/v2/socialActions/urn:li:share:YOUR_POST_ID/comments",
"options": {},
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer YOUR_ACCESS_TOKEN"
},
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "YOUR_HEADER_AUTH_CREDENTIAL_ID",
"name": "LinkedIn Header Auth"
}
},
"typeVersion": 4.1
},
{
"id": "3a82041d-b02f-4431-97f2-c6760a96324e",
"name": "📊 设置最后时间戳",
"type": "n8n-nodes-base.set",
"position": [
1120,
220
],
"parameters": {
"options": {}
},
"typeVersion": 3.3
},
{
"id": "6d88d258-ff26-41df-814d-e237f1061dbc",
"name": "🔍 筛选新评论",
"type": "n8n-nodes-base.if",
"position": [
1340,
220
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "comment-filter-condition",
"operator": {
"type": "dateTime",
"operation": "after",
"rightType": "manual"
},
"leftValue": "={{ $json.created.time }}",
"rightValue": "={{ $node[\"📊 Set Last Timestamp\"].json.lastCommentTimestamp }}"
}
]
}
},
"typeVersion": 2
},
{
"id": "1e19adac-640f-4583-bc80-e9a4e4c8210a",
"name": "🤖 生成AI回复",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1560,
220
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-3.5-turbo",
"cachedResultName": "GPT-3.5-TURBO"
},
"options": {},
"messages": {
"values": [
{
"content": "You are a helpful social media manager. Generate a professional and engaging reply to the following LinkedIn comment. Keep it concise, positive, and appropriate for business networking.\n\nOriginal comment: {{ $json.message.text }}\n\nReply should be:\n- Professional but friendly\n- Maximum 2-3 sentences\n- Thank the commenter or acknowledge their input\n- Add value or continue the conversation naturally"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "YOUR_OPENAI_CREDENTIAL_ID",
"name": "OpenAI API Credentials"
}
},
"typeVersion": 1
},
{
"id": "abe4892d-9908-4794-ae53-befbdaaacf75",
"name": "💬 发布LinkedIn回复",
"type": "n8n-nodes-base.httpRequest",
"position": [
1940,
220
],
"parameters": {
"url": "=https://api.linkedin.com/v2/socialActions/{{ $json.id }}/comments",
"options": {},
"jsonBody": "={\n \"actor\": \"urn:li:person:YOUR_ACTOR_URN\",\n \"message\": {\n \"text\": \"{{ $node[\"🤖 Generate AI Reply\"].json.response }}\"\n }\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer YOUR_ACCESS_TOKEN"
},
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "dcaef8a6-4d04-4eac-b01b-f03984556e34",
"name": "📋 工作流注释2",
"type": "n8n-nodes-base.stickyNote",
"position": [
620,
-200
],
"parameters": {
"color": 5,
"width": 440,
"height": 740,
"content": "## 涵盖节点:LinkedIn API、调度、Google Sheet"
},
"typeVersion": 1
},
{
"id": "226eb70b-6529-48fe-9c60-872eb15a59e4",
"name": "⏰ 每10分钟运行",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
680,
220
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 10
}
]
}
},
"typeVersion": 1.2
},
{
"id": "65caa63a-15c2-4ff1-9917-ff5e6f0789d2",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1080,
-200
],
"parameters": {
"width": 420,
"height": 740,
"content": "## 涵盖节点:数据筛选"
},
"typeVersion": 1
},
{
"id": "d30d1fda-a75d-4017-bec8-8eb02541be05",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1520,
-200
],
"parameters": {
"color": 3,
"width": 340,
"height": 740,
"content": "## 涵盖节点:OpenAI分析"
},
"typeVersion": 1
},
{
"id": "5885c2a3-43db-4184-af9b-759ba9d7cc99",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1880,
-200
],
"parameters": {
"color": 4,
"width": 220,
"height": 740,
"content": "## 涵盖节点:LinkedIn API、AI输出交付"
},
"typeVersion": 1
},
{
"id": "c50f65cb-00d1-40e4-b5a0-5640c25edb79",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2120,
-200
],
"parameters": {
"color": 6,
"width": 220,
"height": 740,
"content": "## 涵盖节点:Google Sheets(写入)"
},
"typeVersion": 1
},
{
"id": "6c6ccc12-0678-4cec-9257-97a9b1c67022",
"name": "📊 获取最后评论时间戳",
"type": "n8n-nodes-base.googleSheets",
"position": [
900,
140
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "id",
"value": "YOUR_SHEET_NAME_OR_GID"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOUR_GOOGLE_SHEET_DOCUMENT_ID"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "YOUR_GOOGLE_SHEETS_CREDENTIAL_ID",
"name": "Google Sheets OAuth2 API"
}
},
"typeVersion": 4.4
},
{
"id": "93407535-d411-4407-800c-df6930304cb3",
"name": "💾 存储评论数据",
"type": "n8n-nodes-base.googleSheets",
"position": [
2160,
220
],
"parameters": {
"columns": {
"value": {},
"schema": [],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "id",
"value": "YOUR_SHEET_NAME_OR_GID"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOUR_GOOGLE_SHEET_DOCUMENT_ID"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "YOUR_GOOGLE_SHEETS_CREDENTIAL_ID",
"name": "Google Sheets OAuth2 API"
}
},
"typeVersion": 4.4
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "PUBLIC_VERSION_ID",
"connections": {
"⏰ Runs Every 10 Mins": {
"main": [
[
{
"node": "📥 Fetch LinkedIn Comments",
"type": "main",
"index": 0
},
{
"node": "📊 Get Last Comment Timestamp",
"type": "main",
"index": 0
}
]
]
},
"🤖 Generate AI Reply": {
"main": [
[
{
"node": "💬 Post LinkedIn Reply",
"type": "main",
"index": 0
}
]
]
},
"📊 Set Last Timestamp": {
"main": [
[
{
"node": "🔍 Filter New Comments",
"type": "main",
"index": 0
}
]
]
},
"💬 Post LinkedIn Reply": {
"main": [
[
{
"node": "💾 Store Comment Data",
"type": "main",
"index": 0
}
]
]
},
"🔍 Filter New Comments": {
"main": [
[
{
"node": "🤖 Generate AI Reply",
"type": "main",
"index": 0
}
]
]
},
"📥 Fetch LinkedIn Comments": {
"main": [
[
{
"node": "📊 Set Last Timestamp",
"type": "main",
"index": 0
}
]
]
},
"📊 Get Last Comment Timestamp": {
"main": [
[
{
"node": "📊 Set Last Timestamp",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
11 - B2B 情报上传链接
使用 GPT-4o-mini 自动丰富并同步 Google Sheets 中的公司信息到 HubSpot
If
Set
Hubspot
+4
13 节点Avkash Kakdiya
潜在客户开发
09 - 潜在客户档案增强器
自动化潜在客户信息丰富与个性化外联:HubSpot、Phantombuster和GPT
If
Set
Code
+11
30 节点Avkash Kakdiya
客户培育
AI 产品图片生成器 - 公共模板
使用 OpenAI、Gemini 和 Google Workspace 的自动化产品广告图片创建
Code
Google Drive
Http Request
+6
15 节点Avkash Kakdiya
内容创作
08 - AI视频生成
使用OpenAI、Veo 3和Gmail为任何主题创建短视频
If
Wait
Gmail
+4
14 节点Avkash Kakdiya
内容创作
10 - 商业版图追踪器
使用SerpAPI、Google表格和Airtable的每日竞争对手研究自动化
If
Code
Airtable
+5
15 节点Avkash Kakdiya
市场调研
21 - 竞争性招聘情报系统
使用 Phantombuster 抓取 LinkedIn 职位列表并保存到 Google Sheets
Set
Wait
Http Request
+3
10 节点Avkash Kakdiya
市场调研
工作流信息
难度等级
中级
节点数量13
分类1
节点类型7
作者
Avkash Kakdiya
@itechnotion🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.
外部链接
在 n8n.io 查看 →
分享此工作流