Transform natural language queries into comprehensive Facebook Ads competitive intelligence using N8N automation and AI-powered data extraction.
This N8N workflow automatically converts plain English requests into structured Facebook Ads data extraction, providing complete competitive intelligence with minimal configuration. Simply describe what ads you want to analyze, and the system handles the rest.
The pipeline consists of four main components:
- User Request Intake - Natural language input via chat interface
- AI Request Translator - GPT-4 powered query interpretation and JSON generation
- JSON Extractor - Smart parsing and validation of AI-generated configurations
- Facebook Ads Data Collector - Production-grade data extraction via Apify integration
Each extracted ad includes:
- Complete ad creative (text, images, videos)
- Targeting data (platforms, countries, demographics)
- Campaign timeline and performance metrics
- High-quality media assets with direct download URLs
- Page information and engagement data
- Convert queries like "Samsung campaigns on Instagram in French" into precise API configurations
- No technical knowledge required for complex data extraction
- Automatic parameter optimization for best results
- 15+ filtering parameters (date ranges, platforms, media types, geography)
- Multi-platform coverage: Facebook, Instagram, Audience Network, Messenger, Threads
- HD video downloads and high-resolution image assets
- Complete targeting and performance data
- Built-in error handling and retry mechanisms
- Residential proxy support for consistent access
- Smart rate limiting to prevent blocking
- Progress tracking and result validation
- JSON, CSV, and Excel export formats
- Direct integration with business intelligence tools
- Scalable architecture for large-scale data extraction
- Custom filtering and data enrichment capabilities
- Digital Marketing Agencies: Automated competitive analysis and client reporting
- E-commerce Businesses: Track competitor strategies and creative performance
- Market Research: Industry trend analysis and advertising spend insights
- SaaS Companies: Monitor competitive messaging and positioning strategies
- Import the workflow JSON into your N8N instance
- Configure your OpenAI API credentials
- Set up Apify integration with the Facebook Ads Scraper Pro actor
- Start the chat interface and describe your data extraction needs
- "Show me Nike and Adidas video ads from last month in the US"
- "Political ads in French from Canada, 50 results"
- "Instagram stories from fitness brands, active campaigns only"
- "Employment ads in Germany with image content"
- N8N instance (cloud or self-hosted)
- OpenAI API access for natural language processing
- Apify account with Facebook Ads Scraper Pro actor access
- Residential proxy configuration (recommended)
- Clone this repository
- Import
workflow.jsoninto N8N - Configure credentials for:
- OpenAI API
- Apify platform
- Activate the workflow
- Access via the generated webhook URL
Each extracted ad record includes:
{
"id": "ad_identifier",
"page_name": "advertiser_name",
"ad_text": "complete_ad_copy",
"media": {
"type": "video|image",
"videos": [{"video_hd_url": "...", "video_sd_url": "..."}],
"images": [{"original_image_url": "...", "resized_image_url": "..."}]
},
"platforms": ["FACEBOOK", "INSTAGRAM"],
"start_date": "2025-01-01",
"end_date": "2025-01-31",
"page_likes": 12345,
"countries": ["US"],
"ad_category": "UNKNOWN"
}The workflow supports extensive customization:
- Geographic Targeting: Single country or global extraction
- Platform Selection: Facebook, Instagram, Audience Network, Messenger
- Content Filtering: Video, image, or mixed media campaigns
- Date Ranges: Historical analysis or recent campaign focus
- Volume Control: 10-1000 results per query
- Language Targeting: Multi-language content analysis
- π Website: flowextractapi.com
- π§ Email: flowextractapi@outlook.com
- π Apify Profile: dz_omar
- π¬ GitHub Issues: FlowExtractAPI
- πΌ LinkedIn: flowextract-api
- π¦ Twitter: @FlowExtractAPI
- π± Facebook: flowextractapi
- YouTube Transcript Extractor - Extract transcripts with timestamps
- YouTube Scraper Pro - Complete channel and playlist extraction
- Zoom Scraper - Download recordings and transcripts
- Loom Scraper - Loom video and transcript extraction
- Idealista Scraper API - Spanish property data with API
- Idealista Scraper - Real estate listings extractor
- Screenshot - Fast webpage screenshots
- Ultimate Screenshot - Advanced screenshot tool
- Network Security Scanner - Security vulnerability scanner
- Facebook Ads Scraper Pro - Extract Facebook ads data
n8n facebook-ads competitive-intelligence ai-automation data-extraction marketing-analytics apify openai social-media-monitoring business-intelligence

