{
  "id": "UKluUCTyo3t8l8GF",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "VIP order Alert",
  "tags": [],
  "nodes": [
    {
      "id": "00ada32a-f2d5-43ea-816d-d2412a5cc014",
      "name": "IF High Value Order",
      "type": "n8n-nodes-base.if",
      "position": [
        -416,
        32
      ],
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{ $json.body.salesorder.total }}",
              "value2": 10000,
              "operation": "larger"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3afa07be-d5da-4727-a5d9-cdbc693dc41e",
      "name": "CRM Update VIP Tag",
      "type": "n8n-nodes-base.zohoCrm",
      "position": [
        -192,
        32
      ],
      "parameters": {
        "subject": "Vip order",
        "resource": "purchaseOrder",
        "operation": "upsert",
        "Product_Details": [],
        "additionalFields": {}
      },
      "credentials": {
        "zohoOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b943b9e2-ef37-4609-bac6-1fee6b266126",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -640,
        32
      ],
      "parameters": {
        "path": "565529c2-dc9c-4c06-9367-c9c1d6447c3d",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "fd5663e9-9aac-488f-8b4b-e19477ca5b59",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        -288
      ],
      "parameters": {
        "color": 3,
        "width": 304,
        "height": 320,
        "content": "Webhook Node (Entry Point)\n\nPurpose: This is the trigger that starts the workflow\nWhat it does: Listens for incoming HTTP POST requests on a specific webhook URL\n\nWhen it activates: When an external system (likely an e-commerce platform or order management system) sends order data to this webhook endpoint\n\nData received: Contains sales order information including the total amount in $json.body.salesorder.total"
      },
      "typeVersion": 1
    },
    {
      "id": "281a6f58-e592-43ba-a2a8-e99442f1b6b6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -384
      ],
      "parameters": {
        "color": 5,
        "width": 304,
        "height": 400,
        "content": "IF High Value Order Node (Decision Logic)\n\nPurpose: Acts as a conditional filter to identify high-value orders\n\nWhat it does: Checks if the incoming order meets VIP criteria\n\nCondition: Evaluates whether the order total is greater than 10,000 (currency not specified, but likely the system's base currency)\n\nLogic:\nIf order total > 10,000 \u2192 Routes to the \"True\" path (proceeds to next node)\nIf order total \u2264 10,000 \u2192 Routes to the \"False\" path (workflow ends, no action taken)"
      },
      "typeVersion": 1
    },
    {
      "id": "6425a6de-69d4-4226-950f-75a882bdeecf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -288
      ],
      "parameters": {
        "color": 6,
        "width": 320,
        "height": 304,
        "content": "CRM Update VIP Tag Node (Action)\n\nPurpose: Updates the customer record in Zoho CRM when a VIP order is detected\n\nWhat it does: Creates or updates a purchase order record in Zoho CRM with VIP designation\n\nIntegration: Connected to Zoho CRM using OAuth2 credentials\n\nAction taken: Adds a \"Vip order\" subject/tag to mark this customer/order as VIP in the CRM system"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "394ab332-e65a-4c11-afe5-4d904377957c",
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "IF High Value Order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF High Value Order": {
      "main": [
        [
          {
            "node": "CRM Update VIP Tag",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  }
}