🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Google Drive to Google Sheets, ad variants ready

Lisa Granqvist Partner Workflow Automation Expert

Your creative testing slows down the second you need “just 10 more variants.” Someone has to pull the reference ad, match the brand look, brief the designer (again), export files, name them, then track everything somewhere.

Drive Sheets automation hits performance marketers first, because testing calendars don’t wait. But creative leads chasing consistency and agency teams juggling approvals feel the same bottleneck. The outcome is simple: you generate 10 brand-consistent ad image variants and log them automatically, ready for review and testing.

This workflow turns one reference ad image plus your brand website into clean, repeatable creative output. You’ll see what it does, what you need, and how teams use it to keep experiments moving without the messy spreadsheet chaos.

How This Automation Works

See how this solves the problem:

n8n Workflow Template: Google Drive to Google Sheets, ad variants ready

The Challenge: Scaling Ad Variants Without Losing Brand Consistency

Most teams can make one good ad. The pain starts when you need enough variations to learn anything. You end up re-briefing the same brand context, hunting down the “final_final_v7” file in Drive, and trying to remember which version had the warmer lighting or the cleaner headline space. Then the tracking breaks: links are missing, filenames drift, and results get tied to the wrong creative. Honestly, it’s not just slow. It makes your testing data less trustworthy, so you stop iterating and start guessing.

It adds up fast. Here’s where it usually breaks down.

  • Every request for “10 variants” turns into a mini project with repeated brand explanations and avoidable back-and-forth.
  • Creative consistency is fragile, so even small differences can drift into off-brand colors, tone, or composition.
  • Tracking gets messy when image URLs live in chats, folders, and random docs instead of one testing log.
  • Manual copy-paste across tools invites simple errors that waste spend and muddy results.

The Fix: Generate 10 Ad Image Variants From One Reference

This workflow starts with a simple form submission: brand name, brand website, and one reference ad image. n8n uploads the image to Google Drive so it’s stored consistently, then pulls it back for analysis. GPT-4o describes the image’s visual style (lighting, composition, mood), while GPT-4 looks at the brand website to infer a broader aesthetic that keeps the outputs coherent. A LangChain agent combines both and writes 10 tightly scoped prompts, so you’re not generating random “AI art,” you’re generating purposeful variations. Dumpling AI then produces a new image for each prompt using its FLUX.1-pro model. Finally, each image link is written into Google Sheets so your review and testing workflow stays clean.

The workflow begins when you submit the form with your reference image and site. AI turns that into variation prompts designed for ad testing, then Dumpling generates the images in batches. Google Sheets becomes the single place your team reviews, picks winners, and keeps experimenting.

What Changes: Before vs. After

Real-World Impact

Say your team runs two new creative tests a week, and each test needs 10 image variants. Manually, even a “quick” process is often about 10 minutes per variant between briefing, generating, exporting, naming, uploading, and logging, which is roughly 100 minutes per test. That’s about 3 hours a week just to get variants into a sheet. With this workflow, submitting the form takes around 5 minutes, then you wait for generation and the Sheet fills itself. You get most of that time back, and the log stays consistent.

Requirements

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Drive to store the reference image.
  • Google Sheets to log variant image URLs for review.
  • OpenAI API key (get it from the OpenAI API dashboard).
  • Dumpling AI API key (get it from your Dumpling AI account settings).

Skill level: Intermediate. You’ll connect OAuth accounts, paste a couple IDs, and verify API credentials in n8n.

Need help implementing this? Talk to an automation expert (free 15-minute consultation).

The Workflow Flow

Form submission triggers everything. You enter the brand name, brand website, and upload one reference ad image. That gives the workflow both “what the ad should feel like” and “what the brand looks like.”

The reference image is stored and fetched from Google Drive. n8n uploads the image into your chosen Drive folder, then retrieves it for analysis so you’re not dealing with one-off files sitting in someone’s downloads folder.

OpenAI + LangChain create usable variation prompts. GPT-4o summarizes the ad’s aesthetics, GPT-4 assesses the website’s visual style, then a LangChain agent combines both and outputs 10 structured prompts that are intentionally “close to the original,” but different in mood, lighting, tone, and background.

Dumpling AI generates the images in batches. The workflow splits prompts into items, loops through them, and uses an HTTP request to generate each image with the FLUX.1-pro model. The batch approach keeps runs stable when you scale.

Google Sheets becomes your review queue. Each generated image URL is recorded into your Sheet so your team can review, select winners, and push the best performers into campaigns.

You can easily modify the number of variants from 10 to 5 or 20 based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Form Trigger

Set up the workflow entry point to collect brand details and a reference image from a form submission.

  1. Add the Collect Brand Details & Image node as your trigger.
  2. Set Form Title to Ad Image Generator.
  3. Set Form Description to Provide brand and product info, and an optional reference image to generate image variations with AI.
  4. Add form fields for Brand Name, Brand Website, and Ad Image (file upload, required).
Keep the field labels exactly as Brand Name, Brand Website, and Ad Image to match the expressions used later in the workflow.

Step 2: Connect Google Drive for Image Storage and Retrieval

Upload the submitted image to Drive and fetch it for AI analysis and variant generation.

  1. Open Send Image to Drive and set Name to ={{ $json['Ad Image'].filename }} (Original).
  2. Choose the Drive and folder for uploads in Send Image to Drive.
  3. Credential Required: Connect your googleDriveOAuth2Api credentials in Send Image to Drive.
  4. In Fetch Image for Review, set Operation to download and File ID to ={{ $('Send Image to Drive').item.json.id }}.
  5. Credential Required: Connect your googleDriveOAuth2Api credentials in Fetch Image for Review.
  6. In Retrieve Base Image per Variant, set Operation to download and File ID to ={{ $('Send Image to Drive').item.json.id }}.
  7. Credential Required: Connect your googleDriveOAuth2Api credentials in Retrieve Base Image per Variant.
⚠️ Common Pitfall: If the Drive folder ID is incorrect, Fetch Image for Review and Retrieve Base Image per Variant will fail because the file ID won’t exist.

Step 3: Set Up Visual Analysis and Prompt Generation

Analyze the reference image and website aesthetic, then generate structured variation prompts using the agent and parser.

  1. Configure Summarize Image Aesthetics with Resource set to image, Input Type set to base64, and Operation set to analyze.
  2. Set the Text field in Summarize Image Aesthetics to Describe the visual style, subject matter, and composition of this image. Is it a lifestyle image, a product-only shot, or a combination? Include lighting style and camera angle if possible.
  3. Credential Required: Connect your openAiApi credentials in Summarize Image Aesthetics.
  4. In Assess Website Visual Style, keep the message content and ensure it uses the expressions {{ $('Collect Brand Details & Image').item.json['Brand Website'] }} and {{ $('Collect Brand Details & Image').item.json['Brand Name'] }}.
  5. Credential Required: Connect your openAiApi credentials in Assess Website Visual Style.
  6. Open Agent: Craft Variation Prompts and keep the Text field set to =Brand Name: {{ $('Collect Brand Details & Image').item.json['Brand Name'] }} Website: {{ $('Collect Brand Details & Image').item.json['Brand Website'] }} Reference Ad Description: {{ $('Summarize Image Aesthetics').item.json.content }} Visual Style Overview: {{ $json.message.content }}.
  7. Ensure Convert Prompts to JSON is connected as the output parser to Agent: Craft Variation Prompts with the provided JSON schema example.
  8. Open GPT-4o Model Connector and confirm it is linked as the language model for Agent: Craft Variation Prompts.
  9. Credential Required: Connect your openAiApi credentials in GPT-4o Model Connector.
The Convert Prompts to JSON output parser is a sub-node; credentials should be added to the parent node’s model connector (GPT-4o Model Connector).

Step 4: Split Prompts and Prepare Variant Processing

Split the generated prompt list into individual items and prepare them for batch processing with the base image.

  1. In Split Prompts into Items, set Field to Split Out to output.
  2. Confirm that Split Prompts into Items connects to Retrieve Base Image per Variant and then to Batch Process Variants.
  3. In Batch Process Variants, keep default settings unless you want to control batch sizes.

Step 5: Configure AI Image Generation and Sheet Output

Send each prompt to the image generator and append the resulting URLs to Google Sheets.

  1. In Dumpling AI Image Builder, set URL to https://app.dumplingai.com/api/v1/generate-ai-image and Method to POST.
  2. Set JSON Body to { "model": "FLUX.1-pro", "input": { "prompt": "{{ $json.prompt }}" } }.
  3. Credential Required: Connect your httpHeaderAuth credentials in Dumpling AI Image Builder.
  4. In Record Image URLs to Sheets, set Operation to append.
  5. Map the Image URL column to ={{ $json.url }}.
  6. Credential Required: Connect your googleSheetsOAuth2Api credentials in Record Image URLs to Sheets.
⚠️ Common Pitfall: If your Sheets document ID or sheet name is blank in Record Image URLs to Sheets, the append action will fail. Select the correct document and sheet.

Step 6: Test and Activate Your Workflow

Validate the full pipeline from form submission to image URLs in Google Sheets.

  1. Click Execute Workflow and submit the form from Collect Brand Details & Image with a real image file.
  2. Confirm that Send Image to Drive uploads the file and Fetch Image for Review downloads it successfully.
  3. Verify that Agent: Craft Variation Prompts returns a JSON array and Split Prompts into Items creates individual items.
  4. Check that Dumpling AI Image Builder returns image URLs and Record Image URLs to Sheets appends them.
  5. When successful, toggle the workflow to Active so new submissions trigger production runs.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Watch Out For

  • Google Drive credentials can expire or need specific permissions. If things break, check the n8n Google Drive credential status and the target folder sharing settings first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Common Questions

How quickly can I implement this Drive Sheets automation automation?

If your accounts are ready, plan on about 30 minutes.

Can non-technical teams implement this Drive Sheets automation?

Yes, but someone needs to be comfortable connecting OAuth credentials and pasting a few IDs. No coding, just careful setup.

Is n8n free to use for this Drive Sheets automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI and Dumpling AI usage, which depends on how many variants you generate.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

How do I adapt this Drive Sheets automation solution to my specific challenges?

You can. Most teams start by changing the “Agent: Craft Variation Prompts” instructions to control what varies (seasonality, background type, lighting, on-model vs. off-model). You can also switch the Dumpling AI model used in the “Dumpling AI Image Builder” request if you need a different aesthetic. And if your reviews need more context, log extra columns to Google Sheets like the prompt text, timestamp, and campaign name.

Why is my Google Drive connection failing in this workflow?

Usually it’s expired OAuth access or the Drive folder isn’t accessible to the connected account. Reconnect Google Drive in n8n, then confirm the folderId points to a folder that account can view and upload to. If the upload works but the fetch fails, check the file permissions and make sure you’re retrieving the correct file after upload. Rate limits are rare here, but they can show up if you run big batches repeatedly.

What’s the capacity of this Drive Sheets automation solution?

It scales fine for most teams.

Is this Drive Sheets automation automation better than using Zapier or Make?

Often, yes for this specific use case. You’re combining multi-step AI reasoning (image + website analysis) with structured outputs, looping/batching, and a custom HTTP call to Dumpling AI. n8n handles branching and batching cleanly without turning every extra step into a pricing surprise, and self-hosting is there if you want it. Zapier or Make can still work if you keep it simple, but workflows like this get complex fast. Talk to an automation expert if you want a quick recommendation based on your volume and review process.

You get a repeatable system for creative variation, not another one-off “AI experiment.” Set it up once, then keep shipping tests without the spreadsheet whiplash.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal