{
  "name": "Automated RSS to Telegram publisher with Groq AI rewriting",
  "nodes": [
    {
      "id": "05bf737f-a6e2-47d5-a61a-718d6e9a40b4",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        2496,
        256
      ]
    },
    {
      "id": "dc5ad1c9-7b92-44f6-9536-d1ea6fd98ddc",
      "name": "Every 30 minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1040,
        16
      ]
    },
    {
      "id": "ec9ae3bb-8389-4dcc-bb6f-67554b87ac09",
      "name": "Read RSS links",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        1552,
        16
      ]
    },
    {
      "id": "1856442e-3b9c-4a1a-aea4-5d6700bbbe73",
      "name": "Add link",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2192,
        16
      ]
    },
    {
      "id": "eb5bbc5a-6f49-4f5c-b851-2af81d31f3a0",
      "name": "Rewrite Post",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2416,
        16
      ]
    },
    {
      "id": "e6b8073b-72c8-496e-96c1-b4f55b2e64f7",
      "name": "Send post to user",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2768,
        16
      ]
    },
    {
      "id": "7c3a0c17-9d3d-43b6-ae7f-ee6fa7ed7cfa",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        -112
      ],
      "parameters": {
        "width": 496,
        "height": 544,
        "content": "**Telegram RSS Autoposter**\n\nThis workflow automatically pulls new articles from a set of RSS feeds and sends AI-enhanced summaries to your Telegram chat.\n\n**How it works:**\n\n1. Every 30 minutes, the "
      }
    },
    {
      "id": "5379e2dc-a893-4410-966e-b87312236444",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -112
      ],
      "parameters": {
        "width": 680,
        "height": 540,
        "content": "**1. Get RSS posts**\nEvery 30 minutes, fetch posts from each RSS feed stored in the rss_list table."
      }
    },
    {
      "id": "fd269440-aa0f-405f-a43b-e1068d94165f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2352,
        -112
      ],
      "parameters": {
        "width": 344,
        "height": 540,
        "content": "**3. Rewrite content**\nFree-tier Groq AI rewrites the post and shortens it when necessary."
      }
    },
    {
      "id": "7a4af82d-cf73-4b3a-a3b8-545260f5cec3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2720,
        -112
      ],
      "parameters": {
        "width": 280,
        "height": 540,
        "content": "**4. Send to Telegram**\nEach enhanced RSS post is sent to your private Telegram messages."
      }
    },
    {
      "id": "09be1f04-ba6a-4e85-b0e2-d7996b712c19",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1712,
        -112
      ],
      "parameters": {
        "width": 616,
        "height": 540,
        "content": "**2. Process latest links**\nRetrieve only the latest post from each RSS feed.\nCheck whether the post’s link exists in the post_links table, and add it if it’s not found."
      }
    },
    {
      "id": "5c41067a-2874-4e16-9c24-b0d934540751",
      "name": "If link not in table",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1968,
        16
      ]
    },
    {
      "id": "2056669f-2e86-4b83-aed7-573039aac5b5",
      "name": "For each RSS",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1376,
        16
      ]
    },
    {
      "id": "51941d34-5b97-4881-aaf3-e02e0fadb923",
      "name": "Finish workflow",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1552,
        240
      ]
    },
    {
      "id": "2a40ac67-5d88-42f0-a67a-378ece39b463",
      "name": "Get RSS list",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1200,
        16
      ]
    },
    {
      "id": "30a8b800-38a8-4931-b4d7-6de2c4572260",
      "name": "Get only latest link",
      "type": "n8n-nodes-base.limit",
      "position": [
        1744,
        16
      ]
    }
  ],
  "connections": {
    "Add link": {
      "main": [
        [
          {
            "node": "Rewrite Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "For each RSS": {
      "main": [
        [
          {
            "node": "Finish workflow",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Read RSS links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get RSS list": {
      "main": [
        [
          {
            "node": "For each RSS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Post": {
      "main": [
        [
          {
            "node": "Send post to user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read RSS links": {
      "main": [
        [
          {
            "node": "Get only latest link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Rewrite Post",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Every 30 minutes": {
      "main": [
        [
          {
            "node": "Get RSS list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send post to user": {
      "main": [
        [
          {
            "node": "For each RSS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get only latest link": {
      "main": [
        [
          {
            "node": "If link not in table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If link not in table": {
      "main": [
        [
          {
            "node": "Add link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}