See llms.txt for all machine-readable content.
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 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 UploadUpload a image document for AI analysisdatafiledata.2) Analyze image (@n8n/n8n-nodes-langchain.openAi)
imageanalyzegpt-4o=data (use the uploaded file field)base643) Merge (n8n-nodes-base.merge)
combinecombineByPosition
data) and the analysis (content) line up on the same item.4) AI Agent (@n8n/n8n-nodes-langchain.agent)
defineanalyze 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-miniSecurity 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)?