8
n8n 中文网amn8n.com

PartnerStack/Impact → WooCommerce产品创建(GPT-4与AI图像)

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 28 个节点。主要使用 Code, Limit, Filter, EditImage, HttpRequest 等节点。 PartnerStack/Impact → WooCommerce产品创建(GPT-4与AI图像)

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "756edd6d940beae3bac5d73f6195ad11653c7ff41aab8f7d9821eef5ef3d9a97",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "0f2bbb38-df77-4833-887b-bf056a856f74",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1130f291-15ed-43dc-b7d6-c7eda5ee9e19",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        976
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "34164977-f35a-4b66-a9a2-0be4a74ec6b4",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -16
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "703c653a-3abc-4d39-9052-1996fa1e45fa",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        912,
        416
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "265105db-f71b-4d63-b283-fbf62b54ab47",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cd50a6e2-cb29-4b5f-862a-46a399414487",
      "name": "获取表格中的行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1152,
        416
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "c1557736-caa7-4726-9c04-885aa4d6314e",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        960,
        704
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9fc2abad-d856-4ac6-b587-e4894ac84001",
      "name": "在工作表中更新行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1936,
        2368
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "2a1f8074-ced3-4469-8b60-8880ca24e8bf",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        1872
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2a8dc40a-f780-4116-8ab5-99c91604f217",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        528,
        1568
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7719ebd4-388e-429d-bfa6-45ed293e3211",
      "name": "生成图片1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1840,
        1296
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "047da5f9-76ff-4ffb-9b6b-57acdac6304c",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        192,
        1568
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9c92405f-2d8f-4cec-bad8-148f22f0588d",
      "name": "发布产品到网站",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        2368
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4e4f5557-fc6d-4206-9cac-c2b12fc7aa80",
      "name": "产品基础数据",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        304,
        1280
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "c7fb6293-62cb-451b-a7c3-a85c2612d1a3",
      "name": "OpenAI 聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1248,
        1568
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "82e3db17-39fc-4579-ba4b-774810a327f7",
      "name": "图像提示生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1360,
        1280
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "45c57a2b-b84e-4da9-9789-902a1f7ede49",
      "name": "调整图片1大小",
      "type": "n8n-nodes-base.editImage",
      "disabled": true,
      "position": [
        2112,
        1504
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e8cbd9a3-dd2b-470a-bc46-3e4e7fffed31",
      "name": "详细描述撰写器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        912,
        1280
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "68f88f48-33c0-466a-992f-8e8f1fdebccd",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        832,
        1568
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "fecd35c0-598f-40b9-b96c-ab4f54471760",
      "name": "合作伙伴活跃且未发布",
      "type": "n8n-nodes-base.filter",
      "position": [
        1392,
        416
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "9b166c80-1b4d-47bd-bc8a-aaf61007de20",
      "name": "从网站获取产品详情",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        1344,
        704
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d8248599-8fd6-41c8-96a1-901c5de2ce1d",
      "name": "解析产品数据",
      "type": "n8n-nodes-base.code",
      "position": [
        2288,
        704
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "84def3f7-d9aa-4ab5-bd79-3af6b35efbe6",
      "name": "上传图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        96,
        2368
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c1245318-a0d0-48a5-ac64-2df20a45c4d3",
      "name": "重命名图片",
      "type": "n8n-nodes-base.code",
      "position": [
        2320,
        1616
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1544dcd0-3847-4588-a042-06320eaf285d",
      "name": "更新图片元数据",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        416,
        2368
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6fbedd07-c191-492d-b735-b51304b54744",
      "name": "更新产品图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1200,
        2368
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "540f58a1-0a3a-42bb-84a6-6ae79b365721",
      "name": "更新产品类别",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1568,
        2368
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6d349ff8-2520-4b39-bc75-83dcc7f9bb25",
      "name": "更新关于错误",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1712,
        768
      ],
      "parameters": {},
      "typeVersion": 4.7
    }
  ],
  "pinData": {},
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Get Product Details from Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rename Image": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Update Image Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Resize Image1": {
      "main": [
        [
          {
            "node": "Rename Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Product Basic Data",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Image Prompt Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Detailed Descriptoin Writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse Product Data": {
      "main": [
        [
          {
            "node": "Product Basic Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Basic Data": {
      "main": [
        [
          {
            "node": "Detailed Descriptoin Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate and Image1": {
      "main": [
        [
          {
            "node": "Resize Image1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Partnership Active and Not Published",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Product Image": {
      "main": [
        [
          {
            "node": "Update Product Category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Image Metadata": {
      "main": [
        [
          {
            "node": "Publish Product to Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Generator": {
      "main": [
        [
          {
            "node": "Generate and Image1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Product Category": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Product Basic Data",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Publish Product to Website": {
      "main": [
        [
          {
            "node": "Update Product Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detailed Descriptoin Writer": {
      "main": [
        [
          {
            "node": "Image Prompt Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Product Details from Website": {
      "main": [
        [
          {
            "node": "Parse Product Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update about Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Partnership Active and Not Published": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Amjid Ali

Amjid Ali

@amjid

I'm Amjid Ali, a CIO and automation expert with 25+ years in IT and digital transformation. I specialize in building AI-powered, low-code workflows using n8n to automate ERP, finance, reporting, and customer support processes. As the founder of SyncBricks, author of "Mastering n8n," and creator of online courses, I share practical automation solutions to help businesses scale efficiently and innovate with confidence.

外部链接
在 n8n.io 查看

分享此工作流