Clone & customize competitor Facebook ads with Gemini AI and Apify
UnknownWhat this workflow does
This workflow has 16 nodes and runs when someone submits an n8n form (“Facebook Ad Thief Form”). Along the way it connects Google Drive and Apify (community). It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Facebook Ad Thief Form”).
- convert_product_image_to_base (Extract from File): extracts data from a file (binary to propery)
- scrape_ads (Apify): run actor and get dataset
- iterate_ads (Loop Over Items (Split in Batches)): loops over the items in batches
- download_image (HTTP Request): calls an HTTP API
- upload_ad_reference (Google Drive): uses Google Drive
- convert_ad_image_to_base (Extract from File): extracts data from a file (binary to propery)
- Merge: merges the data from its input branches
- Aggregate: combines items into one
- build_prompt (Edit Fields (Set)): sets 1 field: prompt
- generate_ad_image_prompt (HTTP Request): calls generativelanguage.googleapis.com (POST)
…plus 5 more steps. See the full node list below.
Services it uses
HTTP calls to: generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in scrape_ads).
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - Convert to File
n8n-nodes-base.convertToFile - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Apify
@apify/n8n-nodes-apify.apify
From the author
Nano Banana Ad Cloning System This n8n template demonstrates how to automatically clone and adapt competitor Facebook ads for your own product using AI. Simply provide a Facebook Ad Library URL and your product image, and the workflow scrapes competitor ads,…