8
n8n 中文网amn8n.com

WooCommerce 连接器 - Vivek

高级

这是一个CRM, Multimodal AI领域的自动化工作流,包含 47 个节点。主要使用 If, Set, Code, Odoo, Switch 等节点。 将 WooCommerce 订单、产品和客户与 Odoo 同步

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "FiP7kJNDMc4TUq7X",
  "meta": {
    "instanceId": "6b3e8c6c30cdfbf06283a3fa57016932c6b4ec959896c5c546ef5865ff697ff1",
    "templateCredsSetupCompleted": true
  },
  "name": "WooCommerce连接器 - Vivek",
  "tags": [],
  "nodes": [
    {
      "id": "8e4ee2f4-3aed-47c0-9fc0-5f76c3ffbaec",
      "name": "WooCommerce触发器订单创建",
      "type": "n8n-nodes-base.wooCommerceTrigger",
      "position": [
        -416,
        1584
      ],
      "webhookId": "7a913e6c-ed75-4959-bdf0-29b9c54b018d",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "99a8f70d-29c5-4dd1-9e44-115ac7d5d1bc",
      "name": "代码3",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        2848
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "4b6e3afd-e292-47db-9ad4-56e514da7b7b",
      "name": "拆分输出3",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        736,
        2848
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5132422c-b55d-4a06-8a0e-3fd4085efdb8",
      "name": "销售订单行1",
      "type": "n8n-nodes-base.odoo",
      "position": [
        1472,
        2960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "84604932-24fc-4885-b3ab-04f7f22040c9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        1536
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9cdcfef3-b61a-44e8-b0c8-f215ccec6537",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        2080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7843d3e2-cc9e-4777-83b2-80bcb4b45ef4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        2720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "785f97b9-f630-4139-b172-c56deaff6c20",
      "name": "Search Odoo Contact",
      "type": "n8n-nodes-base.odoo",
      "onError": "continueRegularOutput",
      "position": [
        624,
        1712
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "d343d156-fdfc-4bfe-8212-df9aec9c9d0d",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        1632
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5f1a6ae3-7184-4307-a30e-d5d0f4dd643b",
      "name": "Check email is exist",
      "type": "n8n-nodes-base.switch",
      "position": [
        64,
        1696
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "08983c23-4a50-4676-a35a-6c9d90fef0bb",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        352,
        1600
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "fe7002e6-afe8-428e-9784-255e02c238fb",
      "name": "Create contact",
      "type": "n8n-nodes-base.odoo",
      "position": [
        1424,
        1600
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "a6a10656-9cac-43cc-aa00-f62549c27234",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        1536
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8701e46e-64d3-49b0-89bc-bfff93727b90",
      "name": "Extract product details from Shopify Trigger",
      "type": "n8n-nodes-base.code",
      "position": [
        -160,
        2240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "26b114b8-77ee-40fe-afa0-d0cae40dc20d",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        2080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ef7fff36-68c1-4598-b86e-51d0776e1f97",
      "name": "Get Product",
      "type": "n8n-nodes-base.odoo",
      "position": [
        704,
        2240
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "c7383594-15d3-4e4e-b50d-b2399dbace3e",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "onError": "continueRegularOutput",
      "position": [
        304,
        2144
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "ca4ac6f6-07e6-4c55-979b-926ce49b4626",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        2080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "87ca1ec1-1c7c-46c9-abe5-3f533f93a22f",
      "name": "Split Out Line Items",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        80,
        2240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "792e6b7b-972b-46df-bac6-75e180c5fad4",
      "name": "Create an item",
      "type": "n8n-nodes-base.odoo",
      "position": [
        1200,
        2272
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "88f3fd1e-0876-469a-ae3a-c97199b2f2d6",
      "name": "Code6",
      "type": "n8n-nodes-base.code",
      "position": [
        1392,
        2240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3d122c7a-9fcf-4480-8954-696cd39aa929",
      "name": "Check Product Exist1",
      "type": "n8n-nodes-base.if",
      "position": [
        944,
        2160
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "0ec61330-2e85-42d2-9f39-df4506147780",
      "name": "Get many items1",
      "type": "n8n-nodes-base.odoo",
      "position": [
        80,
        2848
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "bdce386b-a1ba-471e-b1bb-b06e9df66ecc",
      "name": "Get Product Variant",
      "type": "n8n-nodes-base.odoo",
      "position": [
        1248,
        2960
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "9926ba07-aaba-49d6-8f4f-1eceb5affac6",
      "name": "Create Sales Order",
      "type": "n8n-nodes-base.odoo",
      "position": [
        304,
        2848
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cd14ef64-e3ec-408d-95bb-4f76ae5d83e1",
      "name": "Only for product response not used",
      "type": "n8n-nodes-base.code",
      "position": [
        -224,
        2848
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "00ddcaf4-fb63-44da-9ae4-f8d5d71aa3fc",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        2720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d8292d03-1ccb-432e-98d8-1c455afdd5e0",
      "name": "Response and move next",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        2272
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9bb7fea7-62d9-4ed7-891c-fc8d58ae7ee0",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1136,
        1696
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "3c98b804-5de5-44f9-bdb3-221c6bd4d688",
      "name": "Code5",
      "type": "n8n-nodes-base.code",
      "position": [
        1472,
        2720
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "94770c45-079c-47c0-9c3c-92776f16c0fd",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1728,
        2720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "661804d4-e011-4bcd-9e04-bc8e858b1e1b",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        1488
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a597a78d-a41d-4d03-86c6-b5dbea984233",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        2592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "06cbddd9-a48a-4999-9936-7d9702637b85",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        1536
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b0c8b686-fda2-49aa-88e8-25662f821024",
      "name": "Loop Over Items2",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        944,
        2848
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "317bddd8-3367-4af2-9ae5-f83b786c1809",
      "name": "Replace Me1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1712,
        2960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "00d449e4-f463-45a1-9a28-ceb183063cb1",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        1536
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bc65b8ce-a98c-415a-881c-2d2459df7887",
      "name": "Code8",
      "type": "n8n-nodes-base.code",
      "position": [
        1712,
        1712
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5c8ac835-420a-43b9-abfb-60889ee92c2d",
      "name": "Sticky Note22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        1536
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "84fe7bef-f2a3-407d-9ae9-3c9a48099ab1",
      "name": "Sticky Note23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        2080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a92fb4b8-4f02-4698-aa4c-a89dbc566310",
      "name": "Sticky Note24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        2080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "de0f9c8b-04aa-4297-983c-46146ebb6fbc",
      "name": "Sticky Note25",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        2080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3b32a5c9-35e3-437d-8c43-8006e2d12439",
      "name": "Sticky Note26",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        1984
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2e8313d5-0ef0-4cbb-a9c1-1d7a35833d9f",
      "name": "Sticky Note27",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        2560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7c4167da-dab0-4396-87a4-d92ad6c73a7c",
      "name": "Edit Fields Order Details",
      "type": "n8n-nodes-base.set",
      "position": [
        -176,
        1696
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ab200c7f-ad6f-4780-b493-21d3f80109d4",
      "name": "Test Record JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        -400,
        1776
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b55a1954-c499-46b4-b7ab-c812f0a3a34b",
      "name": "Check-Email",
      "type": "n8n-nodes-base.code",
      "position": [
        880,
        1712
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d433e08a-2ec5-4185-8eb9-74357fa06867",
  "connections": {
    "Code3": {
      "main": [
        [
          {
            "node": "Split Out3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code5": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code6": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code8": {
      "main": [
        [
          {
            "node": "Extract product details from Shopify Trigger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Create contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out3": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check-Email": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Product": {
      "main": [
        [
          {
            "node": "Check Product Exist1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me1": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create an item": {
      "main": [
        [
          {
            "node": "Code6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create contact": {
      "main": [
        [
          {
            "node": "Code8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many items1": {
      "main": [
        [
          {
            "node": "Create Sales Order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Response and move next",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items2": {
      "main": [
        [
          {
            "node": "Code5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Product Variant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sale Order Line1": {
      "main": [
        [
          {
            "node": "Replace Me1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test Record JSON": {
      "main": [
        [
          {
            "node": "Edit Fields Order Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Sales Order": {
      "main": [
        [
          {
            "node": "Code3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Product Variant": {
      "main": [
        [
          {
            "node": "Sale Order Line1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Odoo Contact": {
      "main": [
        [
          {
            "node": "Check-Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Product Exist1": {
      "main": [
        [
          {
            "node": "Code6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create an item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check email is exist": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Search Odoo Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Line Items": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Response and move next": {
      "main": [
        [
          {
            "node": "Only for product response not used",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields Order Details": {
      "main": [
        [
          {
            "node": "Check email is exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WooCommerce Trigger Order Create": {
      "main": [
        [
          {
            "node": "Edit Fields Order Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only for product response not used": {
      "main": [
        [
          {
            "node": "Get many items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract product details from Shopify Trigger": {
      "main": [
        [
          {
            "node": "Split Out Line Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客户关系管理, 多模态 AI

需要付费吗?

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

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

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

作者

🚀 AI & Automation Expert | n8n Creator I specialize in building AI-powered automation and workflow solutions using n8n and no-code/low-code tools. With extensive experience in process automation, system integration, and AI-driven workflows, I help businesses streamline operations, enhance productivity, and reduce manual effort. Passionate about scalable automation that drives efficiency and growth.

外部链接
在 n8n.io 查看

分享此工作流