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)
📖 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:
- Click the Direct Download JSON button above to save
Scrape_analyse_Meta_Ad_Library_image_ads_with_Apify_and_OpenAI.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....