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": "Form Trigger1",
      "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": "Analyze image",
      "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": "### 🖼️ Use Binary Field after next step\n\nThis workflow demonstrates how to **preserve and reuse an uploaded file (binary/base64)** after a downstream step by using a **Merge** node (`combineByPosition`). A user uploads an image via **Form Trigger** → the image is analyzed with **OpenAI Vision** → results are **merged back** with the original upload so the next **AI Agent** step can access **both** the original file (`data`) and the first analysis (`content`) at the same time.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "79d53391-5e87-472a-bd08-e5cd7d43a39a",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1728,
        10336
      ],
      "parameters": {
        "width": 400,
        "height": 1056,
        "content": "\n\n## 📬 Contact  \nNeed help customizing this (e.g., filtering by campaign, sending reports by email, or formatting your PDF)?  \n\n- 📧 **rbreen@ynteractive.com**  \n- 🔗 **https://www.linkedin.com/in/robert-breen-29429625/**  \n- 🌐 **https://ynteractive.com**\n"
      },
      "typeVersion": 1
    },
    {
      "id": "f77d1571-f807-48f9-a523-582ffb48f2e5",
      "name": "AI エージェント",
      "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
          }
        ]
      ]
    },
    "a363370d-851d-4452-ac9a-b0f5d6a7107e": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d49cdb6a-5084-4c00-a40f-062c157a9b3d": {
      "main": [
        [
          {
            "node": "a363370d-851d-4452-ac9a-b0f5d6a7107e",
            "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で表示

このワークフローを共有

カテゴリー

カテゴリー: 34