使用 Apify 抓取和 GPT-4o 评估发现 Instagram 合作线索
中级
这是一个Lead Generation, AI Summarization领域的自动化工作流,包含 12 个节点。主要使用 Set, HttpRequest, ManualTrigger, Agent, LmChatOpenAi 等节点。 通过 Apify 抓取和 GPT-4o 评估发现 Instagram 合作线索
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "82533369-cc25-43f8-9698-c852ff0c6feb",
"name": "当点击“执行工作流”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-480,
440
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
760,
280
],
"parameters": {
"text": "=followers: {{ $json.followersCount }} bio: {{ $json.bio }} ",
"options": {
"systemMessage": "You are a helpful assistant. I'm lookig for n8n creators to collaborate with. read their bio, and output yes or no if they are a good person for me to reach out to in order to collaborate on a project. I need the follower count to be 2k at leaset. \n\noutput like this. \n\n{\n\t\"lead status\": \"Yes or No\",\n\t\"Reasoning\": \"reasoning for why they are a good or bad lead. \"\n}"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2
},
{
"id": "de7abe87-394e-49d1-b049-286ee6d1d477",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
760,
480
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "ghJTvay8CvwXDsXz",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "c3ffa5c7-8ebd-4be3-a9f3-2232ecb19c97",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
940,
460
],
"parameters": {
"jsonSchemaExample": "{\n\t\"lead status\": \"Yes or No\",\n\t\"Reasoning\": \"reasoning for why they are a good or bad lead. \"\n}"
},
"typeVersion": 1.2
},
{
"id": "ba19cddd-f3e4-4b1f-8c19-c5ebeca3d72a",
"name": "查找最近帖子",
"type": "n8n-nodes-base.httpRequest",
"position": [
-40,
440
],
"parameters": {
"url": "=https://api.apify.com/v2/acts/apify~instagram-hashtag-scraper/run-sync-get-dataset-items\n",
"method": "POST",
"options": {},
"jsonBody": "={\n \"hashtags\": [\n \"{{ $json.Search_Term }}\"\n ],\n \"resultsLimit\": 5,\n \"resultsType\": \"posts\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth"
},
"credentials": {
"httpQueryAuth": {
"id": "yLUXsSPePLOGnHmf",
"name": "Query Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "7e3e1c9a-3bcc-4cbc-880d-e2f8c6440159",
"name": "创建搜索词",
"type": "n8n-nodes-base.set",
"position": [
-260,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "ad5c9a23-7fe0-4ed4-b1e7-d3da417bcb86",
"name": "Search_Term",
"type": "string",
"value": "n8n"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b34f82fa-0286-4913-abc6-6b35eb155e44",
"name": "抓取账户",
"type": "n8n-nodes-base.httpRequest",
"position": [
320,
200
],
"parameters": {
"url": "=https://api.apify.com/v2/acts/apify~instagram-profile-scraper/run-sync-get-dataset-items\n",
"method": "POST",
"options": {},
"jsonBody": "={\n \"usernames\": [\n \"{{ $json.ownerUsername }}\"\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth"
},
"credentials": {
"httpQueryAuth": {
"id": "yLUXsSPePLOGnHmf",
"name": "Query Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "8c2b4344-0b26-4eca-98b7-136593e21c7b",
"name": "设置简介和粉丝数",
"type": "n8n-nodes-base.set",
"position": [
500,
400
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f2cfdd81-ee6c-4b27-885a-6cf21f6efffb",
"name": "bio",
"type": "string",
"value": "={{ $json.biography }}"
},
{
"id": "2761d89a-2de3-4aeb-8a05-fc61a20f9ed4",
"name": "followersCount",
"type": "number",
"value": "={{ $json.followersCount }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "3a1e36af-6e34-4ded-85cd-45f7f6788b22",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-580,
-160
],
"parameters": {
"color": 3,
"width": 780,
"height": 800,
"content": "#### 1️⃣ 手动触发器"
},
"typeVersion": 1
},
{
"id": "196cab38-3830-4a0e-8885-f1bc1fc0c57a",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
220,
-160
],
"parameters": {
"color": 4,
"width": 440,
"height": 800,
"content": "#### 4️⃣ 抓取每个个人资料"
},
"typeVersion": 1
},
{
"id": "d0c8ca4e-519c-452c-b906-7d07782ed166",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
680,
-160
],
"parameters": {
"color": 6,
"width": 420,
"height": 800,
"content": "#### 6️⃣ AI 潜在客户评分"
},
"typeVersion": 1
},
{
"id": "7c5fb223-1d60-4134-96f8-e3bb03de25e5",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-580,
-340
],
"parameters": {
"width": 1680,
"content": "## 📬 需要更多帮助?"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Scrape Accounts": {
"main": [
[
{
"node": "Set bio and follower count",
"type": "main",
"index": 0
}
]
]
},
"Find Recent Posts": {
"main": [
[
{
"node": "Scrape Accounts",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Create Search Term": {
"main": [
[
{
"node": "Find Recent Posts",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Set bio and follower count": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Create Search Term",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 潜在客户开发, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用Google Sheets、SerpAPI、Apify和GPT-4o提取本地企业联系人
使用Google Sheets、SerpAPI、Apify和GPT-4o提取本地企业联系人
Code
Filter
Summarize
+10
18 节点Robert Breen
潜在客户开发
播客笔记记录器
使用GPT和Gemini结合性能数据创建高转化率Meta广告脚本
Set
Code
Merge
+8
16 节点Robert Breen
潜在客户开发
使用Apify爬虫和GPT-4o Mini提取YouTube创作者邮箱
使用Apify爬虫和GPT-4o Mini提取YouTube创作者邮箱
Set
Http Request
Manual Trigger
+5
12 节点Robert Breen
AI 摘要总结
使用GPT-4o自动将Outlook邮件分类到颜色类别
使用GPT-4o自动将Outlook邮件分类到颜色类别
Set
Manual Trigger
Split In Batches
+5
13 节点Robert Breen
AI 摘要总结
初学者数据分析:使用 GPT-4o 在 Google Sheets 中合并、筛选和汇总
初学者数据分析:使用 GPT-4o 在 Google Sheets 中合并、筛选和汇总
If
Set
Code
+9
21 节点Robert Breen
文档提取
使用 Perplexity AI 研究业务线索并使用 OpenAI 保存到 Google Sheets
使用 Perplexity AI 研究业务线索并使用 OpenAI 保存到 Google Sheets
Set
Merge
Split Out
+8
18 节点Robert Breen
杂项
工作流信息
难度等级
中级
节点数量12
分类2
节点类型7
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流