Instagram视觉分析:Apify爬取、OpenAI GPT-5与Google表格集成
中级
这是一个Market Research, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Filter, SplitOut, HttpRequest, GoogleSheets, ManualTrigger 等节点。 通过Apify爬取、OpenAI GPT-5分析和Google表格存储的Instagram视觉分析
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "5432b2ed-adde-4021-b6b3-e75e43bd102c",
"name": "当点击\"执行工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1152,
3984
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5c21dec6-09d2-427e-89bc-2a1b809a0d40",
"name": "抓取详情",
"type": "n8n-nodes-base.httpRequest",
"position": [
-400,
3952
],
"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.User }}\"\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth"
},
"credentials": {
"httpQueryAuth": {
"id": "wR5zdRq0CfAhl2yx",
"name": "Query Auth account"
}
},
"executeOnce": true,
"typeVersion": 4.2
},
{
"id": "5dd0aa9e-2197-46e4-adcc-c4fed6e0b002",
"name": "获取 Google 表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
-928,
3984
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1dgkznTbUYCi6bzX_K2qRQT0WvmgTtPISWP9iyiLouyA/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1dgkznTbUYCi6bzX_K2qRQT0WvmgTtPISWP9iyiLouyA",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1dgkznTbUYCi6bzX_K2qRQT0WvmgTtPISWP9iyiLouyA/edit?usp=drivesdk",
"cachedResultName": "Instagram Analysis"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "HlBW2puZbuCCq8jJ",
"name": "Google Sheets account 3"
}
},
"typeVersion": 4.6
},
{
"id": "f316f5b7-e4be-42fd-8eb4-730cd2a8759c",
"name": "筛选",
"type": "n8n-nodes-base.filter",
"position": [
-672,
3616
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "33016bc5-0c17-48c0-b77a-67c9b74584ac",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $json.row_number }}",
"rightValue": 2
}
]
}
},
"typeVersion": 2.2
},
{
"id": "37cf43bb-4e6b-462f-a34f-e0b4651e033d",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
352,
3568
],
"parameters": {
"text": "=image: data",
"options": {
"systemMessage": "to go the url provided. analyze what is in the image. output the analyis and the image",
"passthroughBinaryImages": true
},
"promptType": "define"
},
"executeOnce": true,
"typeVersion": 2.2
},
{
"id": "a690587f-4d14-4087-b255-67a152cc75fa",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
192,
4064
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5",
"cachedResultName": "gpt-5"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4l6TDfLZVFS24g3X",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "ac29d89e-49f2-4bbf-ba23-5fd00aa689d6",
"name": "拆分输出",
"type": "n8n-nodes-base.splitOut",
"position": [
-176,
3552
],
"parameters": {
"options": {},
"fieldToSplitOut": "latestPosts"
},
"typeVersion": 1
},
{
"id": "0ad175a5-c1c8-498e-b6b0-1c36aabacb8d",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
16,
3568
],
"parameters": {
"url": "={{ $json.displayUrl }}",
"options": {}
},
"executeOnce": true,
"typeVersion": 4.2
},
{
"id": "c5f57bab-6350-4bf0-8524-75cbbca86321",
"name": "便签53",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1248,
3312
],
"parameters": {
"color": 7,
"width": 2144,
"height": 1056,
"content": "### 使用 Apify 抓取 Instagram 图片,并通过 n8n 中的 OpenAI 进行分析,以获取快速视觉洞察(Google Sheets + HTTP + OpenAI)"
},
"typeVersion": 1
},
{
"id": "38a41e2a-85bd-4e73-9513-1cc6b3277735",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1696,
3312
],
"parameters": {
"width": 400,
"height": 1056,
"content": "## ⚙️ 设置(最低凭证要求)"
},
"typeVersion": 1
},
{
"id": "e8a37bc8-a2db-4eea-ae7f-3b13b647f6e5",
"name": "便签61",
"type": "n8n-nodes-base.stickyNote",
"position": [
-992,
3664
],
"parameters": {
"color": 3,
"width": 224,
"height": 496,
"content": "### 1) 连接 Google Sheets (OAuth2)"
},
"typeVersion": 1
},
{
"id": "b24c1d5f-9070-4578-bd70-6c4711545818",
"name": "便签63",
"type": "n8n-nodes-base.stickyNote",
"position": [
-464,
3504
],
"parameters": {
"color": 3,
"width": 224,
"height": 640,
"content": "### 2) 连接 Apify (HTTP 查询认证)"
},
"typeVersion": 1
},
{
"id": "23416d72-b9e9-4ab1-8b57-8a8a1f0cfcfe",
"name": "便签64",
"type": "n8n-nodes-base.stickyNote",
"position": [
112,
3776
],
"parameters": {
"color": 3,
"width": 224,
"height": 400,
"content": "### 3) 连接 OpenAI (API 密钥)"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Filter": {
"main": [
[
{
"node": "Scrape Details",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Scrape Details": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Get Google Sheet": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Get Google Sheet",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 市场调研, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI生成LinkedIn帖子含人工审批
使用GPT-4、GoToHuman和Blotato的AI生成LinkedIn帖子含人工审批
Code
Merge
Filter
+10
19 节点Robert Breen
社交媒体
使用 Apify + GPT-4o-mini 从标签分析生成 Instagram 标题
使用 Apify + GPT-4o-mini 从标签分析生成 Instagram 标题
Set
Code
Merge
+8
17 节点Robert Breen
内容创作
使用 Perplexity AI 研究业务线索并使用 OpenAI 保存到 Google Sheets
使用 Perplexity AI 研究业务线索并使用 OpenAI 保存到 Google Sheets
Set
Merge
Split Out
+8
18 节点Robert Breen
杂项
使用Google Sheets、SerpAPI、Apify和GPT-4o提取本地企业联系人
使用Google Sheets、SerpAPI、Apify和GPT-4o提取本地企业联系人
Code
Filter
Summarize
+10
18 节点Robert Breen
潜在客户开发
博客内容多语言自动翻译
使用GPT-4o和Markdown自动将博客内容翻译为多种语言
Set
Merge
Split Out
+5
12 节点Robert Breen
内容创作
实时SEO关键词研究工具
使用DataForSEO和Google表格自动化实时SEO关键词研究
Set
Filter
Split Out
+4
37 节点Agent Circle
市场调研
工作流信息
难度等级
中级
节点数量13
分类2
节点类型8
作者
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 查看 →
分享此工作流