使用 Phantombuster 的 LinkedIn 帖子互动
中级
这是一个AI, Marketing领域的自动化工作流,包含 14 个节点。主要使用 HttpRequest, GoogleSheets, Agent, ScheduleTrigger, LmChatOpenAi 等节点,结合人工智能技术实现智能自动化。 使用 Phantombuster、OpenAI GPT 和 Google Sheets 跟踪自动化 LinkedIn 互动
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "kMppQ9OLVQ08LU6M",
"meta": {
"instanceId": "84ad02d6104594179f43f1ce9cfe3a81637b2faedb57dafcb9e649b7542988db",
"templateCredsSetupCompleted": true
},
"name": "使用 Phantombuster 的 LinkedIn 帖子互动",
"tags": [],
"nodes": [
{
"id": "9374a17f-fb35-4862-ba86-d52d0c616ee6",
"name": "每日触发器 - 上午 9 点",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
0
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"typeVersion": 1.2
},
{
"id": "c71ab77a-b12d-4966-a33f-d7204f5d31fd",
"name": "LinkedIn 帖子抓取器",
"type": "n8n-nodes-base.httpRequest",
"position": [
220,
0
],
"parameters": {
"url": "https://api.phantombuster.com/api/v2/agent/launch",
"method": "POST",
"options": {},
"jsonBody": "{\n \"id\": \"YOUR_AGENT_ID\",\n \"arguments\": {\n \"profileUrls\": [\n \"https://www.linkedin.com/in/USERNAME/\"\n ],\n \"numberOfPosts\": 1\n },\n \"save\": false\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "X-Phantombuster-Key-1",
"value": "YOUR_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "9b7dc781-3726-4ce0-a551-57f3b304aebd",
"name": "获取抓取结果",
"type": "n8n-nodes-base.httpRequest",
"position": [
440,
0
],
"parameters": {
"url": "https://api.phantombuster.com/api/v2/agent/fetch-output",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "id",
"value": "YOUR_AGENT_ID"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "X-Phantombuster-Key-1",
"value": "YOUR_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "f7f1e974-9522-4692-9af8-1674bac0341a",
"name": "评论代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
940,
0
],
"parameters": {
"text": "=You are a professional LinkedIn marketer. Your job is to write engaging, thoughtful, and relevant comments for posts to increase visibility and connection with the author.\n\nHere is the latest LinkedIn post:\n\nAuthor: {{ $json.authorName }}\nProfile: {{ $json.authorProfile }}\nPost URL: {{ $json.postUrl }}\nDate: {{ $json.date }}\nContent:\n\"\"\"\n{{ $json.text }}\n\"\"\"\n\nWrite a concise and personalized comment (1–2 sentences max) that:\n- Adds value to the conversation\n- Feels human and not generic\n- Avoids spammy language\n- Uses a positive and professional tone\n\nOnly return the comment text. Do not include quotation marks or any intro.",
"options": {},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "d58b36e6-b24b-450b-9577-2da590c51d96",
"name": "评论生成模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
880,
240
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "wYwTjEv45IzlAOAu",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "cd761bd8-1d94-4e28-ade5-a4e69b463124",
"name": "点赞 LinkedIn 帖子",
"type": "n8n-nodes-base.httpRequest",
"position": [
1760,
-140
],
"parameters": {
"url": "https://api.phantombuster.com/api/v2/agent/launch",
"method": "POST",
"options": {},
"jsonBody": "={\n \"id\": \"YOUR_LIKER_AGENT_ID\",\n \"arguments\": {\n \"postUrls\": [\n {{ $('Fetch Scraper Results').item.json.postUrl }}\n ]\n },\n \"save\": false\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "X-Phantombuster-Key-1",
"value": "YOUR_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "337498aa-ee44-4f92-bd46-7bbdc982960d",
"name": "发布 LinkedIn 评论",
"type": "n8n-nodes-base.httpRequest",
"position": [
1760,
140
],
"parameters": {
"url": "https://api.phantombuster.com/api/v2/agent/launch",
"method": "POST",
"options": {},
"jsonBody": "={\n \"id\": \"YOUR_COMMENTER_AGENT_ID\",\n \"arguments\": {\n \"postUrls\": [\n {{ $('Fetch Scraper Results').item.json.postUrl }}\n ],\n \"comments\": [\n {{ $json.output }}\n ]\n },\n \"save\": false\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "X-Phantombuster-Key-1",
"value": "YOUR_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "27e6fab8-c8e9-4613-a8c1-1fb8306b9c46",
"name": "记录活动到表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
2360,
-20
],
"parameters": {
"columns": {
"value": {
"Comment": "={{ $('Commenter Agent').item.json.output }}",
"PostUrl": "={{ $('Fetch Scraper Results').item.json.postUrl }}",
"Post text": "={{ $('Fetch Scraper Results').item.json.text }}",
"Timestamp": "={{ $('Fetch Scraper Results').item.json.timestamp }}",
"AuthorName": "={{ $('Fetch Scraper Results').item.json.authorName }}",
"AuthorProfile": "={{ $('Fetch Scraper Results').item.json.authorProfile }}"
},
"schema": [
{
"id": "AuthorName",
"type": "string",
"display": true,
"required": false,
"displayName": "AuthorName",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "AuthorProfile",
"type": "string",
"display": true,
"required": false,
"displayName": "AuthorProfile",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "PostUrl",
"type": "string",
"display": true,
"required": false,
"displayName": "PostUrl",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Post text",
"type": "string",
"display": true,
"required": false,
"displayName": "Post text",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Comment",
"type": "string",
"display": true,
"required": false,
"displayName": "Comment",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Timestamp",
"type": "string",
"display": true,
"required": false,
"displayName": "Timestamp",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/15h8fYaIVsC7HZf5-KsPA8tx-459ulURB5UEMC62Khzk/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "15h8fYaIVsC7HZf5-KsPA8tx-459ulURB5UEMC62Khzk",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/15h8fYaIVsC7HZf5-KsPA8tx-459ulURB5UEMC62Khzk/edit?usp=drivesdk",
"cachedResultName": "LinkedIn auto liker and commenter"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "K5yYfUnKFTqaRn6A",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "6f8ccb5f-ddfd-4524-8098-51f027712203",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
-760
],
"parameters": {
"color": 3,
"width": 640,
"height": 940,
"content": "## 🔹 **第一部分:触发器和数据收集**"
},
"typeVersion": 1
},
{
"id": "eca7d2c9-342f-4db0-a6b1-c5132f0af256",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
-680
],
"parameters": {
"color": 5,
"width": 580,
"height": 1080,
"content": "## 🔹 **第二部分:基于 AI 的内容分析和评论生成**"
},
"typeVersion": 1
},
{
"id": "c47a8e47-cab6-4e47-90d9-41c6e5b56189",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1580,
-820
],
"parameters": {
"color": 7,
"width": 460,
"height": 1140,
"content": "## 🔹 **第三部分:帖子互动自动化**"
},
"typeVersion": 1
},
{
"id": "36083131-b3de-4d8c-8d7c-941368fb6312",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2180,
-560
],
"parameters": {
"color": 2,
"width": 480,
"height": 720,
"content": "## 🔹 **第四部分:结果记录和存储**"
},
"typeVersion": 1
},
{
"id": "9f6c0756-449a-45c4-ab49-080576be9651",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1920,
-760
],
"parameters": {
"color": 4,
"width": 1300,
"height": 320,
"content": "======================================="
},
"typeVersion": 1
},
{
"id": "df8bc986-f7b8-4378-a0cd-737a15e0279e",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1920,
-420
],
"parameters": {
"color": 4,
"width": 1289,
"height": 3378,
"content": "# 🔄 **自动化 LinkedIn 互动工作流**"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "6db64df0-bacb-483a-833c-e23893831a22",
"connections": {
"Commenter Agent": {
"main": [
[
{
"node": "Like LinkedIn Post",
"type": "main",
"index": 0
},
{
"node": "Post LinkedIn Comment",
"type": "main",
"index": 0
}
]
]
},
"Like LinkedIn Post": {
"main": [
[
{
"node": "Log Activity to Sheet",
"type": "main",
"index": 0
}
]
]
},
"Daily Trigger - 9 AM": {
"main": [
[
{
"node": "LinkedIn Posts Scraper",
"type": "main",
"index": 0
}
]
]
},
"Fetch Scraper Results": {
"main": [
[
{
"node": "Commenter Agent",
"type": "main",
"index": 0
}
]
]
},
"Post LinkedIn Comment": {
"main": [
[
{
"node": "Log Activity to Sheet",
"type": "main",
"index": 0
}
]
]
},
"LinkedIn Posts Scraper": {
"main": [
[
{
"node": "Fetch Scraper Results",
"type": "main",
"index": 0
}
]
]
},
"Comment Generation Model": {
"ai_languageModel": [
[
{
"node": "Commenter Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
自动新闻摘要与邮件简报(GPT-4、NewsAPI 和 Gmail)
使用 GPT-4、NewsAPI 和 Gmail 自动生成新闻摘要与邮件简报
Gmail
Http Request
Google Sheets
+4
7 节点Yaron Been
人工智能
AI YouTube分析助手:评论分析与洞察报告
AI YouTube分析助手:评论分析器与洞察报告生成器
If
Set
Code
+9
19 节点Yaron Been
人工智能
使用 GPT-4 自动生成并分发 LinkedIn 帖子到个人资料和群组
使用 GPT-4 自动生成并分发 LinkedIn 帖子到个人资料和群组
If
Code
Limit
+8
14 节点Yaron Been
人工智能
FireCrawl摘要机器人
Firecrawl AI驱动的市场情报机器人:自动新闻洞察交付
Code
Slack
Http Request
+4
10 节点Yaron Been
人工智能
YouTube 视频摘要生成器(GPT-4o、Slack 审批与 Reddit 发布)
使用 GPT-4o 生成 YouTube 视频摘要,支持 Slack 审批和 Reddit 发布
Code
Slack
Reddit
+6
15 节点Yaron Been
人工智能
YouTube 视频摘要发送至 Discord(GPT-4o、Slack 审批和 Google Sheets)
使用 GPT-4o 生成 YouTube 视频摘要,发送至 Discord,支持 Slack 审批和 Google Sheets
Code
Slack
Discord
+6
15 节点Yaron Been
人工智能
工作流信息
难度等级
中级
节点数量14
分类2
节点类型6
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos
外部链接
在 n8n.io 查看 →
分享此工作流