{
  "name": "AI Weather Report Automation",
  "nodes": [
    {
      "parameters": {
        "url": "https://wttr.in/Nawabshah?format=j1",
        "options": {}
      },
      "id": "c7b74cd1-da38-4d17-ad41-5d0193b435a4",
      "name": "weather fetch",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        32,
        -16
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "models/gemini-3.1-flash-lite",
          "mode": "list",
          "cachedResultName": "models/gemini-3.1-flash-lite"
        },
        "messages": {
          "values": [
            {
              "content": "={{ $json.data }}"
            }
          ]
        },
        "builtInTools": {},
        "options": {
          "systemMessage": "=You are a data extraction and weather reporting assistant. I will give you a raw JSON response from a weather API. Your task: 1. Extract only the useful information 2. Ignore all unnecessary data 3. Create a short weather report Extract these fields: - City - Maximum temperature (maxtempC) - Minimum temperature (mintempC) - Chance of rain - Weather condition description Then create a friendly weather report. Rules: - Start with \"Good Morning \u2600\ufe0f\" - Keep it under 150 words - Simple and human-like tone - No JSON output, only final message Here is the data: {{ $json.data }}"
        }
      },
      "id": "e54a552b-9c50-4ece-b51a-ca0c1b980d37",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.2,
      "position": [
        336,
        -144
      ],
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "YOUR_EMAIL@example.com",
        "subject": "Today's weather report in Nawabshah",
        "emailType": "text",
        "message": "={{ $json.content.parts[0].text }}",
        "options": {
          "appendAttribution": false
        }
      },
      "id": "fd63e2a6-1092-4ecb-a695-42b99de7d41f",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        768,
        0
      ],
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -320,
        -160
      ],
      "id": "92ae071b-fa9c-44c1-9152-c577d71ff82c",
      "name": "Schedule Trigger"
    }
  ],
  "connections": {
    "weather fetch": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "weather fetch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "versionId": "ed3fe39f-924b-4578-95e8-4dc6895441fc",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "nodeGroups": [],
  "id": "STvL7BbaKRRcASWZ",
  "tags": []
}