{
  "name": "Generate qualified leads from LinkedIn with Apify, GPT-4, and Airtable",
  "nodes": [
    {
      "id": "398b747b-1340-43b7-9c9e-49cd948711b4",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        80,
        520
      ]
    },
    {
      "id": "edit-variables-node",
      "name": "Edit Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        520
      ]
    },
    {
      "id": "87b76690-123f-4bce-ba3f-4752b143276a",
      "name": "Scrape LinkedIn Jobs",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        420,
        520
      ]
    },
    {
      "id": "1878c155-6e6d-4600-ae4c-defca1acc6a1",
      "name": "Split Job Data",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        600,
        520
      ]
    },
    {
      "id": "2dc5487e-dec2-42c6-84fd-96bb8d4c3955",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        820,
        520
      ]
    },
    {
      "id": "b8fde371-32bc-473e-be51-9927a5c0d660",
      "name": "Clean Data Format",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        520
      ]
    },
    {
      "id": "afda4d35-13d0-4cda-9cb9-4a2286b9b184",
      "name": "Get Existing Leads",
      "type": "n8n-nodes-base.airtable",
      "position": [
        80,
        780
      ]
    },
    {
      "id": "677427b0-7d4e-4d9d-b429-c30325737106",
      "name": "Categorize Leads",
      "type": "n8n-nodes-base.code",
      "position": [
        360,
        780
      ]
    },
    {
      "id": "9a6b3cde-c69a-44a4-8540-2487aeecfbb2",
      "name": "Route Leads",
      "type": "n8n-nodes-base.switch",
      "position": [
        1080,
        780
      ]
    },
    {
      "id": "e2e6007c-7516-4cc0-b9fb-95177b325ed6",
      "name": "Filter by Company Size",
      "type": "n8n-nodes-base.filter",
      "position": [
        1560,
        440
      ]
    },
    {
      "id": "2da665f1-7988-4d00-bf3f-27ac773bdbb1",
      "name": "Process in Batches",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1980,
        440
      ]
    },
    {
      "id": "7c5374bf-e25c-4230-bb8d-93003584912c",
      "name": "AI Lead Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2340,
        460
      ]
    },
    {
      "id": "a97f82fd-539f-44a5-a377-a39dfc155ee6",
      "name": "OpenAI GPT-4 Mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2340,
        160
      ]
    },
    {
      "id": "752cc07b-2148-432f-bef5-f7bf84444d10",
      "name": "Structure AI Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2500,
        160
      ]
    },
    {
      "id": "58e36890-5c35-4ee8-9908-f8bdf5691c2b",
      "name": "Save to Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2800,
        460
      ]
    },
    {
      "id": "d2b3b56f-a0ef-44c2-b73f-5acdb3a51391",
      "name": "Workflow Complete",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1540,
        1140
      ]
    },
    {
      "id": "91825cfc-5906-4257-9f43-4cab81b1f34e",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 1300,
        "height": 400,
        "content": "## 🎯 Qualified Finance Lead Generation\n\n**Generate high-quality finance leads from LinkedIn**\n\n### Required:\n✅ Airtable (Free tier OK)\n✅ Apify (14-day trial) \n✅ OpenAI (Pay-per-use)\n\n### What it does:"
      }
    },
    {
      "id": "358381b4-7086-45db-a75d-76dec377bb18",
      "name": "Data Collection",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        400
      ],
      "parameters": {
        "width": 1300,
        "height": 400,
        "content": "## 📊 Data Collection\n\n**LinkedIn Job Scraping**\n- Apify scraper for reliable data\n- Configurable search parameters\n- Company & job information\n\n**Data Processing**\n- Remove duplicates\n- Filter by comp"
      }
    },
    {
      "id": "83bfb584-0856-4df8-8ad6-68870c9302bf",
      "name": "Lead Intelligence",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        800
      ],
      "parameters": {
        "width": 1300,
        "height": 520,
        "content": "## 🔄 Lead Intelligence\n\n**Smart Categorization**\n- Category 1: New leads (process with AI)\n- Category 2: Incomplete leads\n- Category 3: Complete leads (skip)\n\n**Benefits**\n- Reduces API costs\n- Avoids"
      }
    },
    {
      "id": "0129e4dc-e119-4db8-9c46-8bb0db273626",
      "name": "AI Qualification",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1300,
        0
      ],
      "parameters": {
        "width": 1800,
        "height": 600,
        "content": "## 🤖 AI-Powered Qualification\n\n**GPT-4 Mini Analysis**\n- Company categorization\n- Finance role validation  \n- Seniority assessment\n- Job summarization\n\n**Structured Output**\n- JSON schema validation\n-"
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Edit Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Leads": {
      "main": [
        [
          {
            "node": "Filter by Company Size",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Workflow Complete",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Workflow Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Variables": {
      "main": [
        [
          {
            "node": "Scrape LinkedIn Jobs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Job Data": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Lead Analyzer": {
      "main": [
        [
          {
            "node": "Save to Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Categorize Leads": {
      "main": [
        [
          {
            "node": "Route Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Airtable": {
      "main": [
        [
          {
            "node": "Process in Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Data Format": {
      "main": [
        [
          {
            "node": "Get Existing Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Mini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Lead Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Clean Data Format",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Existing Leads": {
      "main": [
        [
          {
            "node": "Categorize Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process in Batches": {
      "main": [
        [],
        [
          {
            "node": "AI Lead Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure AI Output": {
      "ai_outputParser": [
        [
          {
            "node": "AI Lead Analyzer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Scrape LinkedIn Jobs": {
      "main": [
        [
          {
            "node": "Split Job Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Company Size": {
      "main": [
        [
          {
            "node": "Process in Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}