When clicking "Test workflow"
Configured with Agent, Extract From File, Filter, HTTP Request, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- AI & models
- Web / API
- Transform
- Routing
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Google Gemini Chat Model | AI & models | LM Chat Google Gemini | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| Get image from unsplash2 | Web / API | HTTP Request | See node parameters |
| Split Out | Transform | Split Out | See node parameters |
| Get image from unsplash3 | Web / API | HTTP Request | See node parameters |
| Transform to base | Transform | Extract From File | binaryToPropery |
| Call Gemini API1 | Web / API | HTTP Request | POST |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| AI Agent2 | AI & models | Agent | See node parameters |
| Google Gemini Chat Model1 | AI & models | LM Chat Google Gemini | See node parameters |
| Get image from unsplash4 | Web / API | HTTP Request | See node parameters |
| Get PDF file | Web / API | HTTP Request | See node parameters |
| Get image from unsplash | Web / API | HTTP Request | See node parameters |
| Call Gemini API with PDF | Web / API | HTTP Request | POST |
| Call Gemini API with Image | Web / API | HTTP Request | POST |
| Transform to base64 (image) | Transform | Extract From File | binaryToPropery |
| Transform to base64 (pdf) | Transform | Extract From File | binaryToPropery |
| Define Multiple Image URLs | Transform | Edit Fields | See node parameters |
| Split Out to multiple items | Transform | Split Out | See node parameters |
| Define URLs And Prompts | Transform | Edit Fields | See node parameters |
| Filter (optional) | Routing | Filter | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googlePalmApihttpQueryAuth
Workflow notes
When clicking "Test workflow"
When clicking "Test workflow"
This trigger demonstrates five different approaches to analyze media with AI:
- Top branch: Single image with automatic binary passthrough
- Second branch: Multiple images with custom prompts
- Third branch: Standard n8n item processing with direct API
- Fourth branch: PDF analysis via direct API
- Fifth branch: Image analysis via direct API
Each approach has advantages depending on your use case.
METHOD 1: Single image with automatic binary passthrough
METHOD 1: Single image with automatic binary passthrough
This branch demonstrates the easiest way to analyze a single image with AI:
- Fetch an image from Unsplash
- Send directly to the AI Agent with "Automatically Passthrough Binary Images" enabled
- Get AI analysis without any data transformation
BEST FOR: Quick implementation with minimal configuration for single image analysis.
METHOD 2: Multiple images with custom prompts
METHOD 2: Multiple images with custom prompts
This branch shows how to analyze different images with custom instructions:
- Prepare data structure with image URLs and their corresponding prompts
- Split into individual items and filter if needed
- Fetch each image from Unsplash
- Process sequentially through the Loop node
- Analyze each with its specific prompt using the AI Agent
BEST FOR: When you need different analysis goals for each image (e.g., one for object detection, another for scene description).
METHOD 3: Standard n8n item processing with direct API
METHOD 3: Standard n8n item processing with direct API
This branch demonstrates n8n's standard approach to handling multiple items:
- Define multiple image URLs in a single node
- Split into individual items for processing
- Fetch each image individually
- Transform each to base64 format
- Make direct API calls to Gemini for each item
BEST FOR: Processing multiple images using n8n's standard item-by-item approach with direct API control.
METHOD 4: PDF analysis via direct API
METHOD 4: PDF analysis via direct API
This branch shows how to analyze PDF documents:
- Fetch a PDF file
- Transform to base64 format
- Send directly to Gemini API for analysis
BEST FOR: Document analysis, text extraction, summarization of PDFs.
METHOD 5: Image analysis via direct API
METHOD 5: Image analysis via direct API
This branch demonstrates direct API control for image analysis:
- Fetch an image
- Transform to base64 format
- Make a customized API call to Gemini
BEST FOR: Advanced users who need precise control over API parameters and response handling.
When clicking "Test workflow"
When clicking "Test workflow"
Purpose and structure
This folder contains the When clicking "Test workflow" workflow. Its executable nodes use agent, extractFromFile, filter, httpRequest, lmChatGoogleGemini, manualTrigger, set, splitInBatches, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0772_Splitout_Filter_Process_Webhook.json MIT; preserve source notices.