8
n8n 中文网amn8n.com

从产品图片生成 UGC 视频(Gemini 和 VEO3)

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 32 个节点。主要使用 Set, Code, Wait, Switch, SplitOut 等节点。 使用 Gemini 和 VEO3 从产品图片生成 UGC 视频

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Anthropic API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "393ca9e36a1f81b0f643c72792946a5fe5e49eb4864181ba4032e5a408278263"
  },
  "nodes": [
    {
      "id": "fe4aee8a-a214-4555-b8cb-b6dcf325756e",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        -816,
        592
      ],
      "parameters": {
        "jsCode": "// Get the base64 string from the specific path\nlet base64String = $input.first().json.choices[0].message.images[0].image_url.url;\n\n// Remove the data URI prefix if it exists\nif (base64String.startsWith('data:image/')) {\n  // Find the comma that separates the prefix from the actual base64 data\n  const commaIndex = base64String.indexOf(',');\n  if (commaIndex !== -1) {\n    base64String = base64String.substring(commaIndex + 1);\n  }\n}\n\nreturn [{\n  json: {\n    base64_data: base64String\n  }\n}];"
      },
      "typeVersion": 2
    },
    {
      "id": "f4671669-e13e-4119-bf60-33422140874f",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -592,
        592
      ],
      "parameters": {
        "options": {
          "fileName": "generated_image",
          "mimeType": "image/png"
        },
        "operation": "toBinary",
        "sourceProperty": "base64_data"
      },
      "typeVersion": 1.1
    },
    {
      "id": "84d463ca-c393-4a92-8be2-e5bf058b27ba",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1040,
        592
      ],
      "parameters": {
        "url": "https://openrouter.ai/api/v1/chat/completions",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"model\": \"google/gemini-2.5-flash-image-preview\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"{{ $('Send message and wait for response').item.json.data.text }}. Photoréaliste pour une publicité UGC. ratio 1:1.\"\n        },\n        {\n          \"type\": \"image_url\",\n          \"image_url\": {\n            \"url\": \"https://api.telegram.org/file/bot{{ $('Edit Fields').item.json.telegram_token }}/{{ $json.result.file_path }}\"\n          }\n        }\n      ]\n    }\n  ]\n  \n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "openRouterApi"
      },
      "credentials": {
        "openRouterApi": {
          "id": "TF3SmWv35v8ocoPo",
          "name": "OpenRouter Nano Banana"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "3f964aa6-4d8e-428a-983f-574144314752",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1056,
        368
      ],
      "webhookId": "c578267b-4fca-49f6-a52f-bd354bd4e4f4",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "executeOnce": false,
      "typeVersion": 1.2
    },
    {
      "id": "03b8f12a-55a8-4e88-b906-748da04c3b6d",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -800,
        368
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "daaeed7f-da2b-4c9a-a33e-d78c619e93cc",
              "name": "telegram_token",
              "type": "string",
              "value": "Your Telegram Token"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "7a31105f-02e0-4900-911b-648e4ab7e825",
      "name": "发送消息并等待响应",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -560,
        368
      ],
      "webhookId": "4ee08df4-d0e9-4d2f-81f9-d7e38d9b17cb",
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "message": "Merci d'avoir téléchargé l'image. Veuillez fournir vos instructions.",
        "options": {},
        "operation": "sendAndWait",
        "responseType": "freeText"
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2,
      "alwaysOutputData": false
    },
    {
      "id": "ad63e911-6022-4f69-83ce-9bc4fd1dd2a4",
      "name": "获取文件",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -336,
        368
      ],
      "webhookId": "13857ee5-781f-4e1c-9416-aad416df72ac",
      "parameters": {
        "fileId": "={{ $('Telegram Trigger').item.json.message.photo[2].file_id }}",
        "download": false,
        "resource": "file"
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2,
      "alwaysOutputData": false
    },
    {
      "id": "be24ef62-7de5-471b-bc6e-526a1964cd57",
      "name": "发送照片消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -336,
        592
      ],
      "webhookId": "22be872e-27aa-420b-be32-265ca6271a49",
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "operation": "sendPhoto",
        "binaryData": true,
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "850d7a35-811c-46d7-a071-20741e980dfb",
      "name": "发送消息并等待响应1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        480,
        256
      ],
      "webhookId": "1739c0ea-8542-41df-8717-694446f2196d",
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "message": "Veuillez fournir une idée de dialogue pour votre annonce.",
        "options": {},
        "operation": "sendAndWait",
        "responseType": "freeText"
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ee43b9d6-8f52-455a-8a57-421c40076f39",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        112,
        512
      ],
      "parameters": {
        "text": "=Here is what I am looking for: {{ $json.data.text }}\n\nHere is the content of the initial image that will be used to generate the video:\n{{ $('HTTP Request3').item.json.choices[0].message.content }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "=You are an expert in creating scripts for authentic UGC-style advertisements that feel natural and unscripted.\nYour task is to create a two-segment video script based on the user's concept. The video starts with the provided image.\nCRITICAL CONSTRAINTS:\n\nDO NOT add objects not present in the original image (no food, accessories, tools, etc.).\nDO NOT remove objects that are in the original image.\nThe person should only interact with objects/elements visible in the source image.\nActions must be physically possible given the person's starting position and environment.\nNo additional text or captions\nREQUIREMENTS:\nEach segment should be 7-8 seconds of realistic action/dialogue.\nInclude camera movements when they enhance storytelling (zoom in, pan, tilt, etc.).\nActions must be specific and filmable.\nDialogue should sound conversational and unscripted.\nShow don't tell - actions should visually demonstrate product benefits.\nUse single quotes for any dialogue.\nStay authentic - avoid overly promotional language\nThe image context will be provided to guide what is actually visible and possible.\nOutput format:\n{\n\"segment-1\": \"[camera movement if needed] + [specific action using only visible elements] + [natural dialogue if any]\",\n\"segment-2\": \"[camera movement if needed] + [specific action using only visible elements] + [natural dialogue if any]\"\n}\nExample camera movements: camera slowly zooms in, camera pans left to right, camera tilts up, camera pulls back\nExample constrained actions: adjusts visible strap, shifts weight on visible surface, turns toward camera, gestures with free hand"
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    },
    {
      "id": "f85ba551-7ae3-4906-9336-4840ee0e7f85",
      "name": "Anthropic 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        0,
        672
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-20250514",
          "cachedResultName": "Claude 4 Sonnet"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "id": "WXQf5QsxCs3AyxlW",
          "name": "Anthropic account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "730cfc03-85f3-467f-ac7b-6808e5d4e462",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        352,
        688
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\"segment-1\": \"the man tugs his sleeve and describes how elastic the fabric is\",\n\"segment-2\": \"the man raises his arms to stretch, and the shirt flows with his movements\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "fac8e5a3-f90d-4052-ac4f-1168e6a2f961",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        496,
        512
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "output"
      },
      "typeVersion": 1
    },
    {
      "id": "d75ca3dc-aa1a-4101-b5e7-3dfdf5b36062",
      "name": "HTTP请求1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        912,
        384
      ],
      "parameters": {
        "url": "https://api.kie.ai/api/v1/veo/generate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"prompt\": \"{{ $json.output }}\",\n  \"imageUrls\": [\n    \"https://api.telegram.org/file/bot{{ $('Edit Fields').item.json.telegram_token }}/{{ $('Get a file1').item.json.result.file_path }}\"\n  ],\n  \"model\": \"veo3_fast\",\n  \"aspectRatio\": \"16:9\",\n  \"seeds\": 12345,\n  \"enableFallback\": false\n} ",
        "sendBody": true,
        "specifyBody": "=json",
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {}
          ]
        },
        "genericAuthType": "httpBearerAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "6FnJz9IoacuCaQ7R",
          "name": "KIE AI - Bearer Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "62fe16ab-39b6-41a3-bebb-36dbd1882fd1",
      "name": "获取文件1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        80,
        256
      ],
      "webhookId": "2bc7bf68-ed5a-41e8-a377-c971fcbf7dd2",
      "parameters": {
        "fileId": "={{ $json.result.photo[3].file_id }}",
        "resource": "file",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "92f84ddf-acef-4c31-9dd1-e963ac01700f",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1120,
        384
      ],
      "webhookId": "41f3bf3a-fc54-4162-99c9-2b37a06adcb0",
      "parameters": {
        "amount": 60
      },
      "typeVersion": 1.1
    },
    {
      "id": "55951ec7-e963-454e-a888-4dc44eef5690",
      "name": "HTTP请求2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        384
      ],
      "parameters": {
        "url": "https://api.kie.ai/api/v1/veo/record-info",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "taskId",
              "value": "={{ $json.data.taskId }}"
            }
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "6FnJz9IoacuCaQ7R",
          "name": "KIE AI - Bearer Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "05f8470f-bfea-4163-a384-83a5cae98c06",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1776,
        336
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "data.response.resultUrls"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1e9a1343-1e2f-4f6d-91a8-59e9d87794bd",
      "name": "合并视频",
      "type": "n8n-nodes-mediafx.mediaFX",
      "position": [
        1968,
        336
      ],
      "parameters": {
        "videoSources": {
          "sources": [
            {
              "value": "={{ $json.resultUrls[0][0] }}"
            },
            {
              "value": "={{ $json.resultUrls[1][0] }}"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "4c2a5558-f910-405f-b0bd-65083ff907e9",
      "name": "发送视频",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2160,
        336
      ],
      "webhookId": "bce3aa2c-b445-40a7-a9e1-36388cbb33e9",
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "operation": "sendVideo",
        "binaryData": true,
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2d352e6d-55e4-4f03-96cb-9b9ef1e17c78",
      "name": "Google Calendar MCP",
      "type": "n8n-nodes-base.switch",
      "position": [
        1520,
        368
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Success",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "f29a6ac3-9fb2-44a7-ba55-b1b82b42b0bd",
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 1
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "In Process",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "490fc789-6e8c-423e-b13e-7b1610aa79e9",
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 0
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {
          "fallbackOutput": "extra"
        }
      },
      "typeVersion": 3.2
    },
    {
      "id": "013a1a36-a6cb-4460-a807-a219499af11d",
      "name": "发送短信",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1776,
        528
      ],
      "webhookId": "e00c2c2c-533f-4ca4-bd03-3a7760f2524f",
      "parameters": {
        "text": "=La génération de la vidéo a échoué",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "SPO1eSWUUngRMDaw",
          "name": "UGC - Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4e29b7d1-320a-47a7-839f-b9c4c00a9316",
      "name": "HTTP请求3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        256
      ],
      "parameters": {
        "url": "https://openrouter.ai/api/v1/chat/completions",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"model\": \"google/gemini-2.5-flash-image-preview\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Fournissez une description détaillée du contenu de l'image. Le cadre, le(s) sujet(s), ce que le sujet fait ou tient, etc.\"\n        },\n        {\n          \"type\": \"image_url\",\n          \"image_url\": {\n            \"url\": \"https://api.telegram.org/file/bot{{ $('Edit Fields').item.json.telegram_token }}/{{ $json.result.file_path }}\"\n          }\n        }\n      ]\n    }\n  ]\n  \n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "openRouterApi"
      },
      "credentials": {
        "openRouterApi": {
          "id": "TF3SmWv35v8ocoPo",
          "name": "OpenRouter Nano Banana"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c81b9873-67c3-41ab-a74d-fb5f36e19f06",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        256
      ],
      "parameters": {
        "width": 1024,
        "height": 512,
        "content": "## 生成图像"
      },
      "typeVersion": 1
    },
    {
      "id": "e2c46cf4-5578-4eab-95cd-286da813bf67",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        208
      ],
      "parameters": {
        "color": 4,
        "width": 832,
        "height": 576,
        "content": "## 视频生成提示"
      },
      "typeVersion": 1
    },
    {
      "id": "a828893a-0537-4ea9-bf6e-ce4b9b29c16b",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        256
      ],
      "parameters": {
        "width": 1616,
        "height": 512,
        "content": "## 生成并输出视频"
      },
      "typeVersion": 1
    },
    {
      "id": "dec75f2c-c140-41f7-8827-256f733ecbc8",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -48
      ],
      "parameters": {
        "color": 7,
        "content": "## Nano Banana 🍌 + VEO3 Fast UGC生成器 by Growth Ai"
      },
      "typeVersion": 1
    },
    {
      "id": "884ea1d0-5d83-4af4-956b-cebe286ca40d",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        848
      ],
      "parameters": {
        "color": 3,
        "width": 768,
        "height": 528,
        "content": "# 阶段1:图像接收与增强"
      },
      "typeVersion": 1
    },
    {
      "id": "d0a2e994-bb8a-4dd7-a8da-2da217c13372",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        848
      ],
      "parameters": {
        "color": 3,
        "width": 768,
        "height": 512,
        "content": "# 阶段2:分析与脚本创作"
      },
      "typeVersion": 1
    },
    {
      "id": "b76566b7-5e1a-4fad-a357-f4a26359e5e5",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        848
      ],
      "parameters": {
        "color": 3,
        "width": 768,
        "height": 608,
        "content": "# 阶段3:视频生成"
      },
      "typeVersion": 1
    },
    {
      "id": "0d47b8f4-5cc1-4efc-b4af-c498fa1db3ad",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        144
      ],
      "parameters": {
        "color": 5,
        "width": 592,
        "height": 816,
        "content": "# 阶段0:初始化与前提条件"
      },
      "typeVersion": 1
    },
    {
      "id": "36a57d06-fa2e-465e-8738-d2e2c1590292",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -240
      ],
      "parameters": {
        "width": 816,
        "height": 336,
        "content": "## 需要更高级的自动化解决方案?联系我们获取定制企业工作流!"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Merge video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a file": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Send message and wait for response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a file1": {
      "main": [
        [
          {
            "node": "HTTP Request3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge video": {
      "main": [
        [
          {
            "node": "Send a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request2": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request3": {
      "main": [
        [
          {
            "node": "Send message and wait for response1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Send a photo message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send a photo message": {
      "main": [
        [
          {
            "node": "Get a file1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response": {
      "main": [
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response1": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流