{
  "name": "Send daily Malaysian weather alerts with Perplexity AI, Firecrawl and Telegram",
  "nodes": [
    {
      "id": "3111f7be-eeb3-4abf-9355-aa4e77ee562d",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        656,
        352
      ]
    },
    {
      "id": "7c96180a-5ac3-45e8-94b4-a1ad6fb4027e",
      "name": "Get Weather Warnings",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        352
      ]
    },
    {
      "id": "f6a01b30-5df6-44d7-968b-c37f64a68cdf",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3072,
        928
      ]
    },
    {
      "id": "a1e946f7-5519-412a-a5e6-e4a776937ac8",
      "name": "Make a summary",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2592,
        928
      ]
    },
    {
      "id": "8ad09077-a831-4915-91bf-42f78069e4d1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -80
      ],
      "parameters": {
        "width": 608,
        "height": 1008,
        "content": "## Automated Malaysian Weather Alerts with Perplexity AI and Telegram\n\n### How it works\n1. Schedule trigger runs daily at 9 AM to fetch weather warnings from Malaysia's official data.gov.my API.\n2. Ja"
      }
    },
    {
      "id": "48e00a57-e93d-4f0e-adf7-642c9975d9d7",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1664,
        352
      ]
    },
    {
      "id": "c8c84420-881a-45a7-8194-fc77ba382ed7",
      "name": "Replace Me",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2704,
        400
      ]
    },
    {
      "id": "56fa7bbd-7a25-49fa-b971-2a93fc153739",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        240
      ],
      "parameters": {
        "width": 432,
        "height": 320,
        "content": "## 1. Fetch weather warning from the official government API"
      }
    },
    {
      "id": "808efdd5-636c-4983-926d-9fe21bfe61b3",
      "name": "Separate Search Query, Warning Type and other information",
      "type": "n8n-nodes-base.code",
      "position": [
        1168,
        352
      ]
    },
    {
      "id": "5f5a4e6a-7848-4ba0-924c-8008e24fb3e1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        240
      ],
      "parameters": {
        "width": 432,
        "height": 320,
        "content": "## 2. Combine the Search Query and Location"
      }
    },
    {
      "id": "025fb749-d3e6-4c96-a9a8-9e4052af681a",
      "name": "Combine Search and Location information",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1360,
        352
      ]
    },
    {
      "id": "b1b1e555-8309-406c-9b9b-f0c723bb0c33",
      "name": "Clean the URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        1936,
        352
      ]
    },
    {
      "id": "54c82616-1aad-4b61-8e59-9593375cb727",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        240
      ],
      "parameters": {
        "width": 528,
        "height": 464,
        "content": "## 3.Crawl the internet to search all possible related weather news"
      }
    },
    {
      "id": "f2bf6a77-e17e-42a8-a7f9-3d329ae52aab",
      "name": "Scrape Website with Firecrawl",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2512,
        400
      ]
    },
    {
      "id": "8b01251a-e19e-4b0c-9de3-c108662cc027",
      "name": "Combine the Summary and Sources",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2400,
        928
      ]
    },
    {
      "id": "b83ac285-6598-4ebc-bc28-14f3d513540a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2224,
        240
      ],
      "parameters": {
        "width": 864,
        "height": 464,
        "content": "## 4. Process the news and get the summary of the articles"
      }
    },
    {
      "id": "43c81baf-f992-417e-8d9a-75363361a42d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        816
      ],
      "parameters": {
        "width": 608,
        "height": 352,
        "content": "## 5. Refine the weather report and arrange the URL for the spesific report"
      }
    },
    {
      "id": "c79c2410-e623-4b6f-beff-58cee259d97e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2944,
        816
      ],
      "parameters": {
        "width": 368,
        "height": 352,
        "content": "## 6.Send the report to the Telegram channel"
      }
    },
    {
      "id": "2767e8e8-21ee-4c8f-8783-951da0743ef7",
      "name": "Interval to avoid Firecrawl Free API Limit",
      "type": "n8n-nodes-base.wait",
      "position": [
        2880,
        400
      ]
    },
    {
      "id": "b1c19a70-1fa6-4ec5-9868-181bab5cb859",
      "name": "Perplexity Sonar Pro Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1664,
        544
      ]
    },
    {
      "id": "0ccaafe4-737e-46a3-b738-bd8beab17a5f",
      "name": "Loop URL One by One",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2320,
        400
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Clean the URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me": {
      "main": [
        [
          {
            "node": "Interval to avoid Firecrawl Free API Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean the URLs": {
      "main": [
        [
          {
            "node": "Loop URL One by One",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make a summary": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Weather Warnings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop URL One by One": {
      "main": [
        [
          {
            "node": "Combine the Summary and Sources",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Scrape Website with Firecrawl",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Weather Warnings": {
      "main": [
        [
          {
            "node": "Separate Search Query, Warning Type and other information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity Sonar Pro Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Website with Firecrawl": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine the Summary and Sources": {
      "main": [
        [
          {
            "node": "Make a summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Search and Location information": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Interval to avoid Firecrawl Free API Limit": {
      "main": [
        [
          {
            "node": "Loop URL One by One",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Separate Search Query, Warning Type and other information": {
      "main": [
        [
          {
            "node": "Combine Search and Location information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}