AutomationFlowsAI & RAG › Ai-powered Social Media Ad Creation with Website Scraping for Fb, Ig & Pinterest

Ai-powered Social Media Ad Creation with Website Scraping for Fb, Ig & Pinterest

ByMalik Hashir @malikx on n8n.io

This workflow empowers marketing teams, agencies and solopreneurs to instantly generate on-brand, platform-optimized social media ads — without designers or complex setup. Running performance marketing campaigns A/B testing ad creatives Scaling content for multiple platforms…

Event trigger★★★★★ complexityAI-powered38 nodesForm TriggerHTTP RequestSlackGoogle Gemini
AI & RAG Trigger: Event Nodes: 38 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #9388 — we link there as the canonical source.

This workflow follows the Form Trigger → Googlegemini recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "e698b84d-ecea-45ac-8adf-44c4ca9b4186",
      "name": "\ud83d\udcdd Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "notes": "SETUP:\n1. Configure form fields as shown\n2. Copy webhook URL after saving\n3. Share URL with users\nNOTE: This captures user inputs for ad generation",
      "position": [
        -2304,
        1936
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "aa94cc31-5e90-4dc1-98a1-c68810048d1c",
      "name": "\ud83d\udd00 Route by Dimensions",
      "type": "n8n-nodes-base.switch",
      "notes": "SETUP:\n1. Already configured with 7 dimension routes\n2. Enable 'Output All Matching' in options\n3. Each output triggers corresponding image generation\nNOTE: Creates separate paths for each selected dimension",
      "position": [
        -768,
        1856
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "c520634c-c776-476a-a409-88bd0a4eaac6",
      "name": "\ud83c\udfa8 FB Feed (1200x630)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1408
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "50d95aa5-886d-4c11-baa1-d872610625d3",
      "name": "\ud83c\udfa8 FB Story (1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1568
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f03474c7-fb4f-4bb4-8f6f-e47b4b5fa4d8",
      "name": "\ud83c\udfa8 IG Feed (1080x1080)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1744
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "50bd7169-4d72-4126-a221-23452638b500",
      "name": "\ud83c\udfa8 IG Story (1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1920
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "eb1111d4-61de-4d8b-aa37-384c05085b86",
      "name": "\ud83c\udfa8 IG Reel (1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        2096
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "fc1e610b-4fdf-46b6-a9f7-e31894e0a153",
      "name": "\ud83c\udfa8 Pinterest Pin (1000x1500)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        2288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5a709c1a-8e89-4272-891d-f3626674e517",
      "name": "\ud83c\udfa8 Pinterest Story (1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        2496
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "da59cfac-46a2-4ae8-9354-7ae7c5c07217",
      "name": "\ud83d\udce4 Send FB Feed",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1408
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "d93530d1-564a-4301-b97d-32b62909bfe7",
      "name": "\ud83d\udce4 Send FB Story",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1568
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "59e5cb38-31d4-4022-a6c6-87afd24316e7",
      "name": "\ud83d\udce4 Send IG Feed",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1744
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "f98f5d48-99ce-4495-8a8f-383be18080e7",
      "name": "\ud83d\udce4 Send IG Story",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1920
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "f9d74b85-6680-44b8-adc0-5f38fcf6b5e9",
      "name": "\ud83d\udce4 Send IG Reel",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        2096
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "68df8368-0bbe-477d-bbe5-75496d9974c1",
      "name": "\ud83d\udce4 Send Pinterest Pin",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        2288
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "1125c1ff-3d21-4dc6-a895-d8f8163943b1",
      "name": "\ud83d\udce4 Send Pinterest Story",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        2496
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "8ba41edc-7287-442a-a4ff-311289f56613",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2384,
        2144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d09a7813-c84b-4ff1-9424-59e8900151ac",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        2144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "40fdfe1a-345c-4fb6-b70f-71e2dae97d61",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2400,
        928
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d027ed57-9dce-4b02-b6b0-ae59ffd7a2ad",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2384,
        1744
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "494af53b-8e65-4344-a1b8-12d7f749f80f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        1680
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ab0e7c43-e906-4491-bad6-aefe936ca659",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        1152
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fc9cdfbd-d7c8-4c9c-94f1-a896a55438ac",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fb2f6e8c-d9a7-41c8-99f5-870e476ff324",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2000,
        928
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "70aafec5-a21c-4e48-a2e8-6c7d7f4e7a8d",
      "name": "Download Image - FB Story",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1568
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dc6de5c8-deeb-4817-bd79-c8fd9bf8825e",
      "name": "Download Image - FB Feed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1408
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a216c29e-399e-4eaf-985a-96a92c5bd3a6",
      "name": "Download Image - IG Feed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1744
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "43ce3bc4-507f-4acf-a498-4f85c7128712",
      "name": "Download Image - IG Story",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1920
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dc0afe50-d7c8-41e4-a4fc-ef13af1a4b7e",
      "name": "Download Image - IG Reel",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        2096
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "16cc7386-cc22-4674-9574-fc2194857ffa",
      "name": "Download Image - Pinterest Pin",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        2288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e2e099c8-f1f4-41fd-a9b6-bab6f52c5ca8",
      "name": "Download Image - Pinterest Story",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        2496
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6603718a-a36c-4c6e-91ed-2bbc896e7663",
      "name": "Scrape One Page via Firecrawl - user /scrape endpoint",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1792,
        1936
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "81c90324-2bc2-46d7-9f49-a5c580348bbb",
      "name": "Prompt Generation With AI",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        -1376,
        1936
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0a4c3fa6-7292-49ed-a1e1-dcd0f8eacc26",
      "name": "Set AI Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        -1024,
        1936
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "09829502-4e16-4455-9f43-cc8594f2980a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bda37928-dd32-4b3b-bb76-5be9d5037e06",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        1504
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f6159a23-b287-4221-9525-086cddf33f3a",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        1760
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3bc6a51f-8abd-4f98-a993-bc2a5443fa05",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Set AI Prompt": {
      "main": [
        [
          {
            "node": "\ud83d\udd00 Route by Dimensions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83d\udcdd Form Trigger": {
      "main": [
        [
          {
            "node": "Scrape One Page via Firecrawl - user /scrape endpoint",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 FB Feed (1200x630)": {
      "main": [
        [
          {
            "node": "Download Image - FB Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - FB Feed": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send FB Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - IG Feed": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send IG Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - IG Reel": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send IG Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 IG Feed (1080x1080)": {
      "main": [
        [
          {
            "node": "Download Image - IG Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 IG Reel (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - IG Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83d\udd00 Route by Dimensions": {
      "main": [
        [
          {
            "node": "\ud83c\udfa8 FB Feed (1200x630)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\ud83c\udfa8 FB Story (1080x1920)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\ud83c\udfa8 IG Feed (1080x1080)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\ud83c\udfa8 IG Story (1080x1920)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\ud83c\udfa8 IG Reel (1080x1920)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\ud83c\udfa8 Pinterest Pin (1000x1500)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\ud83c\udfa8 Pinterest Story (1080x1920)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - FB Story": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send FB Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - IG Story": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send IG Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Generation With AI": {
      "main": [
        [
          {
            "node": "Set AI Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 FB Story (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - FB Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 IG Story (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - IG Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - Pinterest Pin": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send Pinterest Pin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 Pinterest Pin (1000x1500)": {
      "main": [
        [
          {
            "node": "Download Image - Pinterest Pin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - Pinterest Story": {
      "main": [
        [
          {
            "node": "\ud83d\udce4 Send Pinterest Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud83c\udfa8 Pinterest Story (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - Pinterest Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape One Page via Firecrawl - user /scrape endpoint": {
      "main": [
        [
          {
            "node": "Prompt Generation With AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow empowers marketing teams, agencies and solopreneurs to instantly generate on-brand, platform-optimized social media ads — without designers or complex setup. Running performance marketing campaigns A/B testing ad creatives Scaling content for multiple platforms…

Source: https://n8n.io/workflows/9388/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

[](https://drive.google.com/file/d/1Cl0KwgRgcuBPVdGgL-nqAcheyvfVXttD/view) Click on the image to see the Example output in google drive

HTTP Request, Stop And Error, OpenAI +3
AI & RAG

Understand your customers before you build for them. This workflow, Market Segmentation: Buyer Persona Pain Point Report, automates the grueling process of primary market research. By scraping real-wo

Form Trigger, Google Gemini, N8N Nodes Olostep +3
AI & RAG

This workflow is an AI-powered lighting and look development pipeline designed for VFX production. It transforms a single lighting brief into multiple high-quality cinematic lighting references using

Form Trigger, HTTP Request, Google Drive +4
AI & RAG

Stop spending hours manually repurposing long-form content. The Content Atomizer.json workflow takes a single article URL and automatically "atomizes" it into high-authority LinkedIn posts, Twitter (X

Form Trigger, Google Gemini, N8N Nodes Olostep +2
AI & RAG

This n8n template automatically generates high-quality sales battle cards for any prospect company using real-time research and AI. It analyzes company news, website content, and your product’s value

N8N Nodes Olostep, Google Gemini, Form Trigger +2