{
  "name": "Turn closed-won HubSpot deals into lookalike prospects with CompanyEnrich",
  "nodes": [
    {
      "id": "8ffe9d28-e2ac-4944-8a3e-a4885d59570d",
      "name": "HubSpot Get Companies",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        784,
        0
      ]
    },
    {
      "id": "48c631ab-0c40-432a-9a3f-64145715599d",
      "name": "Extract Domain",
      "type": "n8n-nodes-base.function",
      "position": [
        1072,
        0
      ]
    },
    {
      "id": "c24adfbd-c9cd-44e1-b4de-74fd9777c39d",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1408,
        16
      ]
    },
    {
      "id": "49d30f0e-9c71-4827-b4ac-1a655740b434",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1216,
        0
      ]
    },
    {
      "id": "a643226b-e609-479e-ae05-c6300a28f1d4",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1552,
        16
      ]
    },
    {
      "id": "f27db202-e1a4-4a93-a1f5-8ce1b65064b5",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        1696,
        16
      ]
    },
    {
      "id": "987d2638-b3b6-450c-9be2-9f71d6b145c9",
      "name": "Append or update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1840,
        16
      ]
    },
    {
      "id": "ccdbd7ea-211d-46e4-9417-ec9b34058d54",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -464
      ],
      "parameters": {
        "width": 512,
        "height": 656,
        "content": "## Turn Closed-Won Deals in HubSpot into Lookalike Prospects with CompanyEnrich\n\n### 📌 How This Workflow Works?\n1. **Schedule Trigger:** Executes the workflow start of every week and get your best cus"
      }
    },
    {
      "id": "bc2225e0-ed12-4af2-9969-94de6e0f2199",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        624,
        0
      ]
    },
    {
      "id": "5a933ec5-2103-430f-aaef-6984d9aadd26",
      "name": "Filter Best",
      "type": "n8n-nodes-base.function",
      "position": [
        928,
        0
      ]
    },
    {
      "id": "0c94989f-669a-4f2a-a63c-f6c43089b0e3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        -160
      ],
      "parameters": {
        "width": 384,
        "height": 352,
        "content": "## Update Sheet\n\n### ⚠️ Avoid Duplicates \nYour sheet must contain a column named: domain\nThe workflow uses this column to detect existing companies"
      }
    },
    {
      "id": "f401e45d-9fd5-4a49-a7f0-e24b752c5952",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -192
      ],
      "parameters": {
        "width": 544,
        "height": 384,
        "content": "## Schedule Trigger and Filter\n\n1. Change the interval at which the workflow runs inside schedule trigger node.\n2. Adjust the **Top_Percent** value in the Filter node code:\n   - Use higher values (10–"
      }
    },
    {
      "id": "5d925dfd-84eb-4ff7-9c44-c1aa807731aa",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        -144
      ],
      "parameters": {
        "width": 288,
        "height": 336,
        "content": "## Enrichment Loop\n\nEnter your CompanyEnrich API key in the **HTTP Request** node where it says `YOUR_API_KEY`.\n"
      }
    }
  ],
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Best": {
      "main": [
        [
          {
            "node": "Extract Domain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Domain": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HubSpot Get Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot Get Companies": {
      "main": [
        [
          {
            "node": "Filter Best",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append or update row in sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}