{
  "name": "Enrich lead captured by ConvertKit and save it in Hubspot",
  "nodes": [
    {
      "id": "10e83e54-7043-4894-bc92-be1fb0cfba04",
      "name": "if company does not exist on CRM",
      "type": "n8n-nodes-base.if",
      "position": [
        2120,
        140
      ]
    },
    {
      "id": "0afb1099-c0b8-4316-84ad-0b1d718bf07d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        240
      ],
      "parameters": {
        "width": 257.64008049230523,
        "height": 255.97404402400312,
        "content": "## Setup\n1. Add `Clearbit`, `Hubspot`, and `ConvertKit` credentials\n2. Click on `Test workflow`\n3. Subscribe user to form/list so the event starts the workflow"
      }
    },
    {
      "id": "4b7f0086-49cc-4662-8fba-a31abb25a76a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2340,
        40
      ],
      "parameters": {
        "width": 219.1588560076235,
        "height": 260.45841271216835,
        "content": "Map all data found about the company that you interested in"
      }
    },
    {
      "id": "868af061-52ca-4c3b-870c-21b954da7c64",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        240
      ],
      "parameters": {
        "width": 233.74765680228705,
        "height": 260.45841271216835,
        "content": "Make sure to map the email field from the data your email automation tool provides"
      }
    },
    {
      "id": "d8a8082b-ec9e-4295-b675-0bbf346e5831",
      "name": "Enrich company",
      "type": "n8n-nodes-base.clearbit",
      "position": [
        1560,
        140
      ]
    },
    {
      "id": "ccbe7caf-a256-4273-bedb-ff6b59e1843f",
      "name": "Search company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1860,
        140
      ]
    },
    {
      "id": "8e7ee0cd-7b23-4077-a4c9-3b4e40de0695",
      "name": "Upsert lead",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1560,
        440
      ]
    },
    {
      "id": "d7dde1e3-cd14-4977-8065-a2ec23e97d55",
      "name": "Create company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2400,
        120
      ]
    },
    {
      "id": "c2f3015c-24ce-47ad-bce5-81f85145ef5c",
      "name": "Upsert contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2660,
        120
      ]
    },
    {
      "id": "fe33b776-b30f-44b8-b0db-77c2fd198fc7",
      "name": "Update company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2400,
        420
      ]
    },
    {
      "id": "b7432f23-eb19-48bd-a76b-916c072bfb76",
      "name": "ConvertKit Trigger",
      "type": "n8n-nodes-base.convertKitTrigger",
      "position": [
        580,
        340
      ]
    },
    {
      "id": "97376217-0388-43fd-af20-06ef790e652c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        240
      ],
      "parameters": {
        "width": 225.41119920533646,
        "height": 260.45841271216835,
        "content": "Replace this node with your email automation tool of choice"
      }
    },
    {
      "id": "e19ad9e9-781a-47a6-9a8e-f27d0b0167f1",
      "name": "Filter out personal emails1",
      "type": "n8n-nodes-base.filter",
      "position": [
        780,
        340
      ]
    },
    {
      "id": "b5258a3e-966c-4ac8-ab30-e1727f22db5a",
      "name": "Contact not found, do nothing1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1260,
        540
      ]
    },
    {
      "id": "bd5fc02e-eded-4e67-b880-e94678d7d728",
      "name": "Enrich email",
      "type": "n8n-nodes-base.clearbit",
      "position": [
        980,
        340
      ]
    },
    {
      "id": "972a4bee-6fd5-4c49-9a69-9f4f203e8285",
      "name": "If person has company",
      "type": "n8n-nodes-base.if",
      "position": [
        1260,
        340
      ]
    }
  ],
  "connections": {
    "Enrich email": {
      "main": [
        [
          {
            "node": "If person has company",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Contact not found, do nothing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create company": {
      "main": [
        [
          {
            "node": "Upsert contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich company": {
      "main": [
        [
          {
            "node": "Search company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search company": {
      "main": [
        [
          {
            "node": "if company does not exist on CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ConvertKit Trigger": {
      "main": [
        [
          {
            "node": "Filter out personal emails1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If person has company": {
      "main": [
        [
          {
            "node": "Enrich company",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upsert lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter out personal emails1": {
      "main": [
        [
          {
            "node": "Enrich email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "if company does not exist on CRM": {
      "main": [
        [
          {
            "node": "Create company",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}