8
n8n 中文网amn8n.com

n8n(AI驱动的Shopify博客自动化)

高级

这是一个AI领域的自动化工作流,包含 22 个节点。主要使用 Wait, Slack, Shopify, HttpRequest, ManualTrigger 等节点,结合人工智能技术实现智能自动化。 使用AI为Shopify产品自动生成问题导向的博客文章

前置要求
  • Slack Bot Token 或 Webhook URL
  • Shopify Admin API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "rVCbug44PE4NbGEu",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "name": "n8n(AI 驱动的 Shopify 博客自动化)",
  "tags": [],
  "nodes": [
    {
      "id": "a4c17ff5-ef96-48e8-9198-d578fd0aead6",
      "name": "开始",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -460,
        -560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "039a3952-342f-48d9-b5c5-6cc167bfc7ee",
      "name": "发布博客文章",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1300,
        -360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "36a57759-3595-42d2-9ae4-c00195a065e9",
      "name": "处理延迟",
      "type": "n8n-nodes-base.wait",
      "position": [
        1060,
        -360
      ],
      "webhookId": "6a6836c7-143a-4a43-a9a6-a3298864970d",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "fea56c6a-2efb-4d62-8448-234092bab590",
      "name": "检索博客配置",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        -360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e1934dbb-ad5b-43c9-b9b2-8305fbbad9d1",
      "name": "上传到图像主机",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        820,
        -360
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a8fed918-a3b7-4dc1-bfb4-481ec2588282",
      "name": "AI 内容生成器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        20,
        -360
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "f26fb1c2-4f62-4769-aee0-aca2f33afbcf",
      "name": "获取产品数据",
      "type": "n8n-nodes-base.shopify",
      "position": [
        -160,
        -360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "864cffa4-cc18-4659-844b-2e6e8afd7cb1",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        20,
        -200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "585798c8-2ae7-4c79-b915-e4e0fb72c1e4",
      "name": "输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        180,
        -200
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "1801538d-2175-443f-8d90-2903ca3d6554",
      "name": "产品创建时",
      "type": "n8n-nodes-base.shopifyTrigger",
      "position": [
        -460,
        -360
      ],
      "webhookId": "7d1e4f1e-73e4-4138-a460-de4d0f01a94c",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "db48c417-2c01-4f1f-b84f-46023d3853b9",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1320,
        -700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9cfa48a3-2a44-422c-a6a3-fb625a2b5446",
      "name": "AI 图像生成器",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        600,
        -360
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "e6d82c54-5ff6-47b6-b0dc-2d47ae56979f",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3da060cb-64b3-47e7-87ff-1e2d1597890e",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9c03d91c-8bca-4c4a-815c-4c5fd795c66c",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "17049232-4a30-482b-9d0c-2529f1d0e82e",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "17425395-954f-43d6-ae9a-cef1e7d22f1d",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "206ea900-2d8e-44eb-8e37-e9277fc39f08",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1880,
        -700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "56eeeb01-0401-4710-9770-6e43c1aa0353",
      "name": "通知:已发布",
      "type": "n8n-nodes-base.slack",
      "disabled": true,
      "position": [
        1520,
        -360
      ],
      "webhookId": "0dbe71e3-d113-4e62-bcd7-506fc149f6a2",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "917a43dc-b6e6-489c-9d30-7b4c1d6fc4f0",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d796b874-c2bf-4f40-89a9-45df036c6b93",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c175d406-3413-4845-b6c1-fbbd7c4bca35",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "48016090-d565-4327-ac34-8e27233acb7d",
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Fetch Product Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "AI Content Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Content Generator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Processing Delay": {
      "main": [
        [
          {
            "node": "Publish Blog Article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Image Generator": {
      "main": [
        [
          {
            "node": "Upload to Image Host",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Product Data": {
      "main": [
        [
          {
            "node": "AI Content Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On Product Created": {
      "main": [
        [
          {
            "node": "Fetch Product Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Content Generator": {
      "main": [
        [
          {
            "node": "Retrieve Blog Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish Blog Article": {
      "main": [
        [
          {
            "node": "Notify: Published",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Image Host": {
      "main": [
        [
          {
            "node": "Processing Delay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Blog Configuration": {
      "main": [
        [
          {
            "node": "AI Image Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流