{
  "name": "Generate LinkedIn posts using Telegram, Supabase vector DB and OpenAI RAG",
  "nodes": [
    {
      "id": "4bb14abf-a994-42cc-ae2c-794b3f8fffc9",
      "name": "On Telegram Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        560,
        480
      ]
    },
    {
      "id": "68cb5738-cc56-46e1-819b-6edf51d31ebe",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        784,
        560
      ]
    },
    {
      "id": "11eb73d0-a694-468a-9d14-fb83a29297aa",
      "name": "Typing....",
      "type": "n8n-nodes-base.telegram",
      "position": [
        784,
        384
      ]
    },
    {
      "id": "78aadce3-59f1-45b2-a823-9c682b411029",
      "name": "Wrong URL",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1024,
        640
      ]
    },
    {
      "id": "861e1884-8bc0-4592-b974-d6ca8ae38fd6",
      "name": "LinkedIn Post URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1024,
        464
      ]
    },
    {
      "id": "debbf493-7fdb-46c7-a277-d26fac22e849",
      "name": "Scrap Content",
      "type": "n8n-nodes-base.html",
      "position": [
        1264,
        368
      ]
    },
    {
      "id": "65ea81c0-342d-485e-9771-a84719ea41b2",
      "name": "Unable to Scrape",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1264,
        544
      ]
    },
    {
      "id": "fd1d9092-393d-49d2-b693-8bcb2ed61e1a",
      "name": "Upload Document",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        1536,
        368
      ]
    },
    {
      "id": "602d6dad-666f-4b9d-bc37-3d03bbbb66c3",
      "name": "Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1632,
        576
      ]
    },
    {
      "id": "caea9de5-649d-4e25-838c-565e16d712aa",
      "name": "Embeddings",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1504,
        576
      ]
    },
    {
      "id": "0ad1ad5c-00a4-452c-9e08-575d0fe8b8f5",
      "name": "✅ Post Scrapped Sucessfully",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2048,
        368
      ]
    },
    {
      "id": "c19bcbfd-8e9b-43e7-bdb3-6560dda1ed46",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1856,
        368
      ]
    },
    {
      "id": "b816d602-5db4-4d0f-8dc0-8f13cff96dcd",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        208
      ],
      "parameters": {
        "width": 1792,
        "height": 624,
        "content": "## 📌 Viral LinkedIn Post Vector Database\n- Transform any LinkedIn post URL into actionable insights. This workflow scrapes post content via Telegram, stores it in a vector database with AI embeddings,"
      }
    },
    {
      "id": "79e6152b-3ed6-453a-8e22-883f82a6f7af",
      "name": "LinkedIn Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        560,
        1248
      ]
    },
    {
      "id": "9eacf1f3-464d-46d4-833a-2031e27c5656",
      "name": "Hook Analyse Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        752,
        1248
      ]
    },
    {
      "id": "04f3b813-0bf5-4092-bb28-98b616b49591",
      "name": "Post Structure Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1152,
        1248
      ]
    },
    {
      "id": "c98a7b27-f13e-40a4-96ea-3de9d5130bde",
      "name": "Post Generator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1552,
        1248
      ]
    },
    {
      "id": "9bf9eb00-7648-4967-868e-8ad221553f7a",
      "name": "4o mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1136,
        1024
      ]
    },
    {
      "id": "328bc5db-1ed7-4c66-ab9d-41d9e3159974",
      "name": "2.5-flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1312,
        1024
      ]
    },
    {
      "id": "e2c7b0ab-bac7-4a03-9cd5-4aaf45c2ae9b",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        864,
        1472
      ]
    },
    {
      "id": "146a8ee2-28ca-4cf8-871b-43631c961427",
      "name": "5 nano",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1264,
        1680
      ]
    },
    {
      "id": "9559c8eb-7781-48ab-b967-d919b344af42",
      "name": "Structured Output Parser.",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1264,
        1472
      ]
    },
    {
      "id": "1a5c9cb7-208b-484c-b138-f10ce85386fa",
      "name": "Supabase Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        1616,
        1648
      ]
    },
    {
      "id": "66cbb3fb-2587-48d0-893d-8d6b1a47121f",
      "name": "Embeddings.",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1616,
        1824
      ]
    },
    {
      "id": "bc29a541-ff40-4f49-8207-c363a152986b",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1664,
        1472
      ]
    },
    {
      "id": "70d2059b-1b08-4dab-9424-e8c1d5d5e30c",
      "name": "Create a post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1952,
        1248
      ]
    },
    {
      "id": "d1b3ba59-e6be-4cc2-8e44-afc780d75596",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        928
      ],
      "parameters": {
        "width": 1696,
        "height": 1040,
        "content": "## Generate LinkedIn Post using LinkedIn Post Vector Store"
      }
    },
    {
      "id": "fdfec6f9-d470-4664-b840-c55aad0a2fa5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -432,
        208
      ],
      "parameters": {
        "width": 848,
        "height": 2272,
        "content": "# LinkedIn Post Generator with Viral Content Vector Database\n\n## Overview\nAI-powered n8n workflow that creates viral LinkedIn posts by learning from successful content. Features two modules: (1) Teleg"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "LinkedIn Post URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wrong URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "✅ Post Scrapped Sucessfully",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5 nano": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser.",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "4o mini": {
      "ai_languageModel": [
        [
          {
            "node": "Hook Analyse Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Post Structure Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Post Generator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "2.5-flash": {
      "ai_languageModel": [
        [
          {
            "node": "Hook Analyse Agent",
            "type": "ai_languageModel",
            "index": 1
          },
          {
            "node": "Post Structure Agent",
            "type": "ai_languageModel",
            "index": 1
          },
          {
            "node": "Post Generator Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Embeddings": {
      "ai_embedding": [
        [
          {
            "node": "Upload Document",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Data Loader": {
      "ai_document": [
        [
          {
            "node": "Upload Document",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings.": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Form": {
      "main": [
        [
          {
            "node": "Hook Analyse Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrap Content": {
      "main": [
        [
          {
            "node": "Upload Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Document": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Post URL": {
      "main": [
        [
          {
            "node": "Scrap Content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Unable to Scrape",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hook Analyse Agent": {
      "main": [
        [
          {
            "node": "Post Structure Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On Telegram Message": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          },
          {
            "node": "Typing....",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Generator Agent": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Structure Agent": {
      "main": [
        [
          {
            "node": "Post Generator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Supabase Vector Store": {
      "ai_tool": [
        [
          {
            "node": "Post Generator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Hook Analyse Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser.": {
      "ai_outputParser": [
        [
          {
            "node": "Post Structure Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Post Generator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}