8
n8n 中文网amn8n.com

产品+AI图片素材生成器 - Meta广告、邮件、社交媒体(使用fal.ai & Placid)

高级

这是一个AI, Marketing领域的自动化工作流,包含 40 个节点。主要使用 If, Wait, Merge, FormTrigger, GoogleDrive 等节点,结合人工智能技术实现智能自动化。 使用Google Imagen、Ideogram和Placid为广告和社交媒体创建专业营销素材

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "3knMT0G3Tu4gXFrO",
  "meta": {
    "instanceId": "0aee4372a556f3e4774323f4ed89755880cea473443f0948966509bbf55dec04",
    "templateCredsSetupCompleted": true
  },
  "name": "产品 + AI 图片素材生成器 - Meta 广告、邮件、社交媒体(使用 fal.ai & Placid)",
  "tags": [],
  "nodes": [
    {
      "id": "c6b02b7e-2abe-4731-9089-c474e57eb052",
      "name": "获取状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1180,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f9ef7f9c-ab89-49bf-982a-a874b5cb78a5",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1560,
        220
      ],
      "webhookId": "150069ed-885b-497f-a32a-09e7088136e6",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5c47297c-c9c7-403a-a5b4-271618561ccf",
      "name": "是否就绪?",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        40
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "001c0169-0ba2-40e8-b2e6-e733d07a07ef",
      "name": "获取结果",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2799853c-fa2d-4d03-9348-161773689a1a",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        -200,
        40
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "4d7efaa4-2196-4b1d-a866-049965287b59",
      "name": "获取状态1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2040,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9625a660-7442-4b0b-aa32-c41d09eeba8c",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        2420,
        220
      ],
      "webhookId": "150069ed-885b-497f-a32a-09e7088136e6",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "943068a4-cec0-4727-ade8-2d5e1ecac509",
      "name": "是否就绪?1",
      "type": "n8n-nodes-base.if",
      "position": [
        2220,
        40
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "19e7a052-7102-478f-bd64-3dbe2d83bdcc",
      "name": "获取结果1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2460,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7e8af5b2-d206-42e6-86bb-70a442e5b913",
      "name": "下载图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2900,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b4b103b0-5dc4-40bf-95df-acc88be62737",
      "name": "背景图片提示词生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -680,
        -140
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8e3d42e3-7f6c-4393-a245-0fbd26baab7f",
      "name": "文案生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -680,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "296da2e4-b03e-45f4-b1a3-750a3abdb937",
      "name": "gpt-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -700,
        400
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d03e9ba0-e89b-49de-8b0c-22b484e7282c",
      "name": "gpt-4.1-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -680,
        40
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3021e9fd-31b5-43f0-b482-82e1b1c9881f",
      "name": "背景提示词输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -480,
        40
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "362716f9-900f-46b6-bc4b-57697c0ed661",
      "name": "文案输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -480,
        400
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "43e8ebfc-e731-46e6-b615-61568bd08ed1",
      "name": "Fal.ai 替换背景",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        980,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "32844609-a76f-4d38-8ba7-4fa35fd1ae66",
      "name": "Fal.ai 时段重打光",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1820,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c085a0f2-c521-413a-b4ad-944473e2cebb",
      "name": "通过 Placid.app 模板创建图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2680,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e041720f-c176-48b3-b82b-eef0c93dbefe",
      "name": "保存到 Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3140,
        40
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "3a494c2a-be33-47eb-a661-4a7e1be79951",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1280,
        40
      ],
      "webhookId": "1b248f73-0f58-45ef-9a62-8d1052376ff5",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "104f0629-00b2-42ad-9efc-81013d1ffda5",
      "name": "获取用于上传的临时文件 URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1060,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "36e48a80-2a2e-4f06-92c5-e7b042cc7cfe",
      "name": "获取状态2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7c2e6496-7dee-450d-a520-d821175eb32f",
      "name": "等待2",
      "type": "n8n-nodes-base.wait",
      "position": [
        640,
        220
      ],
      "webhookId": "150069ed-885b-497f-a32a-09e7088136e6",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "cf957df2-de45-404c-afbf-27951440f045",
      "name": "是否就绪?2",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        40
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "84c0f8ba-4fb8-44e4-b6d1-c46eb13b75c0",
      "name": "Fal.ai Google 图像生成4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        60,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ed6efcac-6670-406b-86a1-4728fc4df1d9",
      "name": "获取风格参考图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "46480feb-1305-4ebf-af5a-067b9c15e000",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5dc6f8ed-04ba-4736-9b16-43ca7ef07922",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ac1a7234-c7cc-4c12-9ee3-ac87575545a6",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        -780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "245b0f0d-1d49-4921-b7d5-07d7edb639e9",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2660,
        -780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2ebd7c80-fbf9-4dd0-9a8a-b12eb3509c02",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1700,
        -780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0e0e8f53-23d2-4a53-b29c-b44f19d8c5cc",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1700,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "09c82d0e-9bc5-4642-a687-d06c510bded2",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "607c7ad0-c448-40f4-82f0-b3948ef61722",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5c2b42d2-6c91-4ce7-9a5d-f4f99fe9fdaf",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "140df2ce-0aa8-4e6d-8505-198d3fa3ad21",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bf2140b2-ba69-4434-8818-c4a81a264ea3",
      "name": "便签 10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2660,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e6ca7809-1920-4d86-9bcc-fa1d748d456f",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3520,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5417dfd5-e06e-49d3-a830-44f98e86312c",
      "name": "便签 12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7e99b029-7d77-43aa-8214-d5889eb792f0",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Fetch Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Fal.ai Google Image Gen4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Fetch Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Fetch Status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Ready?": {
      "main": [
        [
          {
            "node": "Fetch Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Ready?1": {
      "main": [
        [
          {
            "node": "Fetch Result1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Ready?2": {
      "main": [
        [
          {
            "node": "Fetch Style Reference Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Copywriting Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Result": {
      "main": [
        [
          {
            "node": "Fal.ai Time of Day Relight",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status": {
      "main": [
        [
          {
            "node": "Is Ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4.1-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Background Image Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Result1": {
      "main": [
        [
          {
            "node": "Create Image via Template with Placid.app",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status1": {
      "main": [
        [
          {
            "node": "Is Ready?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status2": {
      "main": [
        [
          {
            "node": "Is Ready?2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Save to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Copywriting Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Copy Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Copywriting Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Get a temporary file url for the upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Google Drive": {
      "main": [
        []
      ]
    },
    "BG Prompt Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Background Image Prompt Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fal.ai Google Image Gen4": {
      "main": [
        [
          {
            "node": "Fetch Status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fal.ai Replace Background": {
      "main": [
        [
          {
            "node": "Fetch Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fal.ai Time of Day Relight": {
      "main": [
        [
          {
            "node": "Fetch Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Style Reference Image": {
      "main": [
        [
          {
            "node": "Fal.ai Replace Background",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Background Image Prompt Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a temporary file url for the upload": {
      "main": [
        [
          {
            "node": "Background Image Prompt Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Copywriting Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image via Template with Placid.app": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流