8
n8n 中文网amn8n.com

使用 Nano Banana 和 Telegram 将产品照片转换为专业级视觉效果

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 21 个节点。主要使用 If, Set, Wait, Merge, SplitOut 等节点。 使用 Nano Banana 和 Telegram 将产品照片转换为专业级视觉效果

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "40f29e455b10b3ef07629363459d0fa6954887d44ddad18e74a5539a487f2eee",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "18d5b050-3d2f-4dd7-88bf-8a968d8650e9",
      "name": "图像生成 (Nano Banana)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        672,
        1072
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "23cd99a1-5eb1-4a92-a2da-f3c0eb7388bd",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        896,
        1072
      ],
      "webhookId": "a93ae467-ac65-463c-b0b1-bbf9ef576258",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8603957f-2db0-444c-99cf-393ae6e6d9fa",
      "name": "获取图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1136,
        1024
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c0ed0af3-42fa-4b4b-9262-65d0905bc0be",
      "name": "图像已创建",
      "type": "n8n-nodes-base.if",
      "position": [
        1344,
        1088
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "c68b61c0-734f-487f-bb20-df6295ac540e",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6b92a676-9631-4b3f-b9ee-d55587e5064f",
      "name": "分离输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        240,
        1072
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f95fed32-f554-4f6b-aeba-a46cf6053681",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        448,
        1072
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "8c890590-5828-45d6-ad06-f132edb2b728",
      "name": "合并1",
      "type": "n8n-nodes-base.merge",
      "position": [
        16,
        1056
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "54550f1f-48d9-4ac1-b0e2-66afccc35519",
      "name": "发送图片",
      "type": "n8n-nodes-base.telegram",
      "position": [
        912,
        896
      ],
      "webhookId": "2bb67e96-8140-43a5-a021-208b47fa0779",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "334080fa-ad10-44f8-b835-d4ef3d46e092",
      "name": "下载图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        688,
        896
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e1e5a500-c52e-4938-a95f-253cf7a34f4d",
      "name": "失败",
      "type": "n8n-nodes-base.if",
      "position": [
        1552,
        1264
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "46c0167a-8a36-4ac5-8a9f-5bcc91770015",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        688
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f1985e0f-9424-4f65-9782-c3a31b4d8b80",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        128
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f53d3325-5dc9-4ba1-8325-d6f0633c81e8",
      "name": "上传产品图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -576,
        1072
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "fe9d29ba-5cc0-438f-bf18-c3e3e2a9542e",
      "name": "背景图片",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        880
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d68b9901-8cba-4d4f-85cc-203cd93e2fa5",
      "name": "产品图片",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        1072
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b7e670ab-d840-4fdb-aebb-9e981d445e84",
      "name": "OpenAI 聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -512,
        1520
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "556c0b2d-2eaf-4448-a058-818540056093",
      "name": "提示生成器1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -528,
        1296
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f3222e8e-34e6-4bee-8550-a240191d787e",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -320,
        1504
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "05bb935f-460c-4ac2-8568-9db4c5ed3e9d",
      "name": "上传背景1",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -576,
        880
      ],
      "parameters": {},
      "typeVersion": 4.2,
      "alwaysOutputData": true
    },
    {
      "id": "301e81d3-d02b-4229-9dd2-3ba46c3700be",
      "name": "表单提交",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1040,
        1072
      ],
      "webhookId": "24c8f3b2-4570-4a20-883b-5e5e9068e339",
      "parameters": {},
      "typeVersion": 2.3
    }
  ],
  "pinData": {},
  "connections": {
    "Wait1": {
      "main": [
        [
          {
            "node": "Get Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "failed": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image": {
      "main": [
        [
          {
            "node": "Image created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image created": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Image": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Download Images": {
      "main": [
        [
          {
            "node": "Send Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Submission": {
      "main": [
        [
          {
            "node": "Upload Background1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Product Image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Prompt Generator1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Download Images",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Image Gen (Nano Banana)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Background Image": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Generator1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Prompt Generator1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Upload Background1": {
      "main": [
        [
          {
            "node": "Background Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Background Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Product Image": {
      "main": [
        [
          {
            "node": "Product Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Gen (Nano Banana)": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Prompt Generator1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量21
分类2
节点类型13
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Sulieman Said

Sulieman Said

@sulieman-said

👋 Hi, I’m Sulieman – Founder of aufCopilot.de . I build custom n8n workflows, automations & AI integrations to help businesses save time and scale smarter. I share templates, answer questions and love exploring creative use cases – from lead generation to data workflows and AI-powered automations. 🚀 Always happy to connect, learn and contribute to the community. Although my profile is in English, I am a native German speaker and happy to work in both German and English projects.

外部链接
在 n8n.io 查看

分享此工作流