使用背景移除AI处理图像并在Google表格中跟踪结果
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Wait, FormTrigger, HttpRequest, GoogleSheets 等节点。 使用背景移除AI处理图像并在Google表格中跟踪结果
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "72819496-27be-41bf-952e-b7cd3d3c705c",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
-380,
-20
],
"webhookId": "2451102d-b2f4-4406-8984-7df962426524",
"parameters": {
"options": {
"respondWithOptions": {
"values": {
"redirectUrl": "https://docs.google.com/spreadsheets/d/1j_t4wtj3vYG6yGhJJdFVaKsr9wyYvPEWcUm5lWH24rc/edit?gid=0#gid=0",
"respondWith": "redirect"
}
}
},
"formTitle": "Background Removal AI",
"formFields": {
"values": [
{
"fieldType": "file",
"fieldLabel": "Image",
"multipleFiles": false,
"requiredField": true
}
]
},
"responseMode": "lastNode"
},
"typeVersion": 2.2
},
{
"id": "2a802d55-cd1c-4360-a65b-71fe90a0c232",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
-140,
0
],
"parameters": {
"url": "https://background-remover-ai3.p.rapidapi.com/index.php",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "Image"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "background-remover-ai3.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "your key"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "fd6755a4-f7ba-4af5-99ef-9cab758804d2",
"name": "转换为文件",
"type": "n8n-nodes-base.convertToFile",
"position": [
80,
-20
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "base64"
},
"typeVersion": 1.1
},
{
"id": "f772d815-5bd0-45c5-ab25-ddeac40a15a5",
"name": "条件判断",
"type": "n8n-nodes-base.if",
"position": [
640,
-60
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b134c11f-b776-4335-9256-11af7b9fd536",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "success"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "271d69a2-ece8-4880-9ce8-2d49549e7408",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
940,
-220
],
"webhookId": "69d92853-05e0-4ba7-b86e-ea7a17591e3e",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "23ef4eb0-72ec-4c79-9e54-41a678ca64e5",
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
1240,
-140
],
"parameters": {
"columns": {
"value": {
"Link": "={{ $json.data.url }}",
"status": "={{ $json.status }}",
"Expire at": "={{ new Date(new Date($now).setMinutes(new Date($now).getMinutes() + 60)).toISOString() }}",
"Image name": "={{ $('On form submission').item.json.Image.filename }}"
},
"schema": [
{
"id": "Image name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Image name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Link",
"type": "string",
"display": true,
"required": false,
"displayName": "Link",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Expire at",
"type": "string",
"display": true,
"required": false,
"displayName": "Expire at",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "status",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "data",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "data",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Image name"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "qUtlCnYpk7bXXaYp",
"name": "Google Sheets account 3"
}
},
"typeVersion": 4.6
},
{
"id": "09157090-fa1e-4ca4-9f2b-4ca5eccd1ba5",
"name": "Google Sheets1",
"type": "n8n-nodes-base.googleSheets",
"position": [
1060,
240
],
"parameters": {
"columns": {
"value": {
"Link": "Not found",
"status": "=Failed",
"Expire at": "={{ $now }}",
"Image name": "={{ $('On form submission').item.json.Image.filename }}"
},
"schema": [
{
"id": "Image name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Image name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Link",
"type": "string",
"display": true,
"required": false,
"displayName": "Link",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Expire at",
"type": "string",
"display": true,
"required": false,
"displayName": "Expire at",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "status",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "data",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "data",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Image name"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "qUtlCnYpk7bXXaYp",
"name": "Google Sheets account 3"
}
},
"typeVersion": 4.6
},
{
"id": "391378d0-e0da-4986-acaf-6f4d65aa51d5",
"name": "文件上传 API",
"type": "n8n-nodes-base.httpRequest",
"position": [
360,
-20
],
"parameters": {
"url": "https://temp-file-upload.p.rapidapi.com/temp-file.php",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "temp-file-upload.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "your key"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "f4cef78e-bb7c-4002-8ee7-4ffd6dcebb64",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1240,
-460
],
"parameters": {
"width": 540,
"height": 860,
"content": "# 背景移除 AI"
},
"typeVersion": 1
},
{
"id": "416bc2fc-6565-4639-a003-e35e96b3c011",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-460,
-200
],
"parameters": {
"width": 220,
"height": 340,
"content": "**表单提交时**:"
},
"typeVersion": 1
},
{
"id": "d9861b51-a7b4-42ce-91e6-933b7c59e81f",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
-200
],
"parameters": {
"height": 340,
"content": "**HTTP 请求**:"
},
"typeVersion": 1
},
{
"id": "81dced60-06f7-400a-b486-d2a1dc551718",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
60,
-200
],
"parameters": {
"height": 340,
"content": "**转换为文件**:"
},
"typeVersion": 1
},
{
"id": "17a73e52-d0e6-4688-9083-746d9bee10e7",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
-200
],
"parameters": {
"height": 340,
"content": "**文件上传 API**:"
},
"typeVersion": 1
},
{
"id": "c232313d-5722-4be5-8d5e-8a975c2b19c6",
"name": "便利贴5",
"type": "n8n-nodes-base.stickyNote",
"position": [
600,
-200
],
"parameters": {
"height": 340,
"content": "**条件判断**:"
},
"typeVersion": 1
},
{
"id": "a5e0ea23-7f5c-488d-9d63-93269b6351eb",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
-400
],
"parameters": {
"height": 320,
"content": "**等待**:"
},
"typeVersion": 1
},
{
"id": "847aaa09-7ce5-4f54-a451-8f34576205b4",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1180,
-300
],
"parameters": {
"height": 300,
"content": "**Google Sheets**:"
},
"typeVersion": 1
},
{
"id": "5ce6be0a-387b-4623-b867-3246649a489c",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
980,
40
],
"parameters": {
"height": 340,
"content": "**Google Sheets1**:"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"If": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
],
[
{
"node": "Google Sheets1",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "File Upload Api",
"type": "main",
"index": 0
}
]
]
},
"File Upload Api": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
无水印TikTok视频下载至Google Drive并自动记录到表格
将无水印TikTok视频下载到Google Drive,并自动在表格中记录日志
If
Wait
Form Trigger
+4
19 节点Evoort Solutions
内容创作
TikTok转录文本
使用RapidAPI和Google Sheets自动化TikTok视频转录
If
Code
Wait
+5
21 节点Evoort Solutions
内容创作
使用图像转图像GPT、Google Sheets和Drive生成并上传图片
使用图像转图像GPT、Google Sheets和Drive生成并上传图片
If
Code
Wait
+6
23 节点Evoort Solutions
内容创作
潜在客户磁铁生成
使用RapidAPI AI从谷歌表格生成潜在客户磁铁创意
If
Wait
Http Request
+4
15 节点Evoort Solutions
内容创作
使用Google Sheets和邮件通知优化标题清晰度
使用Google Sheets和邮件通知优化标题清晰度
If
Code
Email Send
+4
14 节点Evoort Solutions
内容创作
Flux AI 文生图副本
使用 Flux AI 集成 Google Sheets 和 Drive 的文生图生成器
If
Code
Wait
+6
23 节点Evoort Solutions
内容创作