AI Agents

Easy captioning of photos with Gemini 1.5

16 nodes 219 131 Automatic trigger
Download

Workflow Description

An automation that leverages Gemini 1.5 to intelligently generate and apply captions to images. The workflow analyzes image content, produces descriptive text, and adds the captions automatically, eliminating manual annotation tasks.

How it works

  1. 1.Trigger the automation manually and upload the target image
  2. 2.Send the image to Gemini 1.5 for content analysis and caption generation
  3. 3.Parse and structure the model's response into organized data
  4. 4.Edit and embed the generated caption directly onto the image
  5. 5.Merge results and transmit via HTTP request for storage or downstream processing

Use cases

  • Batch-process image libraries with automatic, AI-generated captions
  • Enhance searchability and discoverability of image collections
  • Streamline content workflows for marketing, social media, and digital asset management

Requirements

  • Valid Google Cloud API key with Gemini access enabled
  • Images in standard formats (JPG, PNG) within model size constraints
  • Basic understanding of LLM chain parameters and prompt engineering

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Gemini Output Parser LLM Chain

Details

Trigger Automatic trigger
Nodes 16
Apps 3
Views 219
Downloads 131

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

When clicking ‘Test workflow’

Manual Trigger

#1

Google Gemini Chat Model

Gemini Model

#2

Structured Output Parser

Output Parser Structured

#3

Get Info

Edit Image

#4

Resize For AI

Edit Image

#5

Calculate Positioning

Code

#6

Apply Caption to Image

Edit Image

#7

Sticky Note

Sticky Note

#8

Merge Image & Caption

Merge

#9

Merge Caption & Positions

Merge

#10

Get Image

HTTP Request

#11

Sticky Note1

Sticky Note

#12

Sticky Note2

Sticky Note

#13

Sticky Note3

Sticky Note

#14

Sticky Note4

Sticky Note

#15

Image Captioning Agent

LLM Chain

#16