{
  "name": "Automatically enrich companies in your HubSpot, Salesforce or Close CRM",
  "nodes": [
    {
      "id": "482e8b85-415f-43f7-bace-14215bd01fee",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -96,
        336
      ]
    },
    {
      "id": "cee018f0-2095-4bd9-bd96-bc21b419efa5",
      "name": "Extract Domain1",
      "type": "n8n-nodes-base.function",
      "position": [
        432,
        336
      ]
    },
    {
      "id": "cae6aae0-ce28-4aec-bb8b-075c72dbe824",
      "name": "CompanyEnrich - Enrich by Domain1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        400
      ]
    },
    {
      "id": "82197139-da1c-4634-a1cf-5caf36e7001b",
      "name": "HubSpot - Update Company1",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1152,
        352
      ]
    },
    {
      "id": "90bce036-f97a-4ac8-8e57-74e96a471436",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        608,
        336
      ]
    },
    {
      "id": "b5baf50d-5f97-4698-94d8-c1af42417726",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        944,
        352
      ]
    },
    {
      "id": "4ff252cf-471a-4f5c-b522-4c146b1c0847",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -160
      ],
      "parameters": {
        "width": 608,
        "height": 864,
        "content": "## AI COMPANY ENRICHMENT FOR NEW OR UPDATED HUBSPOT/SALESFORCE COMMPANIES\n\n### 📌 How This Workflow Works?\n1. **Schedule Trigger:** Finds the newly created or updated companies in a set time period.\n2."
      }
    },
    {
      "id": "d7495e07-e349-4e64-b1d2-b13d3f168ee3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -352
      ],
      "parameters": {
        "width": 640,
        "height": 1056,
        "content": "## Schedule Trigger & Extract Domain\n\nControl how far back companies are enriched:\n⚠️ Disable the Crm nodes you do not use\n⚠️ Delete the connection to the EXTRACT DOMAIN NODE for the crm you do not us"
      }
    },
    {
      "id": "85f63476-9e70-4d9e-af55-9c38a5346961",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        64
      ],
      "parameters": {
        "width": 704,
        "height": 480,
        "content": "## Update Companies\n\nControl which properties are sent to HubSpot/Salesforce by mapping them in the **HubSpot/Salesforce Update Company** node.\n\n⚠️ Disable the Crm you do not use\n⚠️ Be careful to map "
      }
    },
    {
      "id": "6dc4ac02-5b53-44da-a000-c2211b13e684",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        176
      ],
      "parameters": {
        "width": 288,
        "height": 368,
        "content": "## Enrichment Loop\n\nEnter your CompanyEnrich API key in the **HTTP Request** node where it says `YOUR_API_KEY`.\n"
      }
    },
    {
      "id": "418263f3-7005-408a-a036-2c3c766e837d",
      "name": "Get many accounts",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        112,
        480
      ]
    },
    {
      "id": "22cb1134-f52e-4534-a346-ff7325324ffe",
      "name": "Get an account",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        448,
        608
      ]
    },
    {
      "id": "af2856ae-bbff-440d-892a-d687d057774e",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        272,
        480
      ]
    },
    {
      "id": "52d81ddf-9176-42d6-bb35-f2d65c783c42",
      "name": "Get recently created/updated companies",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        112,
        336
      ]
    },
    {
      "id": "1916face-8796-45ff-9f85-413b781bf926",
      "name": "Create or update an account",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        1328,
        352
      ]
    },
    {
      "id": "9c571d4e-0ff2-4cf8-b2fb-0faf8cf584d9",
      "name": "Close CRM",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        112,
        176
      ]
    },
    {
      "id": "6791efcf-b56e-44ff-8049-12aab7b556ed",
      "name": "Close Crm Update",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1504,
        352
      ]
    }
  ],
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "HubSpot - Update Company1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create or update an account",
            "type": "main",
            "index": 0
          },
          {
            "node": "Close Crm Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Close CRM": {
      "main": [
        [
          {
            "node": "Extract Domain1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get an account": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Domain1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Extract Domain1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get an account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Close Crm Update": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "CompanyEnrich - Enrich by Domain1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get many accounts",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get recently created/updated companies",
            "type": "main",
            "index": 0
          },
          {
            "node": "Close CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many accounts": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot - Update Company1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create or update an account": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CompanyEnrich - Enrich by Domain1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get recently created/updated companies": {
      "main": [
        [
          {
            "node": "Extract Domain1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}