{
  "name": "Sync Adobe Commerce Customer Data to KlickTipp with Value-Based Tagging",
  "nodes": [
    {
      "id": "bdd6c077-4637-4a1b-abde-5a71f5a90eda",
      "name": "Tag contact for high-value order",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        1648,
        -128
      ]
    },
    {
      "id": "aad62cd5-8160-4573-b8c3-0ade16c952a1",
      "name": "Tag contact for clothing purchase",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        1648,
        64
      ]
    },
    {
      "id": "038a339e-323d-4829-a0fc-1da5b24df7bd",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        176,
        176
      ]
    },
    {
      "id": "bdfafcfb-e780-42d0-9b84-1c6c957d8aae",
      "name": "Route by SKU and total amount",
      "type": "n8n-nodes-base.switch",
      "position": [
        1344,
        -48
      ]
    },
    {
      "id": "d8262afb-d24e-484c-9132-9985fa325b75",
      "name": "Get Adobe Commerce orders",
      "type": "n8n-nodes-base.magento2",
      "position": [
        368,
        -48
      ]
    },
    {
      "id": "f499199f-ec8d-4985-a5ff-90938b02f96f",
      "name": "Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        -240
      ],
      "parameters": {
        "width": 688,
        "height": 752,
        "content": "Community Node Disclaimer: This workflow uses KlickTipp community nodes.\n\n## Introduction\nThis workflow monitors orders and customers in Adobe Commerce, automatically creating or updating contacts in "
      }
    },
    {
      "id": "cce7e8d3-7b57-4565-8335-70002f341046",
      "name": "5. Contact tagging",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        -240
      ],
      "parameters": {
        "width": 272,
        "height": 952,
        "content": "## 5. Contact tagging"
      }
    },
    {
      "id": "2a7aadec-0257-4fad-9e06-870eafff054f",
      "name": "4. Routing for tagging",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1248,
        -240
      ],
      "parameters": {
        "width": 304,
        "height": 952,
        "content": "## 4. Routing for tagging"
      }
    },
    {
      "id": "6c2240fa-9841-4126-b5e0-2f9a5db40c27",
      "name": "3. Data saving",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        -240
      ],
      "parameters": {
        "width": 320,
        "height": 952,
        "content": "## 3. Data saving"
      }
    },
    {
      "id": "1ccf8c40-8133-4240-a38a-423ed598633c",
      "name": "Get Adobe Commerce customers",
      "type": "n8n-nodes-base.magento2",
      "position": [
        368,
        384
      ]
    },
    {
      "id": "c4dbb9ba-8709-4a0b-bc48-bf6987269464",
      "name": "1. Data reception",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -240
      ],
      "parameters": {
        "width": 428,
        "height": 952,
        "content": "## 1. Data reception"
      }
    },
    {
      "id": "9a45101d-d4bb-4d53-b6da-48a6716a79ae",
      "name": "2. Check for contact",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        -240
      ],
      "parameters": {
        "width": 320,
        "height": 952,
        "content": "## 2. Check for contact"
      }
    },
    {
      "id": "f11421c2-5b0b-4a25-90ea-b56d4be7439a",
      "name": "Check if customer exists as contact",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        688,
        384
      ]
    },
    {
      "id": "e569a7a0-2ce3-442f-90b1-973d03dc6d92",
      "name": "Transfer order data to KlickTipp with DOI",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        1008,
        -48
      ]
    },
    {
      "id": "b2330c7d-0210-4568-885b-abb46edc2c14",
      "name": "Transfer customer to KlickTipp with SOI",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        1008,
        496
      ]
    },
    {
      "id": "efc181df-6578-40dc-ba31-60391c3ac10e",
      "name": "Update customer in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        1008,
        288
      ]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Adobe Commerce orders",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Adobe Commerce customers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Adobe Commerce orders": {
      "main": [
        [
          {
            "node": "Transfer order data to KlickTipp with DOI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Adobe Commerce customers": {
      "main": [
        [
          {
            "node": "Check if customer exists as contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by SKU and total amount": {
      "main": [
        [
          {
            "node": "Tag contact for high-value order",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag contact for clothing purchase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if customer exists as contact": {
      "main": [
        [
          {
            "node": "Update customer in KlickTipp",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Transfer customer to KlickTipp with SOI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transfer order data to KlickTipp with DOI": {
      "main": [
        [
          {
            "node": "Route by SKU and total amount",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}