Automation library · Research and reporting

Analyze competitor Facebook ads with Gemini

Started by someone submitting a form, and works across Gmail. It hands the judgement calls to OpenAI. 24 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 5Logic 13Service 5

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3On form submissionForm triggerStarts it
  4. 4Auto-fixing Output ParserOutput Parser AutofixingModel
  5. 5AI AgentAgentModel
  6. 6Scrape adsHttp RequestService
  7. 7Email the top job recommendationsGmailService
  8. 8Split Image Ads & Video AdsSwitchLogic
  9. 9Image duplicate keySetLogic
  10. 10Image Duplicate KeySetLogic
  11. 11Image Remove DuplicatesRemove DuplicatesLogic
  12. 12Video Remove DuplicatesRemove DuplicatesLogic
  13. 13Image Limit 5LimitLogic
  14. 14Video Limit 5LimitLogic
  15. 15Analyze ImageOpen AiModel
  16. 16Download videoHttp RequestService
  17. 17Select Image FieldsSetLogic
  18. 18Upload video GeminiHttp RequestService
  19. 19Merge Media ResultMergeLogic
  20. 20WaitWaitLogic
  21. 21AggregateAggregateLogic
  22. 22Analyze video GeminiHttp RequestService
  23. 23Combine all Ads information into a single text stringSetLogic
  24. 24Select Video FieldsSetLogic

How it's built

Starts on
Someone submitting a form
Steps
24, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail account, 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?

Take your time. At 24 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 24 steps before you point it at anything that matters.