# Generate AI Facebook ad variants from competitors: 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/generate-ai-facebook-ad-variants-from-competitors (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Generate AI Facebook ad variants from competitors

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%2Fgenerate-ai-facebook-ad-variants-from-competitors)

**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%2Fgenerate-ai-facebook-ad-variants-from-competitors)
- **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 research and reporting, with the same services where possible, closest in size first.

- [**Generate comprehensive financial reports with OpenAI and Gmail** 26 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/generate-comprehensive-financial-reports-with-openai-and-gma)
- [**Generate weekly AI equity research reports with Google Sheets** 26 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-weekly-ai-equity-research-reports-with-google-sheet)
- [**Audit website security and send AI reports with Gmail** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/audit-website-security-and-send-ai-reports-with-gmail)
- [**Compare multi-period financial data from Google Sheets** 25 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/compare-multi-period-financial-data-from-google-sheets)
- [**Generate multi-period financial reports from Google Sheets** 25 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/generate-multi-period-financial-reports-from-google-sheets)
- [**Log and report construction punch list items with OpenAI** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/log-and-report-construction-punch-list-items-with-openai)
