Skip to content

Instantly share code, notes, and snippets.

@webthingee
Created April 18, 2025 00:23
Show Gist options
  • Save webthingee/b9751fc222d2bcb79ecb72e063492ef5 to your computer and use it in GitHub Desktop.
Save webthingee/b9751fc222d2bcb79ecb72e063492ef5 to your computer and use it in GitHub Desktop.
{"name":"AI Agent Multi-Image Comparison Demo 20250418002223","nodes":[{"parameters":{"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/640px-Fronalpstock_big.jpg","responseFormat":"file","options":{}},"id":"httpRequestImage1","name":"Download Image 1","type":"n8n-nodes-base.httpRequest","typeVersion":4,"position":[300,300]},{"parameters":{"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Clouds_over_the_Atlantic_Ocean.jpg/640px-Clouds_over_the_Atlantic_Ocean.jpg","responseFormat":"file","options":{}},"id":"httpRequestImage2","name":"Download Image 2","type":"n8n-nodes-base.httpRequest","typeVersion":4,"position":[300,500]},{"parameters":{"mode":"passThrough"},"id":"merge","name":"Merge Images","type":"n8n-nodes-base.merge","typeVersion":2,"position":[500,400],"notesInFlow":true,"alwaysOutputData":true},{"parameters":{"keepOnlySet":false,"values":{"binary":[{"propertyName":"image1","propertyValue":"data"},{"propertyName":"image2","propertyValue":"data"}]}},"id":"renameBinary","name":"Rename Binary Keys","type":"n8n-nodes-base.set","typeVersion":2,"position":[700,400]},{"parameters":{"prompt":"Compare these images: {{ $binary.image1 }} and {{ $binary.image2 }}"},"id":"aiAgent","name":"AI Agent","type":"n8n-nodes-base.aiAgent","typeVersion":1,"position":[900,400]}],"connections":{"Download Image 1":{"main":[[{"node":"Merge Images","type":"main","index":0}]]},"Download Image 2":{"main":[[{"node":"Merge Images","type":"main","index":1}]]},"Merge Images":{"main":[[{"node":"Rename Binary Keys","type":"main","index":0}]]},"Rename Binary Keys":{"main":[[{"node":"AI Agent","type":"main","index":0}]]}},"active":false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment