{
  "name": "Save & summarize articles from Telegram to Notion using GPT-4o",
  "nodes": [
    {
      "id": "c0976bf6-0479-4e3f-8cc1-80c108ed4d05",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        0,
        432
      ]
    },
    {
      "id": "40f0e3e2-e0f2-4756-b57c-2938c6b1a076",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        560,
        704
      ]
    },
    {
      "id": "4e984eec-ff19-4cd9-a30a-0779331fe5f3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        -16
      ],
      "parameters": {
        "width": 480,
        "height": 408,
        "content": "### 🛠️ Setup Instructions\n1. Create and connect your API credentials:\n   - [Telegram Bot](https://sendpulse.com/knowledge-base/chatbot/telegram/create-telegram-chatbot)\n   - [OpenAI API Key](https://a"
      }
    },
    {
      "id": "98fd40b1-4632-4a34-bc81-b68be413ee96",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        832
      ],
      "parameters": {
        "width": 162,
        "height": 115,
        "content": "👆 You can exchange this with any other chat model of your choice."
      }
    },
    {
      "id": "0a84a129-b018-451f-b16e-57c42b4a6ae7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        624
      ],
      "parameters": {
        "width": 402,
        "height": 399,
        "content": "👆 How to setup **Save Article to Notion Database** node\n\n1. **Connect Your Notion Account**  \n   - Click the \"add your connection\" link at the top of this node.  \n   - Without this, the system won't b"
      }
    },
    {
      "id": "e6a516f0-0a7e-444e-8294-0f0895e5152e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -16
      ],
      "parameters": {
        "width": 562,
        "height": 284,
        "content": "### 🔍 Workflow breakdown:\n1. **Telegram Trigger** - Listens for incoming message containing an article link.\n2. **Fetch Article Title & Content** - Calls the [article-parser-api](https://github.com/Yo"
      }
    },
    {
      "id": "bf8383b2-79ec-4d9a-a827-083c2e64abdd",
      "name": "Fetch Article Title & Content",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        256,
        432
      ]
    },
    {
      "id": "3e61d36a-b943-422f-8500-3792ee36e21c",
      "name": "Generate Highlight + Tag (AI Agent)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        560,
        432
      ]
    },
    {
      "id": "383cb738-85da-4cfd-9fb9-66a35d1e720e",
      "name": "Structure Metadata for Notion",
      "type": "n8n-nodes-base.set",
      "position": [
        960,
        432
      ]
    },
    {
      "id": "2475df33-b459-4fbb-9989-daa387c58fac",
      "name": "Save Article to Notion Database",
      "type": "n8n-nodes-base.notion",
      "position": [
        1280,
        432
      ]
    },
    {
      "id": "09133985-19cc-4795-9c2f-f4ac931f5060",
      "name": "Confirm Save via Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1600,
        432
      ]
    },
    {
      "id": "406d4a53-c1eb-43f2-a58e-1876c2cff9c6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        592
      ],
      "parameters": {
        "width": 242,
        "height": 627,
        "content": "👆 Calls your deployed `article-parser-api` to extract a clean **title** + **content** from the article link sent in Telegram.\n\n**Configure:**\n- Replace the base URL with your own deployment.\n- Pass th"
      }
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Fetch Article Title & Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Highlight + Tag (AI Agent)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Article Title & Content": {
      "main": [
        [
          {
            "node": "Generate Highlight + Tag (AI Agent)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure Metadata for Notion": {
      "main": [
        [
          {
            "node": "Save Article to Notion Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Article to Notion Database": {
      "main": [
        [
          {
            "node": "Confirm Save via Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Highlight + Tag (AI Agent)": {
      "main": [
        [
          {
            "node": "Structure Metadata for Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}