{
  "name": "Auto-assign deals in Hubspot to fitting sales reps based on geo and company size",
  "nodes": [
    {
      "id": "e087fb9b-d299-441b-8508-a36a389acb0d",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        820,
        360
      ]
    },
    {
      "id": "5d272d3d-7b35-4ac3-8646-28d7136b3e5b",
      "name": "Get Deals",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1020,
        360
      ]
    },
    {
      "id": "26862c28-fc42-41f5-9435-c69082282e8a",
      "name": "Get contact for deals",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        360
      ]
    },
    {
      "id": "d2281e4c-abaf-43da-9299-ea60eaf61d49",
      "name": "Unassigned Deals",
      "type": "n8n-nodes-base.filter",
      "position": [
        1420,
        360
      ]
    },
    {
      "id": "aebd4001-6693-4b04-acc6-be27cb374f92",
      "name": "Split out deals",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1220,
        360
      ]
    },
    {
      "id": "1aeb829d-7683-429f-b806-1e223111d0b0",
      "name": "Assign by Region",
      "type": "n8n-nodes-base.switch",
      "position": [
        2000,
        360
      ]
    },
    {
      "id": "f795ab2e-14c8-4e7a-961e-035c877f627d",
      "name": "Assign deal to John",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2420,
        -440
      ]
    },
    {
      "id": "212cc657-88df-406e-856d-00a797ac39eb",
      "name": "Assign to Max",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2420,
        -260
      ]
    },
    {
      "id": "7daef91a-051b-495a-9122-d737fff97c04",
      "name": "Assign to Eeden",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2420,
        -80
      ]
    },
    {
      "id": "aa310e68-4056-44b6-8074-a26ce5d2d21a",
      "name": "Assign to Peter",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2220,
        780
      ]
    },
    {
      "id": "e538b71d-fb97-479f-8b78-9705347aed82",
      "name": "Get company of contact(s)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1800,
        360
      ]
    },
    {
      "id": "a8722ed3-8d75-4aa0-9b14-101279007c51",
      "name": "Assign US deals by company size",
      "type": "n8n-nodes-base.switch",
      "position": [
        2220,
        -260
      ]
    },
    {
      "id": "3b71b6c3-fa4c-49a5-9670-347790bff24d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        320
      ],
      "parameters": {
        "width": 343.16392083375575,
        "height": 209.46215382440343,
        "content": "## Setup\n1. Add your **Hubspot** credentials\n2. Customize your criterias for assigning deals in the `Assign by Region` and the following `Assign` nodes\n3. Make sure deals are assigned to the right sal"
      }
    },
    {
      "id": "abb2a4d3-d636-4fca-b6ce-4e4f13601d11",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        260
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "👇 You can adjust the interval here."
      }
    },
    {
      "id": "a4180a3b-4916-419d-aa6c-906660c7f2b7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1980,
        260
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "👇 Adjust this to your needs"
      }
    },
    {
      "id": "0e11d724-62fe-4b3e-b324-b63704c3ae64",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        -480
      ],
      "parameters": {
        "width": 423.7165713477844,
        "height": 558.5236393851941,
        "content": "Adjust this and make sure the right people are assigned for the criteria"
      }
    },
    {
      "id": "e6aec357-5faa-468f-8e33-020f5e280731",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2180,
        140
      ],
      "parameters": {
        "width": 423.7165713477844,
        "height": 558.5236393851941,
        "content": "Adjust this and make sure the right people are assigned for the criteria"
      }
    },
    {
      "id": "8c3a39ef-5263-4cc4-bbbe-54dfffde57b7",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2380,
        780
      ],
      "parameters": {
        "width": 175.43767910969322,
        "height": 105.43767910969324,
        "content": "👈 This is the fallback. You could also notify you on Slack or something instead"
      }
    },
    {
      "id": "76029d66-9719-4f05-beb9-4ad33e17dbfd",
      "name": "Assign deal to Edward",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2420,
        180
      ]
    },
    {
      "id": "ef86d907-d226-484f-ae72-70a58e9c8710",
      "name": "Assign to Michael",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2420,
        360
      ]
    },
    {
      "id": "cf2a5259-5cdb-441b-a2f0-2a0d84e1595a",
      "name": "Assign to Suka",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2420,
        540
      ]
    },
    {
      "id": "bcc1e859-f1b2-4a9f-ac65-d20380fdee89",
      "name": "Assign DE deals by company size",
      "type": "n8n-nodes-base.switch",
      "position": [
        2220,
        360
      ]
    }
  ],
  "connections": {
    "Get Deals": {
      "main": [
        [
          {
            "node": "Split out deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split out deals": {
      "main": [
        [
          {
            "node": "Unassigned Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign by Region": {
      "main": [
        [
          {
            "node": "Assign US deals by company size",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign DE deals by company size",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign to Peter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unassigned Deals": {
      "main": [
        [
          {
            "node": "Get contact for deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get contact for deals": {
      "main": [
        [
          {
            "node": "Get company of contact(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get company of contact(s)": {
      "main": [
        [
          {
            "node": "Assign by Region",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign DE deals by company size": {
      "main": [
        [
          {
            "node": "Assign deal to Edward",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign to Michael",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign to Suka",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign US deals by company size": {
      "main": [
        [
          {
            "node": "Assign deal to John",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign to Max",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign to Eeden",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}