Magento 2:自动修复缺失图片Alt标签使用产品名称

中级

这是一个Content Creation领域的自动化工作流,包含 11 个节点。主要使用 If、Code、SplitOut、HttpRequest、ManualTrigger 等节点。 Magento 2:使用产品名称自动修复缺失图片Alt标签

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "c3b23fffea49117e798bf0289bfe84ed0e7c634b0def397db74b35f7d28d1f5f",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "e010687c-72e1-4fc7-90ae-b223f69c4595",
      "name": "获取所有产品SKU",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -840,
        -40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "889596c6-7ca8-4251-b30e-5e1404339153",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        -140
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "af866db5-df88-408f-8f8a-0188c6545809",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -940,
        -240
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "30f45e5e-a780-4430-836c-ef2cfe2aba86",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -240
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "a7cd583c-10d2-44ad-b412-2245e78b2b5d",
      "name": "点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1200,
        -40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e6319a2a-792a-4415-8ac4-792ab00b5a61",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -400,
        -40
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "71208855-2076-4556-9457-c93615bed81e",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -100,
        -140
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b3d77c82-122b-47ce-ab0b-d05269fea71d",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        200,
        -160
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b2941a02-b988-4b1c-9327-a36661e0821d",
      "name": "分离",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -620,
        -40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c886c230-37fc-416f-beb3-e3b2d0baccb7",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        520,
        -45
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f6b1538f-4805-45da-bc1b-b9c7b8be91a6",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -940,
        -440
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All Product Skus": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get All Product Skus",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个中级难度的工作流,适用于Content Creation等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

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

工作流信息
难度等级
中级
节点数量11
分类1
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Kanaka Kishore Kandregula

Kanaka Kishore Kandregula

@kmyprojects

Experienced Magento 2 Developer with 10+ years of expertise in building and optimizing eCommerce solutions. Over the past year, I’ve expanded my skills into workflow automation using n8n, streamlining business processes and integrating systems for efficiency. Passionate about solving complex problems, enhancing performance, and leveraging automation to drive smarter workflows.

外部链接
在 n8n.io 上查看 →

分享此工作流