π FB Ad Spy: AI-Powered Competitor Ad Intelligence & Auto-Video Remixer
β‘ 19 views Β· π Market Research & Insights
π‘ Pro Tip β HTTP Request scraping tends to break when sites update their markup. If youβre scraping a major platform, check if ScraperNode covers it β it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
How it works
1. Scrape ads β Pulls Facebook Ad Library data for βai automationβ keywords using Apify
2. Filter & sort β Filters ads by page likes (>1,000) and separates into videos, images, and text ads
3. Analyze creative β For videos: uploads to Gemini for detailed description. For images: analyzes with GPT-4V. For text: rewrites copy using GPT-4.1
4. Generate new ad β Creates a Veo 3 prompt from the analysis, generates an 8-second video clip, and converts it to 9:16 vertical format
5. Add captions β Overlays rewritten ad copy as captions using Creatomate
6. Log results β Uploads final video to GCS and logs all data (analysis, prompts, URLs) to Google Sheets
Set up steps
-
API Keys β Set up accounts for Apify, Google Cloud (Gemini + GCS), OpenAI, Shotstack, and Creatomate
-
Credentials in n8n β Add each API key as a credential in your n8n instance
-
Configure variables β Update the
SET1node with your Google CloudPROJECT_IDandCLIENT_EMAIL -
Set up Google Sheet β Create a sheet with columns matching the schema (ad_archive_id, page_name, summary, rewritten_ad_copy, etc.)
-
Test β Execute the workflow to scrape, analyze, and generate a new ad variation
π Nodes Used
Google Sheets, HTTP Request, Google Drive, Google Cloud Storage, Filter, Convert to File
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File