8
n8n 中文网amn8n.com

将服装图片上传到Cloudinary并使用Azure OpenAI (GPT-4o) 记录到工作表

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 26 个节点。主要使用 Set, Code, Merge, GoogleDrive, HttpRequest 等节点。 使用GPT-4o、Cloudinary和Google Sheets处理和编目服装图片

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "9XevkVCNXgZ53qKq",
  "meta": {
    "instanceId": "8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177",
    "templateCredsSetupCompleted": true
  },
  "name": "将服装图片上传到 Cloudinary 并使用 Azure OpenAI (GPT-4o) 记录到工作表",
  "tags": [
    {
      "id": "cshJUy1dOLdeUENB",
      "name": "Fairy Frills",
      "createdAt": "2025-09-12T00:04:07.350Z",
      "updatedAt": "2025-09-12T00:04:07.350Z"
    }
  ],
  "nodes": [
    {
      "id": "2a16a7a4-2385-4186-95a6-93273953fd87",
      "name": "搜索文件和文件夹",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -2128,
        112
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "2ef1614c-3c49-43f2-bb69-6abd748dec96",
      "name": "搜索文件和文件夹1",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1680,
        112
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "567bda21-bec7-4372-9b1d-15877fc7b24a",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1904,
        112
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "725719e1-f2d5-4dca-894e-57c2bb39081d",
      "name": "将帧上传到 cloudinary",
      "type": "n8n-nodes-base.httpRequest",
      "maxTries": 5,
      "position": [
        -1248,
        112
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "5c44d9bf-6ac8-4f30-814b-d5f7e202d13f",
      "name": "下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1456,
        112
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "525721b3-5a59-4e9e-8305-454f20b5df29",
      "name": "在表格中追加行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "835afee7-3c0a-41ef-8df3-5c2122d272b8",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -368,
        112
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "19958aaa-ece9-44e9-9fe9-34df96af6f64",
      "name": "Azure OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        -336,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "280df4b6-001f-4d78-ade9-eb1b00bcb616",
      "name": "azure openai",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1024,
        112
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f57a8ef1-9e65-47ed-a709-20f8350aeee9",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -224,
        320
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "a0f3edb5-277d-4045-8a52-190a232288fe",
      "name": "在工作表2中追加行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        0,
        208
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "6b28ca78-d7b3-4595-9457-c704c28b412b",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2336,
        112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9c136050-cef3-4636-99ac-ecefbf991763",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2192,
        288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1a685527-23dd-4b04-ba8a-0bc661dfe400",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "308bff41-a761-4237-b887-d2f2591aea28",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1744,
        304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b935e853-e308-4336-b896-e2b13e9677f6",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "203f0cd4-93c9-4ea1-8239-0014fd4687d7",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5048f09a-e3ba-4eb4-8771-fa99fbed2cb4",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4392c8a1-600e-4f8d-9a23-f7571fff99b4",
      "name": "设置描述",
      "type": "n8n-nodes-base.set",
      "position": [
        -800,
        112
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4e022dae-8b75-46ca-a48a-2a8cd64ea787",
      "name": "扁平化描述",
      "type": "n8n-nodes-base.code",
      "position": [
        -576,
        112
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e7763711-8ee1-4f77-b03c-4111f219fc2b",
      "name": "### 替换 Airtable 连接",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d8cda113-6bf5-4a89-bbc8-cdf79f2fad28",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -224
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "80856104-e323-4963-9ffd-b6a5a23e2595",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        48
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4bdc8120-b3a7-4865-b3a6-02f29193ffc9",
      "name": "合并输出以进行逻辑判断",
      "type": "n8n-nodes-base.merge",
      "position": [
        272,
        80
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "7f4e1076-0f21-47c5-b9a6-f89906427cb2",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        -128
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "72b7ca2a-42ef-4f94-af46-4fbd6542ae61",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "88e71406-014f-419b-9a27-f52c553050d5",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Append row in sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "azure openai": {
      "main": [
        [
          {
            "node": "Setting description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "upload frames to cloudinary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Search files and folders1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Merge outputs for Logic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Setting description": {
      "main": [
        [
          {
            "node": "flattening descriptions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet2": {
      "main": [
        [
          {
            "node": "Merge outputs for Logic",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Merge outputs for Logic": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "flattening descriptions": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search files and folders": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Search files and folders1": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "upload frames to cloudinary": {
      "main": [
        [
          {
            "node": "azure openai",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Search files and folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Rahul Joshi

Rahul Joshi

@rahul08

Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.

外部链接
在 n8n.io 查看

分享此工作流