Templates / Generate ad image variations using GPT-4, Dumpling AI & Google Drive

Generate ad image variations using GPT-4, Dumpling AI & Google Drive

Needs changes

by Yang ✓ · 5,890 views · created 2025-07-08 · 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 13 nodes and runs when someone submits an n8n form (“Ad Image Generator”). Along the way it connects Google Drive, OpenAI, Google Sheets and OpenAI Chat Model. It also calls app.dumplingai.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Ad Image Generator”).

  1. Upload Ad Image to Google Drive (Google Drive): uses Google Drive
  2. Download Ad Image for Analysis (Google Drive): download
  3. Describe Visual Style of Image (OpenAI): analyze (image)
  4. Analyze Brand Website Style (OpenAI): uses OpenAI
  5. LangChain Agent: Generate Variation Prompts (AI Agent): runs an AI agent, with model: GPT-4o (Connected to LangChain Agent); output parser: Parse Prompts into JSON Array
  6. Split: One Prompt per Item (Split Out): splits a list into separate items
  7. Download Base Image for Each Variation (Google Drive): download
  8. Loop: Process Image Variations (Loop Over Items (Split in Batches)): loops over the items in batches
  9. Dumpling AI: Generate Image Variation (HTTP Request): calls app.dumplingai.com (POST)
  10. Log Image Variation URLs to Google Sheets (Google Sheets): append

Services it uses

Google DriveOpenAIGoogle SheetsOpenAI Chat Model

HTTP calls to: app.dumplingai.com

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 LangChain Agent: Generate Variation Prompts (v1.7): 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)
LangChain Agent: Generate Variation Prompts (v1.7)
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

🧾 What this workflow does This workflow takes a reference ad image and brand website, then uses GPT-4, LangChain, and Dumpling AI to generate 10 high-quality image variations for ad testing. These image variations are visually consistent but subtly different…

Excerpt from Yang'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.