Telegram到Nano Banana工作流
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 15 个节点。主要使用 If, Wait, Telegram, GoogleDrive, HttpRequest 等节点。 通过Telegram机器人使用Google Nano Banana AI增强房地产照片
前置要求
- •Telegram Bot Token
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "yo4uYVB632LSnvSU",
"meta": {
"templateCredsSetupCompleted": false
},
"name": "Telegram 到 Nano Banana 工作流",
"tags": [],
"nodes": [
{
"id": "7c24c0ee-5f38-4bba-92e6-d1d01e436581",
"name": "Nano Banana POST 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
336,
16
],
"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\": \"Enhance this apartment photo to make it appealing for real-estate listing. Brighten the overall lighting and create a warm, inviting atmosphere. Improve color balance, contrast, and sharpness to highlight the space. Tidy up and declutter visible items (e.g., remove small messes, smooth out wrinkles on furniture, clear counters). Add natural daylight tones through the windows and enhance shadows for depth. Do not alter permanent fixtures such as flooring, walls, windows, doors, or built-in cabinetry. Keep the original layout intact but ensure the space looks clean, modern, and move-in ready.\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"typeVersion": 4.2
},
{
"id": "1f3805fc-c2d2-4b48-a340-7dafa0b0379f",
"name": "等待 15 秒",
"type": "n8n-nodes-base.wait",
"position": [
608,
0
],
"parameters": {
"amount": 15
},
"typeVersion": 1.1
},
{
"id": "50fb891b-0525-4df6-9dfd-37b1e6eddf36",
"name": "从 Nano Banana 节点获取结果",
"type": "n8n-nodes-base.httpRequest",
"position": [
864,
0
],
"parameters": {
"url": "=https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result",
"options": {
"redirect": {
"redirect": {}
}
},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"typeVersion": 4.2
},
{
"id": "25f5c3eb-ae6b-4df1-8c1e-7e555e2869f3",
"name": "如果",
"type": "n8n-nodes-base.if",
"position": [
1072,
0
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b84517df-a71f-4e28-b744-35bb1e55b85f",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "completed"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "6969741a-716f-4db3-98ac-2c5fefba0a69",
"name": "再次等待 15 秒",
"type": "n8n-nodes-base.wait",
"position": [
1136,
176
],
"parameters": {
"amount": 15
},
"typeVersion": 1.1
},
{
"id": "a9c30d3e-a5ee-4d4c-bea2-dda831661fb1",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-288
],
"parameters": {
"color": 3,
"width": 304,
"height": 800,
"content": "获取图像并上传"
},
"typeVersion": 1
},
{
"id": "b1005b6a-4a02-4734-989f-892ac418fa8a",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
560,
-288
],
"parameters": {
"color": 4,
"width": 784,
"height": 800,
"content": "从 Nano Banana 获取结果"
},
"typeVersion": 1
},
{
"id": "c5ec9b6b-812d-4baf-ad63-d9e43035edbb",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
-288
],
"parameters": {
"color": 5,
"height": 800,
"content": "Telegram 触发器"
},
"typeVersion": 1
},
{
"id": "63fd933d-4aa0-466d-8a56-6eba6613ed3f",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-192,
-288
],
"parameters": {
"width": 384,
"height": 800,
"content": "从 Telegram 下载"
},
"typeVersion": 1
},
{
"id": "5fd8202f-6bbe-4568-a4ac-7c5153b51b1c",
"name": "Telegram 触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-368,
16
],
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"typeVersion": 1.2
},
{
"id": "f97b1dbe-7641-4041-b481-d6437a535c71",
"name": "获取文件",
"type": "n8n-nodes-base.telegram",
"position": [
-128,
16
],
"parameters": {
"fileId": "={{ $json.message.photo[3].file_id }}",
"resource": "file",
"additionalFields": {}
},
"typeVersion": 1.2
},
{
"id": "b191aac9-9a9b-407f-a02e-d448fed08e4d",
"name": "上传文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
80,
16
],
"parameters": {
"name": "Image",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list"
}
},
"typeVersion": 3
},
{
"id": "478dedf1-4436-424f-a3bf-2b36853fc61a",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
208,
-288
],
"parameters": {
"width": 336,
"height": 800,
"content": "向 Nano Banana 发送 POST 请求"
},
"typeVersion": 1
},
{
"id": "a2acb7ab-2d20-4d05-879b-e6c432c4569c",
"name": "发送照片消息",
"type": "n8n-nodes-base.telegram",
"position": [
1424,
-16
],
"parameters": {
"file": "={{ $json.data.outputs[0] }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.from.id }}",
"operation": "sendPhoto",
"additionalFields": {}
},
"typeVersion": 1.2
},
{
"id": "3d2e0dd0-6fd0-4706-bb0c-1d8716294f23",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1248,
-304
],
"parameters": {
"width": 720,
"height": 1072,
"content": "🤖 使用 Nano Banana 的 Telegram 图像编辑器"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a4042770-302d-44b7-8d75-3178a190b8c9",
"connections": {
"If": {
"main": [
[
{
"node": "Send a photo message",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait 15 Secs Again",
"type": "main",
"index": 0
}
]
]
},
"Get a file": {
"main": [
[
{
"node": "Upload file",
"type": "main",
"index": 0
}
]
]
},
"Upload file": {
"main": [
[
{
"node": "Nano Banana POST Request",
"type": "main",
"index": 0
}
]
]
},
"Wait 15 Secs": {
"main": [
[
{
"node": "GET Result from Nano Banana Node",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Get a file",
"type": "main",
"index": 0
}
]
]
},
"Wait 15 Secs Again": {
"main": [
[
{
"node": "GET Result from Nano Banana Node",
"type": "main",
"index": 0
}
]
]
},
"Nano Banana POST Request": {
"main": [
[
{
"node": "Wait 15 Secs",
"type": "main",
"index": 0
}
]
]
},
"GET Result from Nano Banana Node": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
组合式图像转视频助手
通过 Telegram、GPT-4.1 和 Seedance/Veo3 集成从图片生成视频
If
Wait
Telegram
+10
22 节点Automate With Marc
内容创作
Seedance 视频营销 AI 助手
使用 Seedance AI、Perplexity 和 GPT-4o 生成基于趋势的营销视频
If
Wait
Telegram
+5
16 节点Automate With Marc
内容创作
IG自动字幕代理工作流
使用Google Drive和Submagic为Instagram/TikTok视频自动添加字幕
If
Wait
Google Drive
+3
14 节点Automate With Marc
内容创作
💥 HeyGen II - 克隆我 - 从想法到发布:适用于 YouTube、TikTok 和 Instagram 的 GPT-5 视频自动化 - 视频
使用 HeyGen、GPT-5 和社交发布自动化语音输入视频创作
If
Set
Wait
+13
41 节点Dr. Firas
内容创作
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
1. 播放列表详情设置机器人副本
使用 Suno、GPT-4、Runway 和 Creatomate 创建 AI 生成的 YouTube 音乐播放列表
If
Set
Code
+22
203 节点Joseph
内容创作
工作流信息
难度等级
中级
节点数量15
分类2
节点类型7
作者
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 查看 →
分享此工作流