使用 Nano Banana 编辑图片
中级
这是一个Miscellaneous, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 If, Wait, Gmail, HttpRequest, GoogleDriveTrigger 等节点。 使用 Nano Banana 自动编辑 Google Drive 中的图片并通过 Gmail 发送
前置要求
- •Google 账号和 Gmail API 凭证
- •可能需要目标 API 的认证凭证
- •Google Drive API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "FypITSkWGorqJ9AC",
"meta": {
"instanceId": "1c7b08fed4406d546caf4a44e8b942ca317e7e207bb9a5701955a1a6e1ce1843",
"templateCredsSetupCompleted": true
},
"name": "使用 Nano Banana 编辑图片",
"tags": [],
"nodes": [
{
"id": "e13be6e8-d952-4b3e-a2cd-299e8d6b2703",
"name": "Google Drive 触发器",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
0,
0
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "REDACTED_FOLDER_ID",
"cachedResultUrl": "REDACTED_FOLDER_URL",
"cachedResultName": "Image Upload Folder"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "REDACTED",
"name": "REDACTED"
}
},
"typeVersion": 1
},
{
"id": "0d29dcde-79b9-4c5c-a403-9c01004d8afe",
"name": "提交图片编辑请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
256,
0
],
"parameters": {
"url": "https://api.wavespeed.ai/api/v3/google/nano-banana/edit",
"method": "POST",
"options": {
"redirect": {
"redirect": {}
}
},
"jsonBody": "={\n \"enable_base64_output\": false,\n \"enable_sync_mode\": false,\n \"images\": [\n \"{{ $json.webContentLink }}\"\n ],\n \"output_format\": \"jpeg\",\n \"prompt\": \"Change the lighting to night scene\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "REDACTED",
"name": "REDACTED"
}
},
"typeVersion": 4.2
},
{
"id": "7a6b15d9-7a92-4037-8c51-3a45e6b10091",
"name": "获取图片编辑请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
784,
0
],
"parameters": {
"url": "=https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result",
"options": {
"redirect": {
"redirect": {}
}
},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "REDACTED",
"name": "REDACTED"
}
},
"typeVersion": 4.2
},
{
"id": "6ed0ffd0-d7ff-42de-8b9f-e649cb0c308a",
"name": "等待 15 秒",
"type": "n8n-nodes-base.wait",
"position": [
496,
0
],
"webhookId": "bb1fb286-c850-452f-9abb-87042232fb05",
"parameters": {
"amount": 15
},
"typeVersion": 1.1
},
{
"id": "b3890106-f04c-4d42-ac06-fcb6c317754f",
"name": "如果",
"type": "n8n-nodes-base.if",
"position": [
992,
0
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "bb31e7d0-81be-4f66-bb33-355a6bee54ad",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "completed"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "f05d5f9a-754f-48cf-8084-913e19456f92",
"name": "等待 15 秒 2",
"type": "n8n-nodes-base.wait",
"position": [
896,
176
],
"webhookId": "eaa01585-31de-4930-9ab7-237e0905ca17",
"parameters": {
"amount": 15
},
"typeVersion": 1.1
},
{
"id": "6fbd64ee-b4c3-4098-b51f-9a5753adc48c",
"name": "将编辑后的图片发送至邮箱",
"type": "n8n-nodes-base.gmail",
"position": [
1312,
-16
],
"webhookId": "12ba2444-1b18-4a0d-8378-e228880ca283",
"parameters": {
"sendTo": "REDACTED_EMAIL",
"message": "={{ $json.data.outputs[0] }}",
"options": {},
"subject": "Edited Image"
},
"credentials": {
"gmailOAuth2": {
"id": "REDACTED",
"name": "REDACTED"
}
},
"typeVersion": 2.1
},
{
"id": "b4fb4713-2fd5-40a8-97f1-ea40b33c6cc2",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-192
],
"parameters": {
"height": 672,
"content": "图片上传到 Drive 触发器"
},
"typeVersion": 1
},
{
"id": "314f2fe1-b0e8-4fbb-b8d3-cae73fabfd80",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
176,
-192
],
"parameters": {
"color": 7,
"width": 256,
"height": 672,
"content": "提交图片到 Nano Banana 进行编辑(Wavespeed)"
},
"typeVersion": 1
},
{
"id": "1b267f45-4981-47e7-a6c2-85a66e0f9716",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
448,
-192
],
"parameters": {
"color": 4,
"width": 704,
"height": 672,
"content": "从 Nano Banana 获取编辑后的图片(Wavespeed)"
},
"typeVersion": 1
},
{
"id": "e3fffbab-22bb-47ae-81fc-62c0237eda95",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1168,
-192
],
"parameters": {
"color": 3,
"width": 336,
"height": 672,
"content": "将编辑后的图片发送至邮箱"
},
"typeVersion": 1
},
{
"id": "5ce5afb0-398b-494e-978a-e0c3a7dbd799",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1168,
-208
],
"parameters": {
"width": 1008,
"height": 1392,
"content": "Google Drive → Wavespeed(Google Nano Banana)→ Gmail:自动编辑并邮件发送图片"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d54ba365-2b52-4494-b77a-7d08f29cec34",
"connections": {
"If": {
"main": [
[
{
"node": "Send Edited Image to Email",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait 15 Secs2",
"type": "main",
"index": 0
}
]
]
},
"Wait 15 Secs": {
"main": [
[
{
"node": "Get Image Edit Request",
"type": "main",
"index": 0
}
]
]
},
"Wait 15 Secs2": {
"main": [
[
{
"node": "Get Image Edit Request",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Trigger": {
"main": [
[
{
"node": "Post Image Edit Request",
"type": "main",
"index": 0
}
]
]
},
"Get Image Edit Request": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Post Image Edit Request": {
"main": [
[
{
"node": "Wait 15 Secs",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 杂项, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Submagic + 自动发布
使用Submagic、Postiz和OpenAI自动为视频添加字幕并发布到Instagram和TikTok
If
Code
Wait
+6
21 节点Automate With Marc
多模态 AI
IG自动字幕代理工作流
使用Google Drive和Submagic为Instagram/TikTok视频自动添加字幕
If
Wait
Google Drive
+3
14 节点Automate With Marc
内容创作
Nano banana + 自动发布
通过Nano Banana和GPT-5标题生成自动化图片编辑和Instagram发布
If
Wait
Http Request
+5
20 节点Automate With Marc
社交媒体
Heygen入站智能体
使用 Heygen AI 和 GPT-4 通过个性化视频回复入站线索
If
Wait
Gmail
+6
16 节点Automate With Marc
客户培育
GPT-5 & Veo-3 Instagram视频生成器与自动发布
使用Google Veo-3 AI和GPT自动创建并发布社交媒体短视频
If
Wait
Http Request
+3
15 节点Automate With Marc
内容创作
Veo3 Instagram代理工作流
使用Veo3、GPT-4和Blotato自动生成并发布Instagram Reels
If
Set
Wait
+5
21 节点Automate With Marc
内容创作
工作流信息
难度等级
中级
节点数量12
分类2
节点类型6
作者
Automate With Marc
@marconiAutomating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc
外部链接
在 n8n.io 查看 →
分享此工作流