This workflow turns n8n into an AI-powered media buyer that automatically analyzes your ad performance, categorizes your creatives, and delivers insights.

About This 4-Part Automation Series
As a media buyer, I built this system to automate the heavy lifting of analyzing ad data and brainstorming new creative ideas.
This template is the first foundational part of that larger system.
✅ Part 1 (This Template): Pulling Ad Data & Getting Quick Insights
Automatically pulls data into a Google Sheet and uses an LLM to categorize ad performance.
✅ Part 2: Finding the Source Files for the Best Ads
Fetches the image or video files for top-performing ads.
✅ Part 3: Using AI to Understand Why an Ad Works
Sends your best ads to Google Gemini for structured notes on hooks, transcripts, and visuals.
✅ Part 4: Getting the AI to Suggest New Creative Ideas
Uses all the insights to generate fresh ad concepts, scripts, and creative briefs.
What This Template (Part 1) Does
Secure Token Management
Automatically retrieves and refreshes your Facebook long-term access token.
Fetch Ad Data
Pulls the last 28 days of ad-level performance data from your Facebook Ads account.
Process & Clean
Parses raw data, standardizes key e-commerce metrics (like ROAS), and filters for sales-focused campaigns.
Download the workflow JSON file after purchase.
Open n8n → click the menu → Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.