Automation library · Research and reporting

Analyze competitor Facebook ads with Apify and OpenAI

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

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
3Loops or waits
1Service it connects to

The flow

Starts it 1Model 11Logic 6Service 4

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

  1. 1Start ManuallyManual triggerStarts it
  2. 2Video Analysis ModelLm Chat Open AiModel
  3. 3Video Analysis Output FormatOutput Parser StructuredModel
  4. 4Image Analysis ModelLm Chat Open AiModel
  5. 5Image Analysis Output FormatOutput Parser StructuredModel
  6. 6Text Analysis ModelLm Chat Open AiModel
  7. 7Text Analysis Output FormatOutput Parser StructuredModel
  8. 8ConfigurationSetLogic
  9. 9Generate Video Ad IntelligenceAgentModel
  10. 10Generate Image Ad IntelligenceAgentModel
  11. 11Generate Text Ad IntelligenceAgentModel
  12. 12Scrape Facebook Ad Library with ApifyHttp RequestService
  13. 13Save Video Ad AnalysisGoogle SheetsService
  14. 14Save Image Ad AnalysisGoogle SheetsService
  15. 15Save Text Ad AnalysisGoogle SheetsService
  16. 16Filter High-Engagement AdvertisersFilterLogic
  17. 17Loop Over Video AdsSplit In BatchesLogic
  18. 18Loop Over Image AdsSplit In BatchesLogic
  19. 19Loop Over Text AdsSplit In BatchesLogic
  20. 20Route by Ad Content TypeSwitchLogic
  21. 21Analyze Video Preview Image (GPT Vision)Open AiModel
  22. 22Analyze Image Ad (GPT Vision)Open AiModel

How it's built

Starts on
An event in a connected app
Steps
22, with 1 branch, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, 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 22 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 22 steps before you point it at anything that matters.