{
  "name": "Compile the monthly headcount & PTO report",
  "nodes": [
    {
      "id": "1000",
      "name": "Monthly schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ],
      "parameters": {},
      "notes": "1st of each month 06:00"
    },
    {
      "id": "1001",
      "name": "Get roster",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        460,
        300
      ],
      "parameters": {},
      "notes": "Pull active employees, new hires, and departures for the month from the HRIS API."
    },
    {
      "id": "1002",
      "name": "Get time off",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        680,
        300
      ],
      "parameters": {},
      "notes": "Pull PTO balances and approved upcoming time off per employee."
    },
    {
      "id": "1003",
      "name": "Roll up",
      "type": "n8n-nodes-base.code",
      "typeVersion": 1,
      "position": [
        900,
        300
      ],
      "parameters": {},
      "notes": "Headcount by department, net change vs last month, and any PTO balance above the accrual cap."
    },
    {
      "id": "1004",
      "name": "Write report",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 2,
      "position": [
        1120,
        300
      ],
      "parameters": {},
      "notes": "Write the roster plus a Summary block to the Headcount & PTO sheet."
    },
    {
      "id": "1005",
      "name": "Post summary",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        1340,
        300
      ],
      "parameters": {},
      "notes": "Post headcount, net change, and the balances-over-cap to #people-ops."
    }
  ],
  "connections": {
    "Monthly schedule": { "main": [[{ "node": "Get roster", "type": "main", "index": 0 }]] },
    "Get roster": { "main": [[{ "node": "Get time off", "type": "main", "index": 0 }]] },
    "Get time off": { "main": [[{ "node": "Roll up", "type": "main", "index": 0 }]] },
    "Roll up": { "main": [[{ "node": "Write report", "type": "main", "index": 0 }]] },
    "Write report": { "main": [[{ "node": "Post summary", "type": "main", "index": 0 }]] }
  },
  "meta": {
    "generatedBy": "Spion"
  }
}
