Templates / Create AI-generated meta ad campaigns from product URLs with OpenAI & Firecrawl

Create AI-generated meta ad campaigns from product URLs with OpenAI & Firecrawl

Needs changes

by Abdellah Homrani ✓ · 246 views · created 2025-09-17 · Social Media, Multimodal AI

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 35 nodes and runs when someone submits an n8n form. Along the way it connects OpenAI, OpenAI Chat Model and Firecrawl (community).

How it runs

Trigger: When someone submits an n8n form.

  1. Scrape a url and get its content (Firecrawl): uses Firecrawl
  2. OpenAI extraction with JSON Schema (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  3. Analyze Product (OpenAI): uses OpenAI
  4. Merge: merges the data from its input branches
  5. Creative Brief (OpenAI): uses OpenAI
  6. Generate Ad Camp (AI Agent): runs an AI agent, with model: GPT-4 Model; output parser: Output Parser
  7. Split (Split Out): splits a list into separate items
  8. Platform Adapter (Code): runs custom JavaScript code
  9. Batch (Loop Over Items (Split in Batches)): loops over the items in batches
  10. Configuration Meta Ads (Edit Fields (Set)): sets or maps fields

…plus 20 more steps. See the full node list below.

Services it uses

OpenAIOpenAI Chat ModelFirecrawl (community)

Uses Firecrawl. New users get 10% off with our link.

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Run Once: replace with Code node, mode 'Run Once for All Items'.
  • AI Agent v1 (old agent modes) in Generate Ad Camp (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
Function (legacy)
Run Once
Code node, mode 'Run Once for All Items'
AI Agent v1 (old agent modes)
Generate Ad Camp (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (17)

From the author

AI-Powered Meta Ads Builder (Facebook & Instagram) Turn any product page into ready-to-run Meta ads—fast, consistent, and client-friendly. Category: Marketing Automation / Ads / AI Price: \$25 (one-time) Integrations: Meta (Facebook & Instagram), OpenAI,…

Excerpt from Abdellah Homrani's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.