{
  "name": "Outreach for your product using Apollo, LinkedIn, GPT-4.1 and SendGrid",
  "nodes": [
    {
      "id": "63af4c83-7aae-485d-8f84-84d51148874d",
      "name": "Apollo Scraper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2760,
        -320
      ]
    },
    {
      "id": "4bce359d-0cea-4155-b596-f82cd0491d66",
      "name": "Required Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2940,
        -320
      ]
    },
    {
      "id": "43b754c0-91e0-4559-b8f1-f05e6a6dc623",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        2580,
        -320
      ]
    },
    {
      "id": "b742c3ec-1a3c-4274-9716-75638b545f4a",
      "name": "Supabase",
      "type": "n8n-nodes-base.supabase",
      "position": [
        3140,
        -320
      ]
    },
    {
      "id": "e86c3301-442a-4a71-a772-29e4c0528cbf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2520,
        -600
      ],
      "parameters": {
        "width": 820,
        "height": 460,
        "content": "## Lead Collector\n\n\n## 1. Go to apollo.io, use filters and after that copy the link from tab and paste that in the http node url section (paste inside the \"\").\n## 2. Pay for APify to get more data\n## "
      }
    },
    {
      "id": "0324b737-19f1-47ad-adba-24f504bd846f",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        4820,
        740
      ]
    },
    {
      "id": "98d9aa9f-d7e9-4719-9f2a-c4b8131bab68",
      "name": "Story",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4600,
        560
      ]
    },
    {
      "id": "8eae5dd1-f6df-4a3a-a592-6e5e93525514",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        5020,
        500
      ]
    },
    {
      "id": "b7c0f891-ba44-499a-9200-54b150554f2f",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        5400,
        680
      ]
    },
    {
      "id": "b40150f2-4fed-47a5-8139-475c232545d9",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        5200,
        500
      ]
    },
    {
      "id": "7f8f830d-1db2-4b1e-8eb7-4f42191fef3d",
      "name": "HTML Modifier",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5420,
        500
      ]
    },
    {
      "id": "7cce232a-dabc-4a1a-9b08-fb81d223be6c",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        2480,
        680
      ]
    },
    {
      "id": "3b7621a2-e10f-4cd2-9bef-3a35734cf256",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        4000,
        320
      ]
    },
    {
      "id": "bbaf969a-6287-42e1-aee2-694d69bbf2a3",
      "name": "Aggregate1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        3180,
        600
      ]
    },
    {
      "id": "eb12db12-0a58-47e9-aed9-913c50fbebf7",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        3020,
        600
      ]
    },
    {
      "id": "06b5cb2b-d08a-40f6-b6db-9ba841dd6e60",
      "name": "LinkedIn Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2480,
        480
      ]
    },
    {
      "id": "a6b4b60f-9ea6-43fd-863d-9b434af3bd65",
      "name": "LinkedIn Posts",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        680
      ]
    },
    {
      "id": "eba257da-fdde-458e-a00e-751642528380",
      "name": "Summery+First Name",
      "type": "n8n-nodes-base.set",
      "position": [
        2640,
        480
      ]
    },
    {
      "id": "c86745b3-fdd1-42b0-b504-56f6985f00ed",
      "name": "Last 5 Posts",
      "type": "n8n-nodes-base.set",
      "position": [
        2780,
        680
      ]
    },
    {
      "id": "eb735ea3-8163-4690-9039-095cdc687c4c",
      "name": "Check Null Values",
      "type": "n8n-nodes-base.if",
      "position": [
        3400,
        600
      ]
    },
    {
      "id": "0bc317fe-0a8f-436d-a556-ef6f506a204f",
      "name": "Relevance Check",
      "type": "n8n-nodes-base.if",
      "position": [
        4200,
        180
      ]
    },
    {
      "id": "bd03e4d8-4fa9-44bb-9e94-3412810ac54b",
      "name": "Irrelevant Leads",
      "type": "n8n-nodes-base.supabase",
      "position": [
        4240,
        660
      ]
    },
    {
      "id": "33fc8056-3f9a-4329-9c5d-613f52a5e69f",
      "name": "Successful Outreach",
      "type": "n8n-nodes-base.supabase",
      "position": [
        5740,
        700
      ]
    },
    {
      "id": "475977b6-cc71-45f7-bc2b-cfd6141e8263",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        4520,
        740
      ]
    },
    {
      "id": "57f33280-8434-4945-8e3b-24a27eb92c01",
      "name": "Name",
      "type": "n8n-nodes-base.set",
      "position": [
        3800,
        480
      ]
    },
    {
      "id": "bc14615f-7af4-4958-8845-47d7a7be0de5",
      "name": "History",
      "type": "n8n-nodes-base.set",
      "position": [
        3800,
        660
      ]
    },
    {
      "id": "b8d4ceb7-bdfd-4abc-a12d-15dee5eaf31c",
      "name": "Merge2",
      "type": "n8n-nodes-base.merge",
      "position": [
        4480,
        240
      ]
    },
    {
      "id": "401c61cf-8d1e-48a8-9f6e-e83e49e45a8f",
      "name": "Aggregate2",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        4660,
        240
      ]
    },
    {
      "id": "999f524d-22f7-447a-930b-6b95ad12a90c",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        4840,
        240
      ]
    },
    {
      "id": "6cb4c7db-1a41-4a0c-9ab8-6cdbd8a3c050",
      "name": "All Done",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2480,
        240
      ]
    },
    {
      "id": "5e5fba3e-a950-4425-993d-b82f0b32d8db",
      "name": "SendGrid",
      "type": "n8n-nodes-base.sendGrid",
      "position": [
        5760,
        500
      ]
    },
    {
      "id": "bc32ff25-c629-487f-89e2-6311afa4a6ed",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3740,
        340
      ]
    },
    {
      "id": "ffb55b9c-7480-4907-9bd0-5cc427b67b3d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2040,
        -120
      ],
      "parameters": {
        "width": 3960,
        "height": 1160,
        "content": "## Hyper-Personalised Mail Generator \n\n\n## 1. Add twilio for smtp(manages everything for you).\n## 2. Pay for rapid api otherwise the flow will fail after 20-25 scrapes in free tier.\n## 3. Pay for supa"
      }
    },
    {
      "id": "db19ec1f-6a6b-4c17-b6ba-1f015d686084",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        2140,
        600
      ]
    },
    {
      "id": "1c8cb7dd-627d-49f9-a92a-d1c6b24a9a0d",
      "name": "User Profiling according to Product",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3780,
        160
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "LinkedIn Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Name": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Story": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Aggregate2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "History": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "SendGrid": {
      "main": [
        [
          {
            "node": "Successful Outreach",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "HTML Modifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Check Null Values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate2": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Last 5 Posts": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "HTML Modifier": {
      "main": [
        [
          {
            "node": "SendGrid",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Data": {
      "main": [
        [
          {
            "node": "Summery+First Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Required Data": {
      "main": [
        [
          {
            "node": "Supabase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apollo Scraper": {
      "main": [
        [
          {
            "node": "Required Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Posts": {
      "main": [
        [
          {
            "node": "Last 5 Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Relevance Check": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Irrelevant Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Irrelevant Leads": {
      "main": [
        [
          {
            "node": "All Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Null Values": {
      "main": [
        [
          {
            "node": "User Profiling according to Product",
            "type": "main",
            "index": 0
          },
          {
            "node": "Name",
            "type": "main",
            "index": 0
          },
          {
            "node": "History",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "All Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "User Profiling according to Product",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "HTML Modifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Story",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Summery+First Name": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Successful Outreach": {
      "main": [
        [
          {
            "node": "All Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Story",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "User Profiling according to Product",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "LinkedIn Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Apollo Scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User Profiling according to Product": {
      "main": [
        [
          {
            "node": "Relevance Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}