{
  "name": "Send contract renewal reminders from HubSpot via Gmail and Slack alerts",
  "nodes": [
    {
      "id": "babada84-5bb8-4822-900b-5b8d315f35fb",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        20400,
        5712
      ]
    },
    {
      "id": "dafebf5d-c8e4-4363-9754-c949900cd864",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        21664,
        5520
      ]
    },
    {
      "id": "e6351f9d-dfdd-4d22-9c57-c0516e3cc746",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        22112,
        5520
      ]
    },
    {
      "id": "94742aac-f36c-49d5-82a1-34f15becc486",
      "name": "30 day mail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        21888,
        5344
      ]
    },
    {
      "id": "89ef810b-bbc5-47d0-8a71-3895b4a73f7e",
      "name": "60 day mail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        21888,
        5536
      ]
    },
    {
      "id": "f5a63d76-94a0-4d12-9b05-d67389853493",
      "name": "90 day mail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        21888,
        5728
      ]
    },
    {
      "id": "498a2192-44ea-47db-acfe-ccf8a28e3f28",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19712,
        5168
      ],
      "parameters": {
        "width": 576,
        "height": 800,
        "content": "# Contract Expiry & Renewal Alert System\n\nThis workflow automates contract renewal management by tracking upcoming expirations and triggering timely actions. It ensures that no contract is missed by p"
      }
    },
    {
      "id": "8dc837fb-85a5-4dfa-afa2-afa1fba7e5a2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20320,
        5168
      ],
      "parameters": {
        "width": 560,
        "height": 800,
        "content": "## Step 1: Schedule & Filter Contracts\n\nRuns on a schedule, fetches deals from HubSpot, and filters contracts expiring in 30, 60, or 90 days.\n"
      }
    },
    {
      "id": "8c1f33c5-c677-4aa7-be1f-9a8d0b9bd6d3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20912,
        5168
      ],
      "parameters": {
        "width": 672,
        "height": 800,
        "content": "## Step 2: Process Deals & Fetch Contacts\n\nLoops through deals, fetches associated contacts, and retrieves email details for communication.\n"
      }
    },
    {
      "id": "41da35be-799b-4ead-ade1-cbe5493150f4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        21616,
        5168
      ],
      "parameters": {
        "width": 640,
        "height": 800,
        "content": "## Step 3: Email Routing & Sending\n\nUses a Switch node to route deals (30/60/90 days) and sends personalized emails via Gmail.\n"
      }
    },
    {
      "id": "a10e08e6-4706-4480-935e-93171af9baca",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        22288,
        5168
      ],
      "parameters": {
        "width": 448,
        "height": 800,
        "content": "## Step 4: Alerts & Task Creation\n\nSends Slack alerts to account managers and creates ClickUp tasks for follow-up actions.\n"
      }
    },
    {
      "id": "d3c6c77f-de19-4e21-bc1d-3ac405288f64",
      "name": "Get all deals",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        20576,
        5712
      ]
    },
    {
      "id": "72fad76e-c127-4b99-b952-f9ec5fb8f553",
      "name": "Filter Deals",
      "type": "n8n-nodes-base.code",
      "position": [
        20752,
        5712
      ]
    },
    {
      "id": "ae2b0599-c789-4bb0-bffa-83bb8ce724bb",
      "name": "Loop Over Deals",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        20992,
        5712
      ]
    },
    {
      "id": "2fa2c3ac-a767-41de-80bb-da51a4e8f938",
      "name": "Fetch Associated Contact With Deal",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        21216,
        5536
      ]
    },
    {
      "id": "bb461bc3-e283-4fb6-a645-6bf9e051959a",
      "name": "Get Contact Details",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        21440,
        5536
      ]
    },
    {
      "id": "bd3a12f2-ca60-475b-8052-be24296e83cd",
      "name": "Nofity Account Manager",
      "type": "n8n-nodes-base.slack",
      "position": [
        22336,
        5536
      ]
    },
    {
      "id": "a85e68e4-e62d-4899-a79c-9578ba5adfd7",
      "name": "Create Follow-up Task",
      "type": "n8n-nodes-base.clickUp",
      "position": [
        22560,
        5712
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Nofity Account Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "30 day mail",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "60 day mail",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "90 day mail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "30 day mail": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "60 day mail": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "90 day mail": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Filter Deals": {
      "main": [
        [
          {
            "node": "Loop Over Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all deals": {
      "main": [
        [
          {
            "node": "Filter Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Deals": {
      "main": [
        [],
        [
          {
            "node": "Fetch Associated Contact With Deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get all deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Contact Details": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Follow-up Task": {
      "main": [
        [
          {
            "node": "Loop Over Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Nofity Account Manager": {
      "main": [
        [
          {
            "node": "Create Follow-up Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Associated Contact With Deal": {
      "main": [
        [
          {
            "node": "Get Contact Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}