{
  "name": "Smart irrigation scheduler with weather forecast and soil analysis",
  "nodes": [
    {
      "id": "trigger",
      "name": "Daily Morning Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        400
      ]
    },
    {
      "id": "webhook",
      "name": "Manual Override Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        608
      ]
    },
    {
      "id": "merge_triggers",
      "name": "Merge Triggers",
      "type": "n8n-nodes-base.merge",
      "position": [
        256,
        512
      ]
    },
    {
      "id": "set_zones",
      "name": "Define Irrigation Zones",
      "type": "n8n-nodes-base.set",
      "position": [
        464,
        512
      ]
    },
    {
      "id": "split_zones",
      "name": "Split Zones",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        656,
        512
      ]
    },
    {
      "id": "get_current",
      "name": "Get Current Weather",
      "type": "n8n-nodes-base.openWeatherMap",
      "position": [
        912,
        352
      ]
    },
    {
      "id": "get_forecast",
      "name": "Get 5-Day Forecast",
      "type": "n8n-nodes-base.openWeatherMap",
      "position": [
        912,
        560
      ]
    },
    {
      "id": "merge_weather",
      "name": "Merge Weather Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1152,
        464
      ]
    },
    {
      "id": "analyze_conditions",
      "name": "Analyze Irrigation Need",
      "type": "n8n-nodes-base.code",
      "position": [
        1408,
        464
      ]
    },
    {
      "id": "filter_needs_water",
      "name": "Filter Zones Needing Water",
      "type": "n8n-nodes-base.filter",
      "position": [
        1664,
        464
      ]
    },
    {
      "id": "aggregate_zones",
      "name": "Aggregate All Results",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1664,
        656
      ]
    },
    {
      "id": "generate_schedule",
      "name": "Generate Irrigation Schedule",
      "type": "n8n-nodes-base.code",
      "position": [
        1904,
        464
      ]
    },
    {
      "id": "check_has_schedule",
      "name": "Has Irrigation Tasks?",
      "type": "n8n-nodes-base.if",
      "position": [
        2160,
        464
      ]
    },
    {
      "id": "log_to_sheets",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2400,
        240
      ]
    },
    {
      "id": "send_iot_commands",
      "name": "Send IoT Commands",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2400,
        384
      ]
    },
    {
      "id": "notify_slack",
      "name": "Send Slack Report",
      "type": "n8n-nodes-base.slack",
      "position": [
        2416,
        80
      ]
    },
    {
      "id": "no_irrigation",
      "name": "Log No Action",
      "type": "n8n-nodes-base.set",
      "position": [
        2400,
        544
      ]
    },
    {
      "id": "respond_webhook",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2688,
        464
      ]
    },
    {
      "id": "sticky_main",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        96
      ],
      "parameters": {
        "width": 480,
        "height": 872,
        "content": "## Smart Irrigation Scheduler with Weather Forecast and Soil Analysis\n\n**What this workflow does:**\nAutomatically determines optimal irrigation schedules based on weather forecasts, soil conditions, p"
      }
    },
    {
      "id": "sticky_step1",
      "name": "Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        208
      ],
      "parameters": {
        "width": 400,
        "height": 120,
        "content": "### Step 1: Triggers & Zone Config\nDaily morning check at 6 AM plus manual webhook trigger. Define irrigation zones with coordinates, plant types, and soil conditions."
      }
    },
    {
      "id": "sticky_step2",
      "name": "Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        192
      ],
      "parameters": {
        "width": 400,
        "height": 120,
        "content": "### Step 2: Weather Data Collection\nFetch current conditions and 5-day forecast from OpenWeatherMap for each zone. Checks temperature, humidity, wind, and rain probability."
      }
    },
    {
      "id": "sticky_step3",
      "name": "Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        288
      ],
      "parameters": {
        "width": 400,
        "height": 120,
        "content": "### Step 3: Irrigation Analysis\nCalculates evapotranspiration, estimates soil moisture, checks plant requirements, and determines if watering is needed with urgency level."
      }
    },
    {
      "id": "sticky_step4",
      "name": "Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2192,
        736
      ],
      "parameters": {
        "width": 400,
        "height": 120,
        "content": "### Step 4: Schedule & Execute\nGenerates timed schedule, sends commands to IoT controllers, logs to Sheets, and notifies via Slack with detailed report."
      }
    }
  ],
  "connections": {
    "Split Zones": {
      "main": [
        [
          {
            "node": "Get Current Weather",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get 5-Day Forecast",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log No Action": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Triggers": {
      "main": [
        [
          {
            "node": "Define Irrigation Zones",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send IoT Commands": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get 5-Day Forecast": {
      "main": [
        [
          {
            "node": "Merge Weather Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Weather Data": {
      "main": [
        [
          {
            "node": "Analyze Irrigation Need",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Morning Check": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Current Weather": {
      "main": [
        [
          {
            "node": "Merge Weather Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate All Results": {
      "main": [
        [
          {
            "node": "Generate Irrigation Schedule",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Irrigation Tasks?": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send IoT Commands",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Slack Report",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log No Action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Irrigation Need": {
      "main": [
        [
          {
            "node": "Filter Zones Needing Water",
            "type": "main",
            "index": 0
          },
          {
            "node": "Aggregate All Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Irrigation Zones": {
      "main": [
        [
          {
            "node": "Split Zones",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Override Trigger": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Filter Zones Needing Water": {
      "main": [
        [
          {
            "node": "Generate Irrigation Schedule",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Irrigation Schedule": {
      "main": [
        [
          {
            "node": "Has Irrigation Tasks?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}