Templates / Generate AI images from text prompts with Gemini 2.0, Google Sheets & Drive

Generate AI images from text prompts with Gemini 2.0, Google Sheets & Drive

Needs changes

by Muhammad Farooq Iqbal ✓ · 6,430 views · created 2025-08-18 · Content Creation, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs on a schedule (every minute). Along the way it connects Google Gemini Chat Model, Google Gemini, Google Drive and Google Sheets.

How it runs

Trigger: On a schedule (every minute).

  1. Get row(s) in sheet (Google Sheets): uses Google Sheets
  2. If: checks a condition and branches into true / false
  3. Limit: keeps the first few items
  4. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  5. Code: runs custom JavaScript code
  6. Generate Image with Gemini (Google Gemini): work with image
  7. Upload file (Google Drive): uses Google Drive
  8. Share file (Google Drive): share
  9. update imageUrl (Google Sheets): update

Services it uses

Google Gemini Chat ModelGoogle GeminiGoogle DriveGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

This n8n template demonstrates how to automate the creation of high-quality visual content using AI. The workflow takes simple titles from a Google Sheets spreadsheet, generates detailed artistic prompts using AI, creates photorealistic images, and manages…

Excerpt from Muhammad Farooq Iqbal's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.