{
  "name": "Track contract renewals & expirations",
  "flow": [
    {
      "id": 1,
      "module": "builtin:BasicFeeder",
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Trigger · Schedule, every Monday 07:00."
    },
    {
      "id": 2,
      "module": "google-sheets:searchRows",
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Read the contract register: counterparty, type, value, end date, auto-renew, notice window, owner."
    },
    {
      "id": 3,
      "module": "util:setVariables",
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Flag every contract whose notice deadline falls within the next 90 days; compute the last day to give notice."
    },
    {
      "id": 4,
      "module": "builtin:BasicRouter",
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Split auto-renewing contracts (act before notice lapses) from fixed-term expirations (decide whether to renew)."
    },
    {
      "id": 5,
      "module": "slack:createMessage",
      "metadata": {
        "designer": {
          "x": 1200,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Post the 90-day list to #legal-ops and @mention each owner with the deadline and the decision needed."
    },
    {
      "id": 6,
      "module": "google-calendar:createEvent",
      "metadata": {
        "designer": {
          "x": 1500,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Create a reminder on the owner's calendar two weeks before each notice deadline."
    }
  ],
  "metadata": {
    "generatedBy": "Spion",
    "instance": {
      "name": "Track contract renewals & expirations",
      "note": "Trigger · Schedule, every Monday 07:00."
    }
  }
}
