{
  "name": "Discover and enrich competitor clients with PredictLeads and Google Sheets",
  "nodes": [
    {
      "id": "3034a08d-3447-4906-8ef3-7bdb8b5ca38f",
      "name": "About This Workflow",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        208
      ],
      "parameters": {
        "width": 420,
        "height": 400,
        "content": "ABOUT THIS WORKFLOW\n\nTakes a list of competitor domains, discovers their clients through PredictLeads connections API, enriches each client with company data, and exports everything to Google Sheets.\n"
      }
    },
    {
      "id": "601ada32-a658-4666-8c30-24356bd22a47",
      "name": "📌 INPUT",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -768,
        -128
      ],
      "parameters": {
        "width": 520,
        "height": 748,
        "content": "## 1️⃣ Trigger & Competitor Source\n\n**Nodes:**  \n▶️ Manual Trigger → 📋 Read Competitors\n\n**Description:**  \nThe workflow starts with a manual trigger, allowing the user to run the process whenever com"
      }
    },
    {
      "id": "25501765-9ac9-42f0-a6f2-c96d21687d16",
      "name": "🔍 DISCOVERY",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -128
      ],
      "parameters": {
        "width": 740,
        "height": 748,
        "content": "## 2️⃣ Client Discovery from Competitors\n\n**Nodes:**  \n🔄 Loop Competitors → 🔍 Fetch Connections → ⚙️ Extract Client Domains\n\n**Description:**  \nEach competitor domain is processed individually using a"
      }
    },
    {
      "id": "5bb27d7c-675f-4667-a14f-2e3f3197580f",
      "name": "🔍 ENRICHMENT",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        -176
      ],
      "parameters": {
        "width": 740,
        "height": 796,
        "content": "## 3️⃣ Client Company Enrichment\n\n**Nodes:**  \n🔄 Loop Clients → 🔍 Enrich Client Company → ⚙️ Format Output Row\n\n**Description:**  \nEach discovered client domain is processed individually.\n\nThe workflo"
      }
    },
    {
      "id": "338cb3da-a85f-4b73-a051-297b26d6d750",
      "name": "📤 OUTPUT",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        -80
      ],
      "parameters": {
        "width": 400,
        "height": 700,
        "content": "## 4️⃣ Data Export & Reporting\n\n**Nodes:**  \n📊 Write to Google Sheets\n\n**Description:**  \nThe enriched client data is appended to a **Google Sheets output table**.\n\nEach row represents a discovered cl"
      }
    },
    {
      "id": "5a81d9a0-fa40-4caf-8315-406713cad7e9",
      "name": "▶️ Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -672,
        400
      ]
    },
    {
      "id": "dfeb5d9c-e4d3-45e4-be9d-3391a6b109c9",
      "name": "📋 Read Competitors",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -464,
        400
      ]
    },
    {
      "id": "241d5879-9189-453f-be3d-15afa78275e7",
      "name": "🔄 Loop Competitors",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -112,
        400
      ]
    },
    {
      "id": "7ac48d82-4dd0-4d08-825e-c303a2598c48",
      "name": "🔍 Fetch Connections",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        112,
        416
      ]
    },
    {
      "id": "5543f536-32f3-4cf0-9213-77a311a6ec49",
      "name": "⚙️ Extract Client Domains",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        416
      ]
    },
    {
      "id": "49dfa78c-8001-4665-9416-6993fcb45c9e",
      "name": "🔄 Loop Clients",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        688,
        416
      ]
    },
    {
      "id": "7bbee9ce-1104-438c-b79d-70a17d74e125",
      "name": "🔍 Enrich Client Company",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        928,
        432
      ]
    },
    {
      "id": "f97556ca-dba9-40ba-b800-b047ee66fb3f",
      "name": "⚙️ Format Output Row",
      "type": "n8n-nodes-base.code",
      "position": [
        1152,
        432
      ]
    },
    {
      "id": "7327eaed-b63c-4ae5-bd2b-ea321136ebc4",
      "name": "📊 Write to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1504,
        432
      ]
    }
  ],
  "connections": {
    "🔄 Loop Clients": {
      "main": [
        [
          {
            "node": "🔄 Loop Competitors",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🔍 Enrich Client Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "▶️ Manual Trigger": {
      "main": [
        [
          {
            "node": "📋 Read Competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Read Competitors": {
      "main": [
        [
          {
            "node": "🔄 Loop Competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Loop Competitors": {
      "main": [
        [],
        [
          {
            "node": "🔍 Fetch Connections",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Fetch Connections": {
      "main": [
        [
          {
            "node": "⚙️ Extract Client Domains",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Format Output Row": {
      "main": [
        [
          {
            "node": "📊 Write to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Enrich Client Company": {
      "main": [
        [
          {
            "node": "⚙️ Format Output Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Write to Google Sheets": {
      "main": [
        [
          {
            "node": "🔄 Loop Clients",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Extract Client Domains": {
      "main": [
        [
          {
            "node": "🔄 Loop Clients",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}