{
  "name": "Sync LinkedIn profile visitors into HubSpot CRM leads with ConnectSafely.ai and Apify",
  "nodes": [
    {
      "id": "4e71ad18-ba8c-4442-89a5-92df9be70757",
      "name": "Run an Actor and get dataset",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        3600,
        1488
      ]
    },
    {
      "id": "ac6809a5-5284-4b9a-9b4d-0c0067d4b584",
      "name": "Check if Contact is eligible to add into CRM",
      "type": "n8n-nodes-base.if",
      "position": [
        3824,
        1488
      ]
    },
    {
      "id": "ad58a142-efa1-483f-8328-5b09c6c85094",
      "name": "Create or update a contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        4048,
        1408
      ]
    },
    {
      "id": "9ee40226-e5c0-4553-b5a9-62990ecb22da",
      "name": "Replace Me",
      "type": "n8n-nodes-base.noOp",
      "position": [
        4272,
        1552
      ]
    },
    {
      "id": "d60b0f37-6d10-4940-9a99-43bcba97dc67",
      "name": "📤 Split Comments Array",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        3152,
        1552
      ]
    },
    {
      "id": "e14ea4df-5ba5-4b67-b05e-db450a013246",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2928,
        1552
      ]
    },
    {
      "id": "0f637b6e-8876-4710-9abe-dc8c1f811791",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2704,
        1456
      ]
    },
    {
      "id": "784d09b2-32ca-41b0-a5b7-09c68fe02e5c",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        2704,
        1648
      ]
    },
    {
      "id": "704cd2e0-53ea-4cc2-9ed7-3075c8a20228",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        3376,
        1552
      ]
    },
    {
      "id": "0ebda2fe-c0d8-4bfa-95f3-920a21f54a50",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        1008
      ],
      "parameters": {
        "width": 544,
        "height": 1060,
        "content": "@[youtube](pWa6g_ln1pY)\n\n## Sync LinkedIn Profile Visitors to HubSpot CRM\n\nAutomatically capture LinkedIn profile visitors and add them as contacts in HubSpot CRM with enriched data.\n\n### Who is this "
      }
    },
    {
      "id": "4e00e57a-5672-43d4-932a-7e3819ea2e47",
      "name": "Section 1 - Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        1296
      ],
      "parameters": {
        "width": 232,
        "height": 504,
        "content": "## 1. Trigger\nRuns weekly on schedule or manually for testing."
      }
    },
    {
      "id": "28e37b17-9805-4cb0-a488-9c8766379b0b",
      "name": "Section 2 - Fetch Visitors",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2880,
        1424
      ],
      "parameters": {
        "width": 432,
        "height": 280,
        "content": "## 2. Fetch Visitors\nRetrieves LinkedIn profile visitors via ConnectSafely.ai API and splits into individual records."
      }
    },
    {
      "id": "82bc3590-dbf5-40d7-8145-579f03d5ec38",
      "name": "Section 3 - Enrich and Validate",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3536,
        1392
      ],
      "parameters": {
        "width": 448,
        "height": 280,
        "content": "## 3. Enrich and Validate\nEnriches visitor data via Apify and validates email exists before CRM sync."
      }
    },
    {
      "id": "c6681f91-3ca1-426b-bbe2-0edf5555c3f5",
      "name": "Section 4 - CRM Sync",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4016,
        1264
      ],
      "parameters": {
        "width": 552,
        "height": 536,
        "content": "## 4. CRM Sync\nCreates or updates contact in HubSpot with enriched profile data."
      }
    }
  ],
  "connections": {
    "Replace Me": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "📤 Split Comments Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Run an Actor and get dataset",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📤 Split Comments Array": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create or update a contact": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run an Actor and get dataset": {
      "main": [
        [
          {
            "node": "Check if Contact is eligible to add into CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Contact is eligible to add into CRM": {
      "main": [
        [
          {
            "node": "Create or update a contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}