Competitor Facebook Ad Creative Analysis and Automated Email Reporting - n8n Workflow

Analyze competitor Facebook Ad creative automatically using this powerful n8n workflow. Leverage GPT-4 Vision and Gemini for image and video analysis, generating strategic reports delivered via email.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Marketing Analysts and Strategists needing fast competitor insights.
Media Buyers who want to quickly benchmark ad creative performance.
Agencies looking for scalable solutions for market monitoring.
Technical users seeking advanced examples of multi-modal AI integration within an n8n automation.

Overview

Understanding competitor strategy is vital for effective marketing. Manual ad creative analysis is time-consuming and prone to bias. This advanced n8n workflow solves this by automating the entire pipeline.

The process begins with an n8n trigger (form submission) to initiate the scrape. It then intelligently splits image and video advertisements, utilizing different multi-modal AI models: GPT-4 for image analysis and Gemini for video analysis (via dedicated API calls).

After analysis, the data is aggregated and passed to a sophisticated Langchain AI Agent, powered by a structured output parser, which synthesizes the raw insights into a coherent, strategic report. The final output is a ready-to-use competitive analysis, automatically delivered to your inbox using a Gmail n8n node. This end-to-end n8n automation provides deep, actionable insights without manual effort, showcasing the power of complex n8n templates.

How it Works

This powerful n8n workflow operates in five main stages:


  1. Trigger & Scraping: The automation starts with an On form submission n8n trigger, which captures necessary parameters (like target company or keywords). It immediately calls the Scrape ads HTTP Request n8n node to pull competitor ad data.

  2. Data Segregation: The Split Image Ads & Video Ads switch n8n node separates the results into two parallel processing branches to handle different media types efficiently. Both branches deduplicate and limit the items (to 5 images and 5 videos, respectively).

  3. Image Analysis (GPT-4): The image path uses the Analyze Image Langchain OpenAI n8n node to perform multi-modal analysis (using GPT-4 Vision capabilities) on the ad creative and copy.

  4. Video Analysis (Gemini): The video path involves several HTTP Request n8n nodes (Download video, Upload video Gemini, Analyze video Gemini) to process video content using the Gemini API. A Wait n8n node ensures sequential processing.

  5. Synthesis and Reporting: The analyzed data streams merge into the Merge Media Result n8n node. All resulting insights are combined into a single text string. This string is fed into the AI Agent n8n node, which uses a large language model (LLM) and a structured output parser to write a coherent, strategic report. Finally, the strategic report is sent via the Email the top job recommendations Gmail n8n node.

Installation Guide

To use this complex n8n workflow, follow these setup steps:


  1. Import the JSON: Copy the provided n8n workflow JSON and paste it into your n8n instance using the 'Import Workflow' option.

  2. Configure Credentials: You will need to set up several credentials for the various n8n node interactions:

OpenAI: Set up credentials for the Langchain OpenAI n8n node (API Key required for GPT-4/multi-modal analysis).
Gmail: Configure your Gmail credentials for the reporting n8n node (Email the top job recommendations).
Scraping API: Configure credentials for the Scrape ads HTTP Request n8n node (details depend on the specific ad library API used).
Gemini API: Configure credentials for the Upload video Gemini and Analyze video Gemini HTTP Request n8n nodes.

  1. Form Trigger Setup: Activate the On form submission n8n trigger and note the webhook URL. This URL is used to initiate the n8n automation.

  2. Review Parameters: Check the prompts within the AI nodes (Analyze Image, AI Agent) and the request bodies in the HTTP Request n8n nodes to ensure they align with your target platform and analysis goals. Activate the n8n workflow once all connections are established.

Node Details

On form submission (n8n trigger): The entry point of the entire n8n workflow, initiating the analysis upon receiving specific input data.
Scrape ads (HTTP Request n8n node): Responsible for calling an external API to retrieve Facebook Ad data based on the trigger input.
Split Image Ads & Video Ads (Switch n8n node): A core logic n8n node that directs items down different paths based on whether they contain image or video media, essential for optimizing AI processing.
Analyze Image (Langchain OpenAI n8n node): Uses a multi-modal GPT model to analyze and extract strategic insights from image creatives.
Download video & Analyze video Gemini (HTTP Request n8n nodes): Handles the complex multi-step process required for sending video data to the Gemini API for analysis.
Merge Media Result (Merge n8n node): Combines the disparate output streams from the image and video analysis branches.
AI Agent (Langchain Agent n8n node): The final synthesis step. It uses a defined prompt and a structured output parser to turn raw analytical data into a final, actionable strategic report. This is a crucial n8n node for high-value output.
Email the top job recommendations (Gmail n8n node): The final action of the n8n workflow, sending the complete, AI-generated competitive analysis report to a designated email address.

Related n8n Workflows

Paid

Nodes: 16 Nodes
Updated: December 26 2025
View all
Created by

Seasoned Data Engineer with over 8 years of experience in digital marketing analytics and workflow automation. Expert in leveraging tools like n8n, Python, and SQL to streamline data integration and optimize operational efficiency. Passionate about enhancing productivity through innovative automation strategies.

Featured*