8
n8n 中文网amn8n.com

使用 Gemini 和 Ideogram AI 通过网站抓取为 FB、IG 和 Pinterest 生成社交媒体广告

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 38 个节点。主要使用 Set, Slack, Switch, FormTrigger, HttpRequest 等节点。 使用 Gemini 和 Ideogram AI 通过网站抓取为 FB、IG 和 Pinterest 生成社交媒体广告

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "76f564ce9e1f496ea6c3533f155d5217a31a74b1b62bea30c37742947aa7de7c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "e698b84d-ecea-45ac-8adf-44c4ca9b4186",
      "name": "📝 表单触发器",
      "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
      ],
      "webhookId": "ad-generator-form",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "aa94cc31-5e90-4dc1-98a1-c68810048d1c",
      "name": "🔀 按维度路由",
      "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": "🎨 FB信息流(1200x630)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1408
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "50d95aa5-886d-4c11-baa1-d872610625d3",
      "name": "🎨 FB快拍(1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1568
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f03474c7-fb4f-4bb4-8f6f-e47b4b5fa4d8",
      "name": "🎨 IG信息流(1080x1080)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1744
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "50bd7169-4d72-4126-a221-23452638b500",
      "name": "🎨 IG快拍(1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1920
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "eb1111d4-61de-4d8b-aa37-384c05085b86",
      "name": "🎨 IG Reels(1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        2096
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "fc1e610b-4fdf-46b6-a9f7-e31894e0a153",
      "name": "🎨 Pinterest Pin(1000x1500)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        2288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5a709c1a-8e89-4272-891d-f3626674e517",
      "name": "🎨 Pinterest快拍(1080x1920)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        2496
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "da59cfac-46a2-4ae8-9354-7ae7c5c07217",
      "name": "📤 发送FB信息流",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1408
      ],
      "webhookId": "677a96b2-88e5-4e5c-a533-af31f0674210",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "d93530d1-564a-4301-b97d-32b62909bfe7",
      "name": "📤 发送FB快拍",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1568
      ],
      "webhookId": "45d93717-2306-43bb-8619-3cda12903b9a",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "59e5cb38-31d4-4022-a6c6-87afd24316e7",
      "name": "📤 发送IG信息流",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1744
      ],
      "webhookId": "cc5a7a71-eff8-42be-b1cd-e05294709d9b",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "f98f5d48-99ce-4495-8a8f-383be18080e7",
      "name": "📤 发送IG快拍",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        1920
      ],
      "webhookId": "b6d2dfd6-cb61-49d1-a3ee-ac9d30e80b5e",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "f9d74b85-6680-44b8-adc0-5f38fcf6b5e9",
      "name": "📤 发送IG Reels",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        2096
      ],
      "webhookId": "3fe6fdf8-71c4-4f1f-b752-fdf7a2778b42",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "68df8368-0bbe-477d-bbe5-75496d9974c1",
      "name": "📤 发送Pinterest Pin",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        2288
      ],
      "webhookId": "41508eff-34dc-4e71-862d-2552b65d889a",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "1125c1ff-3d21-4dc6-a895-d8f8163943b1",
      "name": "📤 发送Pinterest快拍",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        2496
      ],
      "webhookId": "5ac5947d-872a-459d-8193-20f9910ded26",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "8ba41edc-7287-442a-a4ff-311289f56613",
      "name": "便利贴11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2384,
        2144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d09a7813-c84b-4ff1-9424-59e8900151ac",
      "name": "便利贴12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        2144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "40fdfe1a-345c-4fb6-b70f-71e2dae97d61",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2400,
        928
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d027ed57-9dce-4b02-b6b0-ae59ffd7a2ad",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2384,
        1744
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "494af53b-8e65-4344-a1b8-12d7f749f80f",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        1680
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ab0e7c43-e906-4491-bad6-aefe936ca659",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        1152
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fc9cdfbd-d7c8-4c9c-94f1-a896a55438ac",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fb2f6e8c-d9a7-41c8-99f5-870e476ff324",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2000,
        928
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "70aafec5-a21c-4e48-a2e8-6c7d7f4e7a8d",
      "name": "下载图片-FB快拍",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1568
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dc6de5c8-deeb-4817-bd79-c8fd9bf8825e",
      "name": "下载图片-FB信息流",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1408
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a216c29e-399e-4eaf-985a-96a92c5bd3a6",
      "name": "下载图片-IG信息流",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1744
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "43ce3bc4-507f-4acf-a498-4f85c7128712",
      "name": "下载图片-IG快拍",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        1920
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dc0afe50-d7c8-41e4-a4fc-ef13af1a4b7e",
      "name": "下载图片-IG Reels",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        2096
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "16cc7386-cc22-4674-9574-fc2194857ffa",
      "name": "下载图片-Pinterest Pin",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        2288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e2e099c8-f1f4-41fd-a9b6-bab6f52c5ca8",
      "name": "下载图片-Pinterest快拍",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        2496
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6603718a-a36c-4c6e-91ed-2bbc896e7663",
      "name": "通过Firecrawl爬取单页-使用/scrape端点",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1792,
        1936
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "81c90324-2bc2-46d7-9f49-a5c580348bbb",
      "name": "使用AI生成提示",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        -1376,
        1936
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0a4c3fa6-7292-49ed-a1e1-dcd0f8eacc26",
      "name": "设置AI提示",
      "type": "n8n-nodes-base.set",
      "position": [
        -1024,
        1936
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "09829502-4e16-4455-9f43-cc8594f2980a",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bda37928-dd32-4b3b-bb76-5be9d5037e06",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        1504
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f6159a23-b287-4221-9525-086cddf33f3a",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        1760
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3bc6a51f-8abd-4f98-a993-bc2a5443fa05",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Set AI Prompt": {
      "main": [
        [
          {
            "node": "🔀 Route by Dimensions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Form Trigger": {
      "main": [
        [
          {
            "node": "Scrape One Page via Firecrawl - user /scrape endpoint",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 FB Feed (1200x630)": {
      "main": [
        [
          {
            "node": "Download Image - FB Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - FB Feed": {
      "main": [
        [
          {
            "node": "📤 Send FB Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - IG Feed": {
      "main": [
        [
          {
            "node": "📤 Send IG Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - IG Reel": {
      "main": [
        [
          {
            "node": "📤 Send IG Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 IG Feed (1080x1080)": {
      "main": [
        [
          {
            "node": "Download Image - IG Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 IG Reel (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - IG Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔀 Route by Dimensions": {
      "main": [
        [
          {
            "node": "🎨 FB Feed (1200x630)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🎨 FB Story (1080x1920)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🎨 IG Feed (1080x1080)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🎨 IG Story (1080x1920)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🎨 IG Reel (1080x1920)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🎨 Pinterest Pin (1000x1500)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🎨 Pinterest Story (1080x1920)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - FB Story": {
      "main": [
        [
          {
            "node": "📤 Send FB Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - IG Story": {
      "main": [
        [
          {
            "node": "📤 Send IG Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Generation With AI": {
      "main": [
        [
          {
            "node": "Set AI Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 FB Story (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - FB Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 IG Story (1080x1920)": {
      "main": [
        [
          {
            "node": "Download Image - IG Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - Pinterest Pin": {
      "main": [
        [
          {
            "node": "📤 Send Pinterest Pin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 Pinterest Pin (1000x1500)": {
      "main": [
        [
          {
            "node": "Download Image - Pinterest Pin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image - Pinterest Story": {
      "main": [
        [
          {
            "node": "📤 Send Pinterest Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🎨 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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量38
分类2
节点类型7
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流