{
  "name": "Create AI-curated news digests with GPT-5.1, NewsAPI, Tavily & Telegram",
  "nodes": [
    {
      "id": "78c17a2b-6458-42e5-acb6-74b350d17e4a",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -592,
        -32
      ]
    },
    {
      "id": "41b2c6a0-7063-446e-9403-478e6c7b325b",
      "name": "Call NewsAPI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        -32
      ]
    },
    {
      "id": "81bdbf07-dc4a-4fef-9e69-eef731f4bb14",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1376,
        -32
      ]
    },
    {
      "id": "a522827f-0470-452e-9b9a-1268dbc97ba2",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        528,
        -32
      ]
    },
    {
      "id": "d34cda05-2f22-4358-8890-f53ec36600f9",
      "name": "Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        944,
        192
      ]
    },
    {
      "id": "d1fe8abe-76cf-4ce2-934d-5c78c4de8662",
      "name": "Tavily",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        816,
        192
      ]
    },
    {
      "id": "137623d3-5bd0-44a8-a915-36e9e0db1331",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1152,
        -32
      ]
    },
    {
      "id": "d9fdf9e3-b954-43cb-98f7-503f6015e2f3",
      "name": "Set topics and language",
      "type": "n8n-nodes-base.set",
      "position": [
        -368,
        -32
      ]
    },
    {
      "id": "f96519e3-2626-4651-9157-30ab40ffbf60",
      "name": "Newsletter AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        752,
        -32
      ]
    },
    {
      "id": "699ff0a8-4412-45cb-b20d-ac4fa39c6077",
      "name": "AI Topic Selector",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        176,
        -32
      ]
    },
    {
      "id": "56bd39e6-6c7f-4357-898e-b5a85457e04a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1296,
        -256
      ],
      "parameters": {
        "width": 640,
        "height": 608,
        "content": "# AI Newsletter Workflow\n\n## How it works\nThis workflow runs weekly, fetches fresh news for your chosen topics, lets an AI pick the five most relevant articles, enriches each with additional research,"
      }
    },
    {
      "id": "11b0c727-a68c-4849-a2a9-58cfaacc1e9a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -256
      ],
      "parameters": {
        "width": 432,
        "height": 608,
        "content": "## Schedule & Configuration\n\n• **Schedule Trigger**: Runs at 9am every Sunday per default.\n• **Set topics and language**: Configure your topics (comma-separated) and output language."
      }
    },
    {
      "id": "72a31337-843c-41a2-9e1e-19dee208cd01",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -256
      ],
      "parameters": {
        "width": 848,
        "height": 608,
        "content": "## Fetch & Select articles\n\n- **Call NewsAPI**: Queries the last 7 days of news for your topics.  \n- **AI Topic Selector**: Uses GPT‑5.1 to select 5 non-overlapping, relevant articles.  \n- **Split Out"
      }
    },
    {
      "id": "7a1c47b9-48cb-40bd-ad7e-81d36c0180bb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        -256
      ],
      "parameters": {
        "width": 416,
        "height": 608,
        "content": "## Enrich Articles using AI\n\n- **Newsletter AI Agent**: Orchestrates GPT‑5, Tavily and the parser per article.  \n- **GPT-5.1**: Writes short, clear newsletter-style summaries.  \n- **Tavily**: Adds fre"
      }
    },
    {
      "id": "9b3ce9c9-34d5-419a-a53a-20b4c08ca57f",
      "name": "GPT-5.1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        688,
        192
      ]
    },
    {
      "id": "2fe6ee6c-9964-4bb0-be1d-30f9485637bf",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        -256
      ],
      "parameters": {
        "width": 496,
        "height": 608,
        "content": "## Aggregate & Send\n\n- **Aggregate**: Combines all enriched article objects into one list.  \n- **Send a text message**: Formats the newsletter in Markdown and posts it to Telegram."
      }
    }
  ],
  "connections": {
    "Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Newsletter AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Tavily": {
      "ai_tool": [
        [
          {
            "node": "Newsletter AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "GPT-5.1": {
      "ai_languageModel": [
        [
          {
            "node": "Newsletter AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Newsletter AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call NewsAPI": {
      "main": [
        [
          {
            "node": "AI Topic Selector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set topics and language",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Topic Selector": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Newsletter AI Agent": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message": {
      "main": [
        []
      ]
    },
    "Set topics and language": {
      "main": [
        [
          {
            "node": "Call NewsAPI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}