Automation library · Data collection

Generate ad image variations with OpenAI and Dumpling AI

Started by someone submitting a form, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 13 steps, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

13 stepsMedium: a working afternoon
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 5Logic 2Service 5

The steps in the order they run, from what starts it.

  1. 1Submit Brand Info + ImageForm triggerStarts it
  2. 2Parse Prompts into JSON ArrayOutput Parser StructuredModel
  3. 3GPT-4o (Connected to LangChain Agent)Lm Chat Open AiModel
  4. 4 Upload Ad Image to Google DriveGoogle DriveService
  5. 5LangChain Agent: Generate Variation PromptsAgentModel
  6. 6Download Ad Image for AnalysisGoogle DriveService
  7. 7Split: One Prompt per ItemSplit OutLogic
  8. 8Describe Visual Style of ImageOpen AiModel
  9. 9Download Base Image for Each VariationGoogle DriveService
  10. 10Analyze Brand Website StyleOpen AiModel
  11. 11Loop: Process Image VariationsSplit In BatchesLogic
  12. 12Dumpling AI: Generate Image VariationHttp RequestService
  13. 13 Log Image Variation URLs to Google SheetsGoogle SheetsService

How it's built

Starts on
Someone submitting a form
Steps
13, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Drive, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 13 steps before you point it at anything that matters.