{
  "name": "Daily News Digest",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "a47ec7e0-7cf3-470d-a9a6-a0efc2f5dad5",
      "name": "When clicking \u2018Execute workflow\u2019"
    },
    {
      "parameters": {
        "url": "https://techcrunch.com/feed/",
        "options": {}
      },
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.2,
      "position": [
        208,
        0
      ],
      "id": "df5e7284-3758-47b2-99c0-59758fc02d4a",
      "name": "RSS Read"
    },
    {
      "parameters": {
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "content"
            },
            {
              "fieldToAggregate": "creator"
            },
            {
              "fieldToAggregate": "title"
            },
            {
              "fieldToAggregate": "link"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        416,
        0
      ],
      "id": "4c6567c7-24cc-4d88-8c78-752f81946226",
      "name": "Aggregate"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o-mini",
          "mode": "list",
          "cachedResultName": "GPT-4o-mini"
        },
        "responses": {
          "values": [
            {
              "content": "=You are an expert news digester or summarizer. Help to summarize the RSS news feed. Analyze ALL news available in the feed, and decide what's most important and highly recommend for news. Then, give me best 10 essential news out of all news available in the feed. (not the first 10). Give me all in formatted bullet points, include emojis for an engaging read experience, do not bold or italic anything, do not include hases, dashes, and stars. Try to write all as short as possible. \n\nAll content, creators' list, links, and titles are synchronously maintained. Along with those 10 stories in output, also provide their creator name, title, and link to read the full article. Also, give a top heading or main title for this news summary with an emoji.\n\nInputs: \n\nCreators:  {{ $json.creator }}\nTitle: {{ $json.title }}\ncontent: {{ $json.content }}\nlinks: {{ $json.link }}"
            }
          ]
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 2.3,
      "position": [
        624,
        0
      ],
      "id": "bd91310f-bb6e-4c6c-8785-a4bc0b01e0f7",
      "name": "Message a model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "text": "={{ $json.output[0].content[0].text }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        976,
        0
      ],
      "id": "7e1adf2a-f5b3-447b-942c-3955f2cc9777",
      "name": "Send a text message",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "\ntg bot for this news digest: YOUR_TELEGRAM_BOT_TOKEN\n\n\nchatid: YOUR_TELEGRAM_CHAT_ID",
        "height": 176,
        "width": 320
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        256
      ],
      "typeVersion": 1,
      "id": "8fa4e87d-2cc8-4eb8-af79-6097d56eab7b",
      "name": "Sticky Note"
    }
  ],
  "connections": {
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "staticData": null,
  "triggerCount": 0,
  "meta": {
    "templateCredsSetupCompleted": true
  }
}