{
  "id": "3Jcxl4sB315JKDVn",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "AI News Daily Monitor",
  "tags": [],
  "nodes": [
    {
      "id": "058ada86-890b-490d-99e1-bda8883e618b",
      "name": "Google News AI",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        352,
        208
      ],
      "parameters": {
        "url": "https://news.google.com/rss/topics/CAAqIAgKIhpDQkFTRFFvSEwyMHZNRzFyZWhJQ1pXNG9BQVAB?hl=en-US&gl=US&ceid=US:en",
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "ef39bece-1eaf-47e5-a14d-eed135db3766",
      "name": "Hacker News AI",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        576,
        400
      ],
      "parameters": {
        "url": "https://hnrss.org/newest?q=ai&points=10&count=10",
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "6a17ca2a-eac5-4f5f-91cf-6bed7f04e209",
      "name": "Limit Google to 10",
      "type": "n8n-nodes-base.limit",
      "position": [
        576,
        208
      ],
      "parameters": {
        "maxItems": 10
      },
      "typeVersion": 1
    },
    {
      "id": "a2f6c86d-cf70-4c2b-abd5-dff8ef2fcf53",
      "name": "Create News Object",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        304
      ],
      "parameters": {
        "jsCode": "const googleNews = $input.all().filter(item => item.json.title && item.json.title.includes('AI'));\nconst hackerNews = $input.all().filter(item => item.json.title && item.json.title.includes('AI'));\n\nreturn [{\n  json: {\n    googleNews: googleNews.map(item => item.json),\n    hackerNews: hackerNews.map(item => item.json)\n  }\n}];"
      },
      "typeVersion": 2
    },
    {
      "id": "5c45c260-911f-43f4-aa85-fe4dc7e1cda6",
      "name": "AI News Summarizer",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1024,
        304
      ],
      "parameters": {
        "prompt": "=You are an AI news analyst. Summarize the following AI news from Google News and Hacker News into a concise daily digest. Only include articles that are interesting, important, or notable\u2014skip irrelevant or trivial items.\n\nInstructions:\n\nBegin the digest with a Markdown heading:\n\n# AI News Daily Digest \u2013 [date]\n\n\n(use the most relevant date from the articles).\nDo not include any filler text before the heading.\n\nSplit the digest into two main sections, each as a Markdown subheading:\n\n## Google News\n## Hacker News\n\nWithin each section, list the top relevant articles using Markdown bullet points. For each article, include:\n\n- **Title:** [Article Title]  \n  **Summary:** [Short professional summary of key points/insights]\n\nMaintain a neutral, professional, concise tone highlighting trends, debates, or important developments.\n\nImportant: Ensure the entire digest does not exceed 4,000 characters. If needed, prioritize the most interesting/high-impact articles and omit less important items so the digest stays within the limit.\n\nNews to summarize:\n{{ $json.toJsonString() }}"
      },
      "typeVersion": 1
    },
    {
      "id": "a909ac6a-f778-496f-a42f-afd5e7e96d6d",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1376,
        304
      ],
      "parameters": {
        "text": "=\ud83e\udd16 AI News Daily Digest\n\n{{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ee2c5e94-a069-4930-bd91-e30977919713",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1096,
        528
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "28369b6a-c54b-43bd-8455-7ebbdee6928e",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        128,
        304
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 8 * * *"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "cb43be7f-ab50-4072-baa3-0bc92ee0bdb4",
      "name": "Quick Reference",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        512
      ],
      "parameters": {
        "height": 288,
        "content": "\ud83d\udccc AI News Daily Monitor - Quick Reference\n\n\ud83d\udd50 SCHEDULE: Daily at 8:00 AM (adjustable)\n\ud83d\udcf0 SOURCES: Google News RSS + Hacker News\n\ud83e\udd16 AI: OpenAI for filtering & summarization\n\ud83d\udcf1 DELIVERY: Telegram channel/chat\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "saveExecutionProgress": true,
    "saveDataErrorExecution": "all",
    "saveDataSuccessExecution": "all"
  },
  "versionId": "9e05b4d8-b25c-4222-b64f-ae1b512c9aa1",
  "connections": {
    "Google News AI": {
      "main": [
        [
          {
            "node": "Limit Google to 10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hacker News AI": {
      "main": [
        [
          {
            "node": "Create News Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Google News AI",
            "type": "main",
            "index": 0
          },
          {
            "node": "Hacker News AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "main": [],
      "ai_languageModel": [
        [
          {
            "node": "AI News Summarizer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI News Summarizer": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create News Object": {
      "main": [
        [
          {
            "node": "AI News Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit Google to 10": {
      "main": [
        [
          {
            "node": "Create News Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}