8
n8n 中文网amn8n.com

Shopify购买后通过邮件发送个性化产品推荐

中级

这是一个Social Media领域的自动化工作流,包含 12 个节点。主要使用 If, Code, Wait, Merge, Shopify 等节点。 Shopify购买后通过邮件发送个性化产品推荐

前置要求
  • Shopify Admin API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc"
  },
  "nodes": [
    {
      "id": "eb7a7d59-909a-4f67-8494-c30382677ed6",
      "name": "订单创建触发器",
      "type": "n8n-nodes-base.shopifyTrigger",
      "position": [
        432,
        400
      ],
      "webhookId": "order-upsell-webhook",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d81c2bcd-30e6-4773-a006-e43c54d820ad",
      "name": "等待 10 分钟",
      "type": "n8n-nodes-base.wait",
      "position": [
        624,
        400
      ],
      "webhookId": "d48d9277-4e9c-4237-8f2b-adb771ea8dd2",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8e416cac-b423-4b2f-8e9d-f5d01f842998",
      "name": "生成推荐 ID",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        400
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a752436a-3915-4e0b-aeae-ee25394fabf0",
      "name": "如果存在推荐",
      "type": "n8n-nodes-base.if",
      "position": [
        1024,
        400
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "dfcc208c-9e4e-4345-a381-49844fc8d09e",
      "name": "拆分推荐产品",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1264,
        288
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "0ead3deb-4ba2-4770-9e4e-dc2887064be3",
      "name": "获取产品详情",
      "type": "n8n-nodes-base.shopify",
      "position": [
        1472,
        288
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "41b7b7b9-f85b-4884-8b0a-ea7fcb81970e",
      "name": "合并产品详情 (v3.2)",
      "type": "n8n-nodes-base.merge",
      "position": [
        1664,
        288
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "77521698-b12b-4231-b1dd-c29f5777896f",
      "name": "格式化推荐 HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        1872,
        288
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8591bf4c-53ca-404a-9a0a-6019ad205b1d",
      "name": "发送追加销售邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2144,
        288
      ],
      "webhookId": "4428bd0d-ab9c-4580-a656-230f0b6ee219",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "73ecb5d4-aa6b-42fc-b445-5d5e50ccefa2",
      "name": "工作流信息",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        -416
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "2916081a-1359-454c-944b-5ad08bf4873c",
      "name": "功能与配置",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -128
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "a9fa8be1-7807-477f-88e4-78200c51ec54",
      "name": "商业价值",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -160
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Wait 10 Minutes": {
      "main": [
        [
          {
            "node": "Generate Recommendation IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Product Details": {
      "main": [
        [
          {
            "node": "Merge Product Details (v3.2)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Order Created Trigger": {
      "main": [
        [
          {
            "node": "Wait 10 Minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Recommendations Exist": {
      "main": [
        [
          {
            "node": "Split Recommended Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Recommended Products": {
      "main": [
        [
          {
            "node": "Get Product Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Recommendations HTML": {
      "main": [
        [
          {
            "node": "Send Upsell Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Recommendation IDs": {
      "main": [
        [
          {
            "node": "If Recommendations Exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Product Details (v3.2)": {
      "main": [
        [
          {
            "node": "Format Recommendations HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 社交媒体

需要付费吗?

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

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

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

作者
David Olusola

David Olusola

@dae221

I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - david@daexai.com

外部链接
在 n8n.io 查看

分享此工作流