FM
FlowMarket
AI Agents Advanced ⚡ 18 n8n Nodes

Scrape analyse Meta Ad Library image ads with Apify and OpenAI

Meta Image Ads Analyzer This n8n template builds an automated system to scrape, analyze, and extract insights from Meta advertising content. The workflow use...

🔌 Nodes & Integrations Used (8)

HTTP Request Sort Limit Lm Chat Open Ai Output Parser Structured Agent Google Drive Google Sheets

📖 Implementation & Setup Guide

**Meta Image Ads Analyzer** This n8n template builds an automated system to scrape, analyze, and extract insights from Meta advertising content. The workflow uses AI to perform deep analysis of image ads and organize the results in a structured format.

**How it works** * The workflow connects to Facebook's Ad Library to scrape image ads based on a specified page ID. * Images are filtered by reach and days running, then processed through OpenAI's GPT-4o to analyze their content. * Each image ad is systematically analyzed to extract key components: visual description, hook elements, main offer, call-to-action, and psychological triggers. * Results are processed through an AI agent that structures the data into standardized fields. * Original images are saved to Google Drive for reference. * All analysis and metadata are saved to a Google Sheet for easy access and further processing.

**How to use** Once you've set up your credentials and configured the output: * Enter the Meta Ad Library URL you want to analyze in the Settings node. * Adjust the maximum number of ads to scrape and analyze based on your needs (defaults: 300 to scrape, 10 to analyze). * Configure the Google Drive folder to save the original ad images. * Ensure your Google Sheets connection is set up to receive the structured analysis. * Click "Test Workflow" to start the analysis process.

**Requirements** * Apify account (for Meta Ad Library scraping) * OpenAI API key (for image analysis) * Google Drive and Google Sheets access

**Customizing this workflow** * Modify the AI prompts in the "Analyze Image Contents" node to extract different information from the images. * Adjust the output formats in the Structured Output Parser node. * Change the Google Sheets mapping to match your desired output structure. * Increase the number of ads analyzed for more comprehensive research. * Filter ads based on different criteria by modifying the "Filter only Image Ads" node.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Scrape_analyse_Meta_Ad_Library_image_ads_with_Apify_and_OpenAI.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →