{
  "name": "Track & alert team holidays across countries with Nager.Date API, Notion and Slack",
  "nodes": [
    {
      "id": "13859f9a-981b-471a-995f-a5c71ceca530",
      "name": "Find Shared Holidays",
      "type": "n8n-nodes-base.code",
      "position": [
        1824,
        2144
      ]
    },
    {
      "id": "81a9c2ce-55ae-4fd5-974b-e09b1a4f6a46",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        1952
      ],
      "parameters": {
        "width": 416,
        "height": 352,
        "content": "## 3. Fetch & Filter\nQueries the API for holidays and filters the results to keep only those falling within the \"lookahead\" window."
      }
    },
    {
      "id": "031d2784-7939-4353-8e44-34e91502c7e8",
      "name": "Notify Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        2256,
        2144
      ]
    },
    {
      "id": "6a40d30c-8be1-4ef5-a788-a7f0c9108f68",
      "name": "Add to Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        2032,
        2144
      ]
    },
    {
      "id": "efc05b71-b31d-4d9e-b47f-da5d1bfdf93f",
      "name": "Filter Upcoming",
      "type": "n8n-nodes-base.code",
      "position": [
        1584,
        2144
      ]
    },
    {
      "id": "b0280f18-8055-4564-934d-2b9b2d614545",
      "name": "Get Public Holidays",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1376,
        2144
      ]
    },
    {
      "id": "d0a73365-b3a3-49c8-ac67-dc1f392476bb",
      "name": "Define Days to Lookahead",
      "type": "n8n-nodes-base.set",
      "position": [
        736,
        2144
      ]
    },
    {
      "id": "f21ada48-96e8-44c9-92c3-170c56e4a209",
      "name": "Define Team Countries",
      "type": "n8n-nodes-base.set",
      "position": [
        528,
        2144
      ]
    },
    {
      "id": "9b9bc13c-eea5-47e3-9262-725cb1698df2",
      "name": "Weekly Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        288,
        2144
      ]
    },
    {
      "id": "7ea579e1-b800-4315-8796-851528ca501b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        1952
      ],
      "parameters": {
        "width": 852,
        "height": 350,
        "content": "## 3. Compare & Sync\nAggregates all results to identify shared holidays, formats the date (YYYY-MM-DD), and updates Notion/Slack."
      }
    },
    {
      "id": "43375eb5-3ba6-44fa-833d-e1ccb206d49f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        1952
      ],
      "parameters": {
        "width": 340,
        "height": 360,
        "content": "## 2. Query Preparation\nPrepares a list of `Country + Year` combinations (Current & Next Year) to ensure holidays aren't missed during year-end transitions."
      }
    },
    {
      "id": "186d23a6-fc63-4256-b006-b032829af4db",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        2048
      ],
      "parameters": {
        "width": 556,
        "height": 264,
        "content": "## 1. Schedule & Configuration\nThis section triggers the workflow every Monday and sets the configuration variables: the list of countries to track and the \"lookahead\" window (in days)."
      }
    },
    {
      "id": "8bcab344-0da5-4dd4-85ed-4e528ffcb58c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        1616
      ],
      "parameters": {
        "width": 546,
        "height": 412,
        "content": "## 🌍 Global Holiday Sync\n\n## How it works\nThis workflow prevents scheduling conflicts by tracking distributed team holidays. It fetches public holidays from the **Nager.Date API** for your specific re"
      }
    },
    {
      "id": "3ab566e8-b1f1-415a-a981-2b8013a8e184",
      "name": "Prepare Queries",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        2144
      ]
    }
  ],
  "connections": {
    "Add to Notion": {
      "main": [
        [
          {
            "node": "Notify Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Upcoming": {
      "main": [
        [
          {
            "node": "Find Shared Holidays",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Queries": {
      "main": [
        [
          {
            "node": "Get Public Holidays",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Schedule": {
      "main": [
        [
          {
            "node": "Define Team Countries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Public Holidays": {
      "main": [
        [
          {
            "node": "Filter Upcoming",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Shared Holidays": {
      "main": [
        [
          {
            "node": "Add to Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Team Countries": {
      "main": [
        [
          {
            "node": "Define Days to Lookahead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Days to Lookahead": {
      "main": [
        [
          {
            "node": "Prepare Queries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}