{
  "name": "Enrich lead that booked a call on Calendly and save it on Hubspot",
  "nodes": [
    {
      "id": "02cd5c16-de39-4e5c-acf8-fd3287662dfb",
      "name": "if company does not exist on CRM",
      "type": "n8n-nodes-base.if",
      "position": [
        2240,
        140
      ]
    },
    {
      "id": "c1325687-53cf-404f-9f9c-16696be0fcce",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        240
      ],
      "parameters": {
        "width": 257.64008049230523,
        "height": 255.97404402400312,
        "content": "## Setup\n1. Add `Clearbit`, `Hubspot`, and `Calendly` credentials\n2. Click on `Test workflow`\n3. Book meeting on Calendly so the event starts the workflow"
      }
    },
    {
      "id": "8c1f4364-1e5b-4d63-b11d-295a683ace73",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        240
      ],
      "parameters": {
        "width": 225.41119920533646,
        "height": 260.45841271216835,
        "content": "Replace this node with your booking tool of choice"
      }
    },
    {
      "id": "0fd0557e-56da-4b64-8f50-e931022d630b",
      "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": "9fe1367e-1d8b-4384-a920-8a6ebfcbb0db",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        240
      ],
      "parameters": {
        "width": 233.74765680228705,
        "height": 260.45841271216835,
        "content": "Make sure to map the email field from the data your booking tool provides"
      }
    },
    {
      "id": "241835fc-1369-4c67-8de2-ffc86336369f",
      "name": "Enrich company",
      "type": "n8n-nodes-base.clearbit",
      "position": [
        1680,
        140
      ]
    },
    {
      "id": "ba694bd1-0b7a-4caa-b31a-cbde1d77e626",
      "name": "Create company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2520,
        120
      ]
    },
    {
      "id": "b3ce17b4-ea85-4051-9231-67218d8586ea",
      "name": "Upsert contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2780,
        120
      ]
    },
    {
      "id": "b7eb2b8d-4460-4aa3-b78d-fa5d575b0577",
      "name": "Update company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2520,
        420
      ]
    },
    {
      "id": "7215afb3-c9af-4b94-bb55-6cd95c075af5",
      "name": "Contact not found, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1380,
        600
      ]
    },
    {
      "id": "97bcd33e-333b-4e2f-a450-e415c774e1b1",
      "name": "Enrich email",
      "type": "n8n-nodes-base.clearbit",
      "position": [
        1100,
        340
      ]
    },
    {
      "id": "1a759054-07ea-44eb-bfa5-d487630f84d0",
      "name": "Filter out personal emails",
      "type": "n8n-nodes-base.filter",
      "position": [
        920,
        340
      ]
    },
    {
      "id": "17905d5e-bdc6-4419-b10e-5f390b92f269",
      "name": "Search company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1980,
        140
      ]
    },
    {
      "id": "c3eff32b-a767-4165-9424-112cb85c8949",
      "name": "Upsert lead",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1680,
        440
      ]
    },
    {
      "id": "55aaa7fc-d138-499a-8246-57e978062a20",
      "name": "If person has a company",
      "type": "n8n-nodes-base.if",
      "position": [
        1380,
        340
      ]
    },
    {
      "id": "372c6118-5670-4afb-8e1d-df61c24acfd3",
      "name": "Calendly Trigger",
      "type": "n8n-nodes-base.calendlyTrigger",
      "position": [
        720,
        340
      ]
    }
  ],
  "connections": {
    "Enrich email": {
      "main": [
        [
          {
            "node": "If person has a company",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Contact not found, do nothing",
            "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
          }
        ]
      ]
    },
    "Calendly Trigger": {
      "main": [
        [
          {
            "node": "Filter out personal emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If person has a company": {
      "main": [
        [
          {
            "node": "Enrich company",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upsert lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter out personal emails": {
      "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
          }
        ]
      ]
    }
  }
}