Automation library · Research and reporting

Clone & customize competitor Facebook ads with Gemini

Started by someone submitting a form, and works across Apify and Google Drive. 16 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium

16 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Logic 6Service 9

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

  1. 1form_triggerForm triggerStarts it
  2. 2convert_product_image_to_base64Extract From FileService
  3. 3scrape_adsApifyService
  4. 4iterate_adsSplit In BatchesLogic
  5. 5download_imageHttp RequestService
  6. 6upload_ad_referenceGoogle DriveService
  7. 7convert_ad_image_to_base64Extract From FileService
  8. 8mergeMergeLogic
  9. 9aggregateAggregateLogic
  10. 10build_promptSetLogic
  11. 11generate_ad_image_promptHttp RequestService
  12. 12generate_ad_imageHttp RequestService
  13. 13check_if_prohibitedIfLogic
  14. 14set_resultSetLogic
  15. 15get_imageConvert To FileService
  16. 16upload_imageGoogle DriveService

How it's built

Starts on
Someone submitting a form
Steps
16, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Apify, Google Drive
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Apify and Google Drive accounts. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 16 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 16 steps before you point it at anything that matters.