Block 1 - Form Trigger1
- Type / Role
- n8n-nodes-base.formTrigger - formTrigger
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
Use this template to upload an image , run a first pass OpenAI Vision analysis , then re attach the original file (binary/base64) to the next step using a Merge node. The pattern ensures your downs...
n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.merge, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.
Original n8n.io sourceUse this template to upload an image, run a first-pass OpenAI Vision analysis, then re-attach the original file (binary/base64) to the next step using a Merge node. The pattern ensures your downstream AI Agent (or any node) can access both the original file (data) and the first analysis result (content) at the same time.
data)data.data field as base64 and runs image analysis with GPT-4o. content (first-pass analysis).data) and the analysis (content) on the same item.data + content together. =data) and the first analysis ({{$json.content}}) to compare or refine results.> Keep it simple: mirror these settings and you’re good to go.
1) Form Trigger (n8n-nodes-base.formTrigger)
d6f874ec-6cb3-46c7-8507-bd647c2484f0 (you can change this) Image Document Upload Upload a image document for AI analysis data filedata.2) Analyze image (@n8n/n8n-nodes-langchain.openAi)
image analyze gpt-4o =data (use the uploaded file field) base64 3) Merge (n8n-nodes-base.merge)
combine combineByPosition data) and the analysis (content) line up on the same item.4) AI Agent (@n8n/n8n-nodes-langchain.agent)
define analyze the image again and see if you get the same result. data + content.5) OpenAI Chat Model (@n8n/n8n-nodes-langchain.lmChatOpenAi)
gpt-4.1-mini > Security Note: Store API keys in Credentials (do not hardcode keys in nodes).
data) and the analysis branch (with content) by position, you restore a single item with both fields—so the next step can use the image again while referencing earlier analysis.data (binary/base64) and content (text). combineByPosition. data to match node expressions. > “Use Binary Field after next step” — This 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.
Need help customizing this (e.g., filtering by campaign, sending reports by email, or formatting your PDF)?
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Analyze images with OpenAI Vision while preserving binary data for reuse |
|---|---|
| Complexity | intermediate |
| Nodes | 7 |
| Categories | Engineering, AI RAG |
| Author | Robert Breen |
| Published | 23 Sept 2025 |
Use the JSON export at /data/workflows/8867/8867.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Use this template to upload an image , run a first pass OpenAI Vision analysis , then re attach the original file (binary/base64) to the next step using a Merge node. The pattern ensures your downs...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI RAG use case.