8
n8n 中文网amn8n.com

OpenAI Vision图像分析并保留二进制数据

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 Merge, FormTrigger, Agent, OpenAi, LmChatOpenAi 等节点。 使用OpenAI Vision分析图像,同时保留二进制数据以供重用

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "d49cdb6a-5084-4c00-a40f-062c157a9b3d",
      "name": "表单触发器 1",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -928,
        10784
      ],
      "webhookId": "d6f874ec-6cb3-46c7-8507-bd647c2484f0",
      "parameters": {
        "path": "d6f874ec-6cb3-46c7-8507-bd647c2484f0",
        "options": {},
        "formTitle": "Image Document Upload",
        "formFields": {
          "values": [
            {
              "fieldType": "file",
              "fieldLabel": "data"
            }
          ]
        },
        "formDescription": "Upload a image document for AI analysis"
      },
      "typeVersion": 2
    },
    {
      "id": "a363370d-851d-4452-ac9a-b0f5d6a7107e",
      "name": "分析图像",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -368,
        10576
      ],
      "parameters": {
        "text": "=data",
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "GPT-4O"
        },
        "options": {},
        "resource": "image",
        "inputType": "base64",
        "operation": "analyze"
      },
      "credentials": {
        "openAiApi": {
          "id": "4l6TDfLZVFS24g3X",
          "name": "OpenAi account 4"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "a0270371-928d-4084-8c07-6ff8936837c0",
      "name": "合并1",
      "type": "n8n-nodes-base.merge",
      "position": [
        -160,
        10960
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineByPosition"
      },
      "typeVersion": 3.2
    },
    {
      "id": "76a6e130-ea39-4b6e-8bbd-200c0a57ed99",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        10336
      ],
      "parameters": {
        "color": 7,
        "width": 2144,
        "height": 1056,
        "content": "### 🖼️ 在下一步后使用二进制字段"
      },
      "typeVersion": 1
    },
    {
      "id": "79d53391-5e87-472a-bd08-e5cd7d43a39a",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1728,
        10336
      ],
      "parameters": {
        "width": 400,
        "height": 1056,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f77d1571-f807-48f9-a523-582ffb48f2e5",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        240,
        10880
      ],
      "parameters": {
        "text": "=data\n {{ $json.content }}",
        "options": {
          "systemMessage": "analyze the image again and see if you get the same result. "
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "5bbd5de7-cdaf-4a65-92ad-f29830a710b1",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        208,
        11088
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4l6TDfLZVFS24g3X",
          "name": "OpenAi account 4"
        }
      },
      "typeVersion": 1.2
    }
  ],
  "pinData": {},
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Trigger1": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

外部链接
在 n8n.io 查看

分享此工作流