Templates / Auto-assign deals in Hubspot to fitting sales reps based on geo and company size

Auto-assign deals in Hubspot to fitting sales reps based on geo and company size

Ready for 3.0

by Niklas Hatje ✓ · 1,504 views · created 2024-02-22 · CRM

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 16 nodes and runs on a schedule (every 2 days at 07:00). Along the way it connects HubSpot. It also calls api.hubapi.com over HTTP.

How it runs

Trigger: On a schedule (every 2 days at 07:00).

  1. Get Deals (HTTP Request): calls api.hubapi.com
  2. Split Out: splits a list into separate items
  3. Unassigned Deals (Filter): keeps only the items that match a condition
  4. Get contact for deals (HTTP Request): calls an HTTP API
  5. Get company of contact(s) (HTTP Request): calls an HTTP API
  6. Assign by Region (Switch): routes items into 2 branches
  7. Assign US deals by company size (Switch): routes items into 3 branches
  8. Assign DE deals by company size (Switch): routes items into 3 branches
  9. Assign to Peter (HubSpot): update (deal)
  10. Assign deal to John (HubSpot): update (deal)

…plus 5 more steps. See the full node list below.

Services it uses

HubSpot

HTTP calls to: api.hubapi.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Use case To guarantee an effective sales process deals must be distributed between sales reps in the best way. Normally, this involves manually assigning new deals that have come in. This workflow automates it for you! What this workflow does This workflow…

Excerpt from Niklas Hatje's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.