{
  "name": "Automatically sync Beex leads to HubSpot (Create & Update)",
  "nodes": [
    {
      "id": "9797c1ac-6392-4f62-873b-f312d7021f6a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 528,
        "height": 1088,
        "content": "## Sync Beex Leads to HubSpot\n\n> **Disclaimer:** This workflow requires the community node `n8n-nodes-beex`\n\n### Overview\n\nThis workflow listens for **lead creation and update events** from Beex via a"
      }
    },
    {
      "id": "4ba61631-2c1c-4ce8-b97f-beb5b0ee5667",
      "name": "Routing",
      "type": "n8n-nodes-base.switch",
      "position": [
        1600,
        528
      ]
    },
    {
      "id": "3e4110d9-50a3-45b0-b927-5ac56be2ff26",
      "name": "Update Contact",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1824,
        624
      ]
    },
    {
      "id": "c4fba358-7d67-4b12-8bdc-10bdbaaf5629",
      "name": "¿Email Null?",
      "type": "n8n-nodes-base.filter",
      "position": [
        1168,
        528
      ]
    },
    {
      "id": "b0486c6a-6dd6-47e6-b24c-a6e3b0f79ae7",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        304
      ],
      "parameters": {
        "width": 528,
        "height": 480,
        "content": "## HTTP Requests (Routing + Create/Update)"
      }
    },
    {
      "id": "4c944d2c-88ad-4894-9043-76bab5a45da5",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        304
      ],
      "parameters": {
        "width": 496,
        "height": 480,
        "content": "## Trigger Node (Beex Trigger + Format)\n- Link the webhook **URL** on the Beex platform\n- We convert the input data into flat JSON.\n"
      }
    },
    {
      "id": "c9825a97-ddb9-41ac-b783-1f3db9fc58cd",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        304
      ],
      "parameters": {
        "width": 384,
        "height": 480,
        "content": "## Filter and Set Fields\n- Leads without an email address are filtered out.\n- The fields to be configured must have the same name as the properties in HubSpot."
      }
    },
    {
      "id": "cbf52c75-156e-49a8-bb93-9f24b5898487",
      "name": "Create Contact",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1824,
        432
      ]
    },
    {
      "id": "a290b1cb-5767-4509-a21f-e5529318eb3b",
      "name": "Beex Trigger",
      "type": "n8n-nodes-beex.beexTrigger",
      "position": [
        704,
        528
      ]
    },
    {
      "id": "4af24a23-2a25-46a9-a4a7-07489e91f1fe",
      "name": "Format",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        528
      ]
    },
    {
      "id": "3289fc09-5bb3-4ec1-bc24-600888d396ab",
      "name": "Set Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1360,
        528
      ]
    }
  ],
  "connections": {
    "Format": {
      "main": [
        [
          {
            "node": "¿Email Null?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Routing": {
      "main": [
        [
          {
            "node": "Create Contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Fields": {
      "main": [
        [
          {
            "node": "Routing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Beex Trigger": {
      "main": [
        [
          {
            "node": "Format",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "¿Email Null?": {
      "main": [
        [
          {
            "node": "Set Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}