{
  "name": "Lead enrichment pipeline: Leadfeeder to Apollo to Google Sheets",
  "nodes": [
    {
      "id": "a2faf2da-24c3-4972-994d-9dabe6feb7a6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e4218112-f685-4ade-8265-365cf01382f7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        512
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7ffd56d9-f27d-41e3-95d4-6b3a55bcc1da",
      "name": "Daily Trigger (9 AM)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        112,
        288
      ]
    },
    {
      "id": "7515cbdd-ef25-45dd-9118-5d8b9eef2569",
      "name": "Fetch Leadfeeder Account ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        352,
        288
      ]
    },
    {
      "id": "3a901947-6a9d-4240-b8e3-80a0e603618b",
      "name": "Generate Pagination Sequence",
      "type": "n8n-nodes-base.code",
      "position": [
        576,
        288
      ]
    },
    {
      "id": "4657e075-050e-4e99-a214-dbb30b5f2221",
      "name": "Pagination Controller",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        800,
        288
      ]
    },
    {
      "id": "15f367cc-6031-4440-a13d-952cbc09e245",
      "name": "Assign Current Page Number",
      "type": "n8n-nodes-base.set",
      "position": [
        1024,
        208
      ]
    },
    {
      "id": "86fc67c9-12e5-4dfa-9b63-d49f9059d4e8",
      "name": "Retrieve Lead Data (Leadfeeder)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1248,
        208
      ]
    },
    {
      "id": "7db9202f-9978-4716-9016-7cf2056b3f07",
      "name": "Check Last Page Condition",
      "type": "n8n-nodes-base.if",
      "position": [
        1472,
        208
      ]
    },
    {
      "id": "aebd0481-ac90-4494-bff9-e8d11fc17a30",
      "name": "Extract Leads (Last Page)",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1696,
        96
      ]
    },
    {
      "id": "230f4943-0fbd-4cde-a22c-f60123b65f74",
      "name": "Enrich with Apollo (Last Page)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1920,
        96
      ]
    },
    {
      "id": "791cd99d-59d4-4746-bec5-e59cffe11b28",
      "name": "Save Leads to Google Sheets (Last Page)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2144,
        96
      ]
    },
    {
      "id": "26c5e81a-027a-4466-ba34-ce3580d958ba",
      "name": "Extract Leads (Full Page)",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1696,
        304
      ]
    },
    {
      "id": "e7f593b8-edb3-4aa4-86d3-3f553457a3ff",
      "name": "Enrich with Apollo (Full Page)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1920,
        304
      ]
    },
    {
      "id": "78ccfdc1-8bd7-4425-b270-4322c248d9c5",
      "name": "Save Leads to Google Sheets (Full Page)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2144,
        304
      ]
    },
    {
      "id": "aba38dd5-79eb-41c5-8dda-111fa923ef82",
      "name": "Rate Limit Delay (40s)",
      "type": "n8n-nodes-base.wait",
      "position": [
        2368,
        384
      ]
    },
    {
      "id": "9bbd30ee-e365-4e11-a462-8efc1eba2ccb",
      "name": "Workflow Error Listener",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        64,
        608
      ]
    },
    {
      "id": "2fabef88-4742-4f4d-9cb6-85fabd53fc16",
      "name": "Format Error Report",
      "type": "n8n-nodes-base.code",
      "position": [
        288,
        608
      ]
    },
    {
      "id": "6237a74a-7f4b-4277-9e8c-a2b6c964dc31",
      "name": "Send Alert to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        496,
        608
      ]
    },
    {
      "id": "149e66d0-8679-41d9-958e-b9c6ecf210ec",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        656
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d34dba88-59a0-4efd-83b3-7148579daa86",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        656
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c9bdf4b3-e4fc-4e56-8e98-eedd2e0951dd",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1728,
        656
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0db97b64-7a09-4bfe-a473-80e6429a7e5e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2192,
        656
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Format Error Report": {
      "main": [
        [
          {
            "node": "Send Alert to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger (9 AM)": {
      "main": [
        [
          {
            "node": "Fetch Leadfeeder Account ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pagination Controller": {
      "main": [
        [],
        [
          {
            "node": "Assign Current Page Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rate Limit Delay (40s)": {
      "main": [
        [
          {
            "node": "Pagination Controller",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Error Listener": {
      "main": [
        [
          {
            "node": "Format Error Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Last Page Condition": {
      "main": [
        [
          {
            "node": "Extract Leads (Last Page)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Leads (Full Page)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Leads (Full Page)": {
      "main": [
        [
          {
            "node": "Enrich with Apollo (Full Page)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Leads (Last Page)": {
      "main": [
        [
          {
            "node": "Enrich with Apollo (Last Page)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign Current Page Number": {
      "main": [
        [
          {
            "node": "Retrieve Lead Data (Leadfeeder)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Leadfeeder Account ID": {
      "main": [
        [
          {
            "node": "Generate Pagination Sequence",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Pagination Sequence": {
      "main": [
        [
          {
            "node": "Pagination Controller",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich with Apollo (Full Page)": {
      "main": [
        [
          {
            "node": "Save Leads to Google Sheets (Full Page)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich with Apollo (Last Page)": {
      "main": [
        [
          {
            "node": "Save Leads to Google Sheets (Last Page)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Lead Data (Leadfeeder)": {
      "main": [
        [
          {
            "node": "Check Last Page Condition",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Leads to Google Sheets (Full Page)": {
      "main": [
        [
          {
            "node": "Rate Limit Delay (40s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}