{
  "name": "Article to LinkedIn post generator with Telegram, GPT-4 & Google Sheets",
  "nodes": [
    {
      "id": "db3a4a3d-61b5-4563-85a3-f1d6f873caf7",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        976,
        -352
      ]
    },
    {
      "id": "5e307df6-2dfa-4563-b0f4-42a9e1ec3d2e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -480
      ],
      "parameters": {
        "width": 1520,
        "height": 392,
        "content": "# **Step 1: Collect and Analyze Links**\n"
      }
    },
    {
      "id": "41ab2eb9-3208-454b-b90e-69cdad1696bc",
      "name": "Content collector",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        624,
        -352
      ]
    },
    {
      "id": "a7623437-eaea-4532-8095-c9e8cbb7b549",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -64,
        -240
      ]
    },
    {
      "id": "3ca47971-d78c-426d-8606-67bd8c9d43f8",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2032,
        -352
      ]
    },
    {
      "id": "8517de48-6fd4-4eec-aa2e-ef860bf05680",
      "name": "If generate",
      "type": "n8n-nodes-base.if",
      "position": [
        288,
        32
      ]
    },
    {
      "id": "600d6330-cd34-4c03-9486-12022aeda73c",
      "name": "Clean Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1200,
        -352
      ]
    },
    {
      "id": "422e62e0-06ac-482c-b345-956fe22e712f",
      "name": "article or generate?",
      "type": "n8n-nodes-base.if",
      "position": [
        176,
        -240
      ]
    },
    {
      "id": "99cd2918-f4df-477e-ad9b-a0bcf245346d",
      "name": "Set Field",
      "type": "n8n-nodes-base.set",
      "position": [
        416,
        -352
      ]
    },
    {
      "id": "b26e0137-cb6a-44c1-bf30-64b8ef5705fc",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1584,
        -352
      ]
    },
    {
      "id": "96336918-4307-4d5d-9d83-60c21ff90b89",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        -480
      ],
      "parameters": {
        "width": 856,
        "height": 392,
        "content": "# **Step 2: Store data and send a summary message**\n"
      }
    },
    {
      "id": "3e6333d6-ea90-4874-8f07-c2a0bf9b9c6a",
      "name": "Get row(s) in sheet in Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        848,
        272
      ]
    },
    {
      "id": "58edfc02-05a3-4bce-a91f-5b54125e470b",
      "name": "The post",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1120,
        16
      ]
    },
    {
      "id": "209e9e99-fb2c-4d8b-951d-faaace17ff92",
      "name": "Generate LinkedIn Post",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        704,
        16
      ]
    },
    {
      "id": "f2cb565d-2d8f-4a63-ad85-9cb1a71512ae",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        -1056
      ],
      "parameters": {
        "width": 832,
        "height": 1648,
        "content": "# Generate LinkedIn posts from articles you read\n---\n\n⚙️ **How It Works**\n\n**1️⃣ User Sends an Article Link (Telegram Bot)**    The workflow listens to incoming messages.\nWhen the message contains a U"
      }
    },
    {
      "id": "ab17ec27-9393-49cd-bdad-6df3390f5506",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        624,
        -208
      ]
    },
    {
      "id": "a265b2fb-ca43-4b4e-9b6e-9a34bb249111",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        288
      ]
    },
    {
      "id": "b790c674-ddfd-4ef9-96e1-7932e4411a8a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -80
      ],
      "parameters": {
        "width": 1520,
        "height": 672,
        "content": "# **Step 3: LinkedIn post generator on demand**\nOnce the user asks to \"Generate\" a post"
      }
    }
  ],
  "connections": {
    "Set Field": {
      "main": [
        [
          {
            "node": "Content collector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Code": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Clean Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If generate": {
      "main": [
        [
          {
            "node": "Generate LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "article or generate?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content collector": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Content collector",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate LinkedIn Post",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "article or generate?": {
      "main": [
        [
          {
            "node": "Set Field",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate LinkedIn Post": {
      "main": [
        [
          {
            "node": "The post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "Generate LinkedIn Post",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}