{
  "name": "Identify and notify WooCommerce VIP customers with Airtable and Slack",
  "nodes": [
    {
      "id": "ebef1b4a-6f48-4588-93f1-74e3caa2f0f8",
      "name": "Scheduled Check for New Orders",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -4176,
        -1072
      ]
    },
    {
      "id": "8481e4f1-3278-405a-98b1-905ad3ed73cb",
      "name": "Set WooCommerce Domain",
      "type": "n8n-nodes-base.set",
      "position": [
        -3952,
        -1072
      ]
    },
    {
      "id": "f860b654-71a8-4ef6-b60b-8eeac683aa75",
      "name": "Fetch Orders",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3808,
        -1072
      ]
    },
    {
      "id": "63256274-c16f-4837-9b6e-cfdec28e144a",
      "name": "Filter Completed & Processing Orders",
      "type": "n8n-nodes-base.if",
      "position": [
        -3664,
        -1072
      ]
    },
    {
      "id": "d98d0a39-59a8-40d0-aa58-f68359ed2584",
      "name": "Format order data",
      "type": "n8n-nodes-base.set",
      "position": [
        -3408,
        -1136
      ]
    },
    {
      "id": "f54f6a18-7092-4c82-8d37-6489b9e99da9",
      "name": "Deduplicate Customers",
      "type": "n8n-nodes-base.code",
      "position": [
        -3232,
        -1136
      ]
    },
    {
      "id": "d7df71bd-6157-47dc-bf2b-0b7a4599997b",
      "name": "Fetch Customer Orders",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3040,
        -1136
      ]
    },
    {
      "id": "ea8f201a-4d47-425b-bcca-0ca383b89cd6",
      "name": "Calculate VIP Tier",
      "type": "n8n-nodes-base.code",
      "position": [
        -2864,
        -1136
      ]
    },
    {
      "id": "95f31115-430e-4233-9434-3eee435a6f46",
      "name": "Check VIP Eligibility",
      "type": "n8n-nodes-base.if",
      "position": [
        -2592,
        -1248
      ]
    },
    {
      "id": "e94b1a94-4e0f-4030-8c0f-0d77cdfa9012",
      "name": "Save VIP Customer",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -2336,
        -1264
      ]
    },
    {
      "id": "c470f2b6-5847-48b3-8237-a41c5d432338",
      "name": "Notify Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        -2080,
        -1264
      ]
    },
    {
      "id": "f9a25b40-f306-4a26-9ff1-4f8d209d6839",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4240,
        -1136
      ],
      "parameters": {
        "width": 224,
        "height": 224,
        "content": "Triggers the workflow automatically at a set interval (minutes)."
      }
    },
    {
      "id": "d1d48b6c-d0de-443a-82bd-9af4ef03be1c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4000,
        -1200
      ],
      "parameters": {
        "width": 496,
        "height": 304,
        "content": "## Fetch and Filter WooCommerce Orders\nThis process retrieves all orders from the WooCommerce store and filters only those that are completed or processing using the configured store domain."
      }
    },
    {
      "id": "f69b8094-5571-4779-9bce-24b5919e58bf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3472,
        -1264
      ],
      "parameters": {
        "width": 752,
        "height": 320,
        "content": "## VIP Qualification Process\nThis step cleans customer data, gathers all their past orders and decides whether they are a VIP based on how much they spent or how many orders they made."
      }
    },
    {
      "id": "65d499b6-7d1e-4494-b39d-1f3574c38272",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2672,
        -1376
      ],
      "parameters": {
        "width": 800,
        "height": 288,
        "content": "## Store & Notify VIP Customers \nThis part makes sure the customer truly qualifies as a VIP, saves their VIP details into Airtable and sends a Slack alert to notify the team."
      }
    },
    {
      "id": "cc02c62a-be91-492c-8286-fa3ea23565b3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5088,
        -1824
      ],
      "parameters": {
        "width": 448,
        "height": 688,
        "content": "## I'm a note \nThis workflow automatically finds your important (VIP) customers based on their WooCommerce orders. Every time new orders come in, it checks whether the customer has spent a lot over ti"
      }
    }
  ],
  "connections": {
    "Fetch Orders": {
      "main": [
        [
          {
            "node": "Filter Completed & Processing Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format order data": {
      "main": [
        [
          {
            "node": "Deduplicate Customers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save VIP Customer": {
      "main": [
        [
          {
            "node": "Notify Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate VIP Tier": {
      "main": [
        [
          {
            "node": "Check VIP Eligibility",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check VIP Eligibility": {
      "main": [
        [
          {
            "node": "Save VIP Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deduplicate Customers": {
      "main": [
        [
          {
            "node": "Fetch Customer Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Customer Orders": {
      "main": [
        [
          {
            "node": "Calculate VIP Tier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set WooCommerce Domain": {
      "main": [
        [
          {
            "node": "Fetch Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scheduled Check for New Orders": {
      "main": [
        [
          {
            "node": "Set WooCommerce Domain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Completed & Processing Orders": {
      "main": [
        [
          {
            "node": "Format order data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}