{
  "name": "Enrich HubSpot companies with Bedrijfsdata.nl",
  "nodes": [
    {
      "id": "841f4da5-7a5f-4d54-ac48-4c37d7437beb",
      "name": "Hubspot - Company - Enrichment request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -16,
        0
      ]
    },
    {
      "id": "483ba532-1775-42b8-95c3-189170052ebf",
      "name": "Get TEST Company Data",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        496,
        32
      ]
    },
    {
      "id": "87781cab-5d7a-46b8-af7f-20efddf33236",
      "name": "Is TEST Mode?",
      "type": "n8n-nodes-base.if",
      "position": [
        496,
        -112
      ]
    },
    {
      "id": "9600d2e3-d397-4f2f-aa1f-3937055d0420",
      "name": "Validate Incoming Data",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        0
      ]
    },
    {
      "id": "ad1b73d5-bd6f-4207-b18d-c2cfb3e73834",
      "name": "Enrich company data",
      "type": "@bedrijfsdatanl/n8n-nodes-bedrijfsdata.bedrijfsdata",
      "position": [
        1184,
        32
      ]
    },
    {
      "id": "53635275-968e-4f70-81ab-b67c4064b1fb",
      "name": "Has Known Bedrijfsdata ID",
      "type": "n8n-nodes-base.if",
      "position": [
        960,
        32
      ]
    },
    {
      "id": "0c370c1f-7e68-48f5-aa10-c004c619c74e",
      "name": "Get company",
      "type": "@bedrijfsdatanl/n8n-nodes-bedrijfsdata.bedrijfsdata",
      "position": [
        1184,
        -304
      ]
    },
    {
      "id": "cc4a6457-d12f-48d7-b0b7-deffcdf281a8",
      "name": "Update a company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1936,
        16
      ]
    },
    {
      "id": "8a39e467-3b25-4e5c-9821-2bcb748d9c7a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -448
      ],
      "parameters": {
        "width": null,
        "height": 640,
        "content": "## Hubspot Trigger\nAs the Hubspot's n8n trigger requires setting up a developer account and creating a public app, it's often easier to use n8n's Webhook Trigger. This allows you to use a [Hubspot pri"
      }
    },
    {
      "id": "8becaa25-6fdd-4e75-ae7b-6786b962fb3e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        -448
      ],
      "parameters": {
        "width": null,
        "height": 640,
        "content": "## Event filtering & security\nAs Hubspot private apps allow you to listen for an array of events, you need to make sure this workflow only runs on to appropriate events.\n\nAdditionally, you need to ens"
      }
    },
    {
      "id": "30b20d79-d54e-4a87-a6d6-51c2e9458b09",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -448
      ],
      "parameters": {
        "width": null,
        "height": 640,
        "content": "## Testing your webhook in Hubspot\nWhen testing your connection between Hubspot and n8n, Hubspot will provide a non-existing Company ID. As you need an existing ID to test your workflow properly, we'v"
      }
    },
    {
      "id": "2f48cf70-93da-40d4-93da-56c31229bd0d",
      "name": "Get Company Data",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        768,
        -96
      ]
    },
    {
      "id": "91ff90e3-bfd8-47f5-9277-37faf941d595",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        -448
      ],
      "parameters": {
        "width": 432,
        "height": 640,
        "content": "## Select the appropriate sub-flow \nBedrijfsdata.nl has multiple options for retrieving company information. When we need to retrieve a specific company, we have two options:\n\n1. Search by Bedrijfsdat"
      }
    },
    {
      "id": "4cb536da-e973-4bcc-9541-f9b4631f4805",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        -448
      ],
      "parameters": {
        "width": 704,
        "height": 304,
        "content": "## Retrieve company data by Bedrijfsdata.nl ID\nBedrijfsdata.nl ID's are persistent and should always be stored wherever you save our data (for updating purposes). In addition to our API's, such ID's c"
      }
    },
    {
      "id": "652beaaf-b397-47ab-a38f-5e58bdca30eb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        -128
      ],
      "parameters": {
        "width": 704,
        "height": 320,
        "content": "## Retrieve company data by whatever information you have available in Hubspot\nOur advanced matching algoritmes can retrieve the appropriate company profiles by a combination of company names, website"
      }
    },
    {
      "id": "2fa753b1-6c5a-49b8-ac41-2ae26f5446cb",
      "name": "If the company profile is found..",
      "type": "n8n-nodes-base.if",
      "position": [
        1440,
        -320
      ]
    },
    {
      "id": "4920639e-4353-49dd-93e2-e2e19c82f741",
      "name": "If your data can be matched..",
      "type": "n8n-nodes-base.if",
      "position": [
        1440,
        16
      ]
    },
    {
      "id": "23c4d33b-a20f-46ff-98c7-78a1f5c231a2",
      "name": "Output only the best match",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        -336
      ]
    },
    {
      "id": "ac8c797e-0dc5-4f7c-9bf0-96e57943e606",
      "name": "Reformat for processing",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        0
      ]
    },
    {
      "id": "666fcb21-9f42-4b69-94ad-086bef496bdf",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1856,
        -448
      ],
      "parameters": {
        "width": null,
        "height": 640,
        "content": "## Update in Hubspot\nNow it's time to map whatever data you need from our company profiles to the fields you want to put them in in Hubspot.\n\n**Please note** we have dozens of data points available. C"
      }
    },
    {
      "id": "f922001d-9efa-4a09-aed6-761376589633",
      "name": "Error type 1: Invalid request from Hubspot",
      "type": "n8n-nodes-base.noOp",
      "position": [
        496,
        352
      ]
    },
    {
      "id": "3472ce79-ef9b-4820-b521-dd858a44425d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        320
      ],
      "parameters": {
        "width": 2432,
        "height": 192,
        "content": "## Error handling\nPlease always handle potential errors properly.\n\n**For example**: log in Google Sheet, send Slack/Telegram/email notification."
      }
    },
    {
      "id": "659f5b89-eb7f-48c7-94c1-96c8a02e7d6e",
      "name": "Error type 3: Bedrijfsdata.nl API (like insufficient credits)",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1440,
        352
      ]
    },
    {
      "id": "accd448b-f196-49d4-a26e-c026a77c6797",
      "name": "Error type 4 - No company found",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1680,
        352
      ]
    },
    {
      "id": "277d506a-65b3-4e38-af64-6f9e471d9fc9",
      "name": "Error type 2 - Hubspot error",
      "type": "n8n-nodes-base.noOp",
      "position": [
        960,
        352
      ]
    },
    {
      "id": "61154913-14ac-4924-a5ab-5c685c3fb242",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2112,
        -448
      ],
      "parameters": {
        "width": null,
        "height": 640,
        "content": "## Enrichment completed!\n**Optionally** create a log or trigger another workflow (like searching for decision makers, scraping website data, creating a task or composing outreach messages)"
      }
    },
    {
      "id": "9a9521c9-8ce2-4897-b5e3-1783a8185c4d",
      "name": "Do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2176,
        16
      ]
    },
    {
      "id": "03389ade-eb32-4515-983e-20724790ad8d",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1024,
        -448
      ],
      "parameters": {
        "width": 896,
        "height": 704,
        "content": "## Template: Enrich Company Records in Hubspot with the Bedrijfsdata.nl API\nBedrijfsdata.nl Developers Platform: https://developers.bedrijfsdata.nl\nBedrijfsdata.nl API docs: https://www.bedrijfsdata.n"
      }
    },
    {
      "id": "bb61107e-6517-4db8-a3c6-1d15131b8312",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1024,
        288
      ],
      "parameters": {
        "width": 896,
        "height": 1120,
        "content": "## Hubspot Private App Setup\n\n### 1. Scopes:\n![Before enrichment](https://www.bedrijfsdata.nl/wp-content/uploads/2025/07/Schermafbeelding-2025-07-28-om-13.40.55.png#full-width)\n\n### 2. Webhook & Event"
      }
    }
  ],
  "connections": {
    "Get company": {
      "main": [
        [
          {
            "node": "If the company profile is found..",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 3: Bedrijfsdata.nl API (like insufficient credits)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is TEST Mode?": {
      "main": [
        [
          {
            "node": "Get TEST Company Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Company Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Company Data": {
      "main": [
        [
          {
            "node": "Has Known Bedrijfsdata ID",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 2 - Hubspot error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a company": {
      "main": [
        [
          {
            "node": "Do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 2 - Hubspot error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich company data": {
      "main": [
        [
          {
            "node": "If your data can be matched..",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 3: Bedrijfsdata.nl API (like insufficient credits)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get TEST Company Data": {
      "main": [
        [
          {
            "node": "Has Known Bedrijfsdata ID",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 2 - Hubspot error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Incoming Data": {
      "main": [
        [
          {
            "node": "Is TEST Mode?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 1: Invalid request from Hubspot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reformat for processing": {
      "main": [
        [
          {
            "node": "Update a company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Known Bedrijfsdata ID": {
      "main": [
        [
          {
            "node": "Get company",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Enrich company data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Output only the best match": {
      "main": [
        [
          {
            "node": "Update a company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If your data can be matched..": {
      "main": [
        [
          {
            "node": "Reformat for processing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 4 - No company found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If the company profile is found..": {
      "main": [
        [
          {
            "node": "Output only the best match",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error type 4 - No company found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hubspot - Company - Enrichment request": {
      "main": [
        [
          {
            "node": "Validate Incoming Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}