Auto-Build Meta Ads from Product URLs with n8n, OpenAI & Firecrawl (PAUSED by Default)
Input a product URL and ad requirements → AI scrapes and generates a creative brief with assets → Output a Meta ad campaign in PAUSED status for human review before going live
- Who
- Agencies, performance marketers, and founders who need repeatable creative production with less manual setup
- You get
- Submit one form to get a ready-to-review Meta campaign (Campaign → Ad Set → Ad), including AI-generated 1:1 images and copy, all created in PAUSED status
- You need
- n8n · firecrawl
Constraints
Prerequisites: an n8n instance (self-hosted or cloud); OpenAI credential (Chat + Images); Facebook Graph API credential (ads_management permission required); Firecrawl API key; Meta Ad Account ID, Facebook Page ID, Pixel ID, and destination URL. Cost: $25 one-time for the template (n8n platform), plus pay-as-you-go API usage.
What they did
Author adamcrafts published a paid template ($25) on the n8n platform demonstrating a complete automation from product URL to Meta ad campaign. Users submit a product URL and campaign requirements via a form; the workflow calls Firecrawl to scrape the page, uses an OpenAI LLM to extract structured product data and generate vision-style cues, compiles a Creative Brief, then an AI Agent generates campaign data conforming to a strict JSON Schema. After splitting into Ad Sets, it batches 1:1 image generation, uploads assets via the Meta Graph API, and creates Campaign, Ad Set, and Ad entities—all defaulting to PAUSED status.
How it went
The source reports the template outputs a Creative Brief, Campaign JSON (with ad sets, creative, and ad concept), and directly creates assets inside Meta Ads Manager (author_report). Ads are created PAUSED and require manual enabling; the FAQ explicitly answers "Does it publish automatically? No."
Worth knowing
1. The template contains no hardcoded API keys, but requires correctly configured n8n Credentials for three services; nodes will fail without them. 2. For first tests, use 1–2 variations and verify Firecrawl can reach the target site and Meta permissions are valid before scaling batch size. 3. Default image size is 1024×1024 (1:1); you can change this in the OpenAI Images node, but keep FB/IG safe zones in mind. 4. If product pages are thin, the extractor returns null for missing fields and the brief adapts without inventing data. 5. You can swap the generated audience block for your saved custom audiences or static lists. 6. This site has not tested the template; reproduction=not_tested. Confirm n8n version compatibility and API quotas before building.
n8n workflow template
Structure checked · Not run-testedUse “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.
Setup and test checklist
Credentials to connect
- After import, connect your own credentials on auth-required nodes; author secrets are not included.
Configuration to replace
- Source template is n8n public workflow #8681 (~40 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
- Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.
Test input and expected output
- Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
- Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.
Template changes
- Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
- No business-logic edits; verify keys, quotas and privacy compliance before use.
Template retrieved: 2026-10-24
Steps
Import the template and configure credentials
Import the template JSON into n8n. Then create three credentials: OpenAI (for Chat and Images), Facebook Graph API (must have ads_management permission), and Firecrawl (API key). The source stresses that all authentication must use n8n Credentials—no hardcoded keys in any node.
Setup guidance · Editorial suggestion。Setup assistant starter prompt; guides the user through template import and credential configuration
You are assisting with setting up the n8n template "AI-Powered Meta Ads Builder". Proceed in this order: 1. Import the template JSON into the n8n workflow editor. 2. Go to Credentials and add: - OpenAI (model access must include Chat and Images) - Facebook Graph API (confirm ads_management is granted) - Firecrawl (enter your API Key) 3. Inspect all HTTP Request nodes to ensure no keys are written as plaintext in URLs or Headers. 4. After saving credentials, select the correct Credential in every node that uses the corresponding service. Do not execute yet; proceed to the next step to configure Meta constants.
Fill in Meta ad account constants
Open the "Configuration Meta Ads" node and enter your account details: ad_account_id, facebook_page_id, pixel_id, website_link. The source ships with placeholders (your_ad_account_id, etc.) that must be replaced with real values.
Submit the product form to trigger the workflow
Open the Form Trigger public URL and submit a form with: Product URL (required, must be a real product page with at least one image), Campaign Type (Launch/Seasonal/Awareness/Retargeting/LTO), Target Platform (Facebook/Instagram), Number Of Variation (integer, start with 1–2), Target Audience, Key Message / Offer, Emotional Tone (multi-select: Joy/Trust/Fear/Surprise/Sadness/Disgust/Anger). After submission the workflow runs automatically: Firecrawl scrape → OpenAI extracts product JSON and vision style → generates Creative Brief → LLM outputs Campaign JSON → splits into Ad Sets → generates 1:1 images → uploads to Meta → creates Campaign/Ad Set/Ad (all PAUSED).
Review and enable PAUSED ads
In Meta Ads Manager, inspect the generated Campaign, Ad Sets, and Ads. Verify copy, images, targeting, and UTM parameters comply with platform policies and brand guidelines, then manually change status from PAUSED to active. The source explicitly states ads are never auto-published; everything is created PAUSED to keep humans in control.
Prompt you can copy
Setup guidance · Editorial suggestion。Setup assistant starter prompt; confirms inputs and permissions before execution
This block is the prompt. Ads are never placed here.
You are assisting with setting up the n8n template "AI-Powered Meta Ads Builder". Proceed in this order: 1. Import the template JSON into the n8n workflow editor. 2. Go to Credentials and add: - OpenAI (model access must include Chat and Images) - Facebook Graph API (confirm ads_management is granted) - Firecrawl (enter your API Key) 3. Inspect all HTTP Request nodes to ensure no keys are written as plaintext in URLs or Headers. 4. After saving credentials, select the correct Credential in every node that uses the corresponding service. 5. Open the "Configuration Meta Ads" node and fill in ad_account_id, facebook_page_id, pixel_id, website_link. 6. Open the Form Trigger URL and test with a real product page (start with 1–2 variations). 7. After execution, go to Meta Ads Manager, review the PAUSED ads, and enable manually. Note: if scraping fails, check your Firecrawl key and the target site’s policies; if uploads fail, check Meta account permissions and app scopes.
This prompt is for setup-phase guidance, not a node runtime instruction. Actual node prompts are preset inside the template and should be inspected in the n8n editor.
Source
Create AI-generated meta ad campaigns from product URLs with OpenAI & Firecrawl · adamcrafts · n8n.io · 2025-09-17
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.