# Competitive ad research & image generator with Apify: n8n workflow

> Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/competitive-ad-research-and-image-generator-with-apify (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Competitive ad research & image generator with Apify

Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 26 steps, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcompetitive-ad-research-and-image-generator-with-apify)

**26 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 8 Service 15

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

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **Set Variables** Set *Logic*
- 3 **Google Drive** Google Drive *Service*
- 4 **Run Ad Library Scraper** Http Request *Service*
- 5 **Google Sheets1** Google Sheets *Service*
- 6 **Filter** Filter *Logic*
- 7 **Edit Fields1** Set *Logic*
- 8 **Limit** Limit *Logic*
- 9 **Google Sheets2** Google Sheets *Service*
- 10 **Create Asset Parent Folder** Google Drive *Service*
- 11 **Create Child Source Folder** Google Drive *Service*
- 12 **Create Child Spun Folder** Google Drive *Service*
- 13 **Download Static Image Ad** Http Request *Service*
- 14 **Google Drive1** Google Drive *Service*
- 15 **Google Drive2** Google Drive *Service*
- 16 **OpenAI** Open Ai *Model*
- 17 **Spin Prompts** Open Ai *Model*
- 18 **Split Out** Split Out *Logic*
- 19 **Edit Fields** Set *Logic*
- 20 **Loop Over Items** Split In Batches *Logic*
- 21 **Download Static Image Ad1** Http Request *Service*
- 22 **Generate Image Using GPT Image 1** Http Request *Service*
- 23 **Convert to File** Convert To File *Service*
- 24 **Google Drive3** Google Drive *Service*
- 25 **Google Sheets** Google Sheets *Service*
- 26 **Wait** Wait *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 26, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **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 an event in a connected app.

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?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

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 26 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcompetitive-ad-research-and-image-generator-with-apify)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI YouTube Shorts Creator: Prompt-Based Clipping, Dubbing** 26 steps · calls a model · FTP, Google Drive](https://millionrounds.com/workflow/ai-youtube-shorts-creator-prompt-based-clipping-dubbing)
- [**AI-powered Elementor blog post automation system for agencies** 26 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-elementor-blog-post-automation-system-for-agencie)
- [**An AI agent to create faceless YouTube videos with OpenAI** 26 steps · calls a model · Google Drive](https://millionrounds.com/workflow/an-ai-agent-to-create-faceless-youtube-videos-with-openai)
- [**Automate blog creation & publishing with Gemini** 26 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/automate-blog-creation-and-publishing-with-gemini)
- [**Create YouTube videos daily from Google Sheets with MagicHour** 26 steps · calls a model · Google Sheets, YouTube](https://millionrounds.com/workflow/create-youtube-videos-daily-from-google-sheets-with-magichou)
- [**Creative Agency – Fully AI Video Creation & Social Publishing** 26 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/creative-agency-fully-ai-video-creation-and-social-publishin)
