{
  "name": "Daily AI news digest from Hacker News with GPT-5 summaries and email delivery",
  "nodes": [
    {
      "id": "c352f6dc-9570-419d-9d48-3c94758a0104",
      "name": "Fetch HN AI Stories",
      "type": "n8n-nodes-base.hackerNews",
      "position": [
        1024,
        3552
      ]
    },
    {
      "id": "2a57c491-15f9-4035-854f-9bc410e9fe5e",
      "name": "Filter Last 24 Hours",
      "type": "n8n-nodes-base.filter",
      "position": [
        1232,
        3552
      ]
    },
    {
      "id": "960d99c5-3bfa-4baa-b9eb-4cc41e6ad961",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1440,
        3552
      ]
    },
    {
      "id": "9bf34ea7-64ad-4bc5-b4f7-af3a1d1fa0a0",
      "name": "Scrape Article URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1648,
        3632
      ]
    },
    {
      "id": "714804a1-ebc4-474a-9de0-4e8785086129",
      "name": "Convert to Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        1872,
        3632
      ]
    },
    {
      "id": "72b3a898-bfa8-4388-9a8c-a9c9c4895020",
      "name": "GPT Summarize Article",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2064,
        3632
      ]
    },
    {
      "id": "dd7d375a-26bd-469f-8cea-2d68511aa1bb",
      "name": "Format News Item",
      "type": "n8n-nodes-base.set",
      "position": [
        2368,
        3728
      ]
    },
    {
      "id": "b612d024-cb1b-4f93-8761-3a4e805cb0a2",
      "name": "Combine All Summaries",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1648,
        3456
      ]
    },
    {
      "id": "db3ace26-4a67-4916-9f16-1719fdfbaed7",
      "name": "Send Email Digest",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1872,
        3456
      ]
    },
    {
      "id": "030bc0bb-c0ae-4234-9a9e-720c86ba3f0c",
      "name": "Daily Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        800,
        3552
      ]
    },
    {
      "id": "f59da8bf-9079-46e6-a97d-63ac00da0f09",
      "name": "Overview & Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        3168
      ],
      "parameters": {
        "width": 728,
        "height": 1072,
        "content": "# Daily AI News Digest from Hacker News\n\n## 📋 What This Template Does\nFetches recent AI stories from Hacker News, filters for today, scrapes each article, summarizes with GPT into snippets, aggregates"
      }
    },
    {
      "id": "088aeedc-3850-415e-a691-691fd3e02428",
      "name": "Note: HN Fetch & Filter",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        3728
      ],
      "parameters": {
        "width": 428,
        "height": 304,
        "content": "## 📥 Data Collection\n\n**Fetch HN AI Stories:**\n- Pulls 1000 stories with \"AI\" keyword\n- Uses public HN API (no auth needed)\n\n**Filter Last 24 Hours:**\n- Checks `created_at` field\n- Keeps only yesterda"
      }
    },
    {
      "id": "4c555f5e-4b5b-4176-bc8e-161dcb9a9b25",
      "name": "Note: Scraping & Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        3888
      ],
      "parameters": {
        "width": 484,
        "height": 352,
        "content": "## 🌐 Content Processing\n\n**Loop Over Items:**\n- Processes each story sequentially\n- Prevents rate limiting\n\n**Scrape Article URL:**\n- Fetches content from source URL\n- May need proxy for blocked sites"
      }
    },
    {
      "id": "3e0e97ce-561d-4c6b-a9b4-96b0eacf90d5",
      "name": "Note: AI Summarization",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2176,
        3904
      ],
      "parameters": {
        "width": 460,
        "height": 336,
        "content": "## 🤖 AI Summarization\n\n**GPT Summarize Article:**\n- Generates heading + 2 sentences\n- Extracts key AI insights\n- Includes link when relevant\n\n**Format News Item:**\n- Wraps in HTML for email\n- Prepares"
      }
    },
    {
      "id": "2dbe3adc-d430-4eff-9306-c2f45cd632f3",
      "name": "Note: Email Delivery",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2112,
        3200
      ],
      "parameters": {
        "width": 436,
        "height": 320,
        "content": "## 📧 Email Delivery\n\n**Send Email Digest:**\n- Styled HTML template\n- Mobile-responsive design\n- Inline CSS for compatibility\n\n**Template Features:**\n- Clean news item layout\n- Branded header/footer\n- "
      }
    },
    {
      "id": "eaa3c5c3-bf65-4efc-8f23-208ed7751ed4",
      "name": "GPT 5 pro",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2064,
        3808
      ]
    }
  ],
  "connections": {
    "GPT 5 pro": {
      "ai_languageModel": [
        [
          {
            "node": "GPT Summarize Article",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Combine All Summaries",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Scrape Article URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format News Item": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Article URL": {
      "main": [
        [
          {
            "node": "Convert to Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to Markdown": {
      "main": [
        [
          {
            "node": "GPT Summarize Article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch HN AI Stories": {
      "main": [
        [
          {
            "node": "Filter Last 24 Hours",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Last 24 Hours": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine All Summaries": {
      "main": [
        [
          {
            "node": "Send Email Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Summarize Article": {
      "main": [
        [
          {
            "node": "Format News Item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch HN AI Stories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}