n8n

How to Automate HubSpot Deal Assignment?

Route new HubSpot deals to the right sales reps without manual sorting. Great for sales teams that want fair assignment by region and company size and need a simple way to keep follow ups fast.

A scheduled run every two days at 7 AM pulls deals from HubSpot with deal name, amount, current owner, and linked contacts. It keeps only deals with no owner, then handles them one by one. For each deal, it fetches the contact and the associated company, then uses rules to route by region. US and DE paths add an extra check for company size to send the deal to the right rep. If no rule fits, a fallback owner is used so nothing is missed.

Setup is simple. Connect your HubSpot account in n8n Cloud and edit the region and size rules to match your territory model. Expect faster response times, fewer handoff errors, and steady coverage as volume grows. This is ideal for teams selling across the US and Germany or anyone who wants clear, rule based deal assignment inside HubSpot.

What are the key features?

  • Scheduled run every two days at 7 AM so routing happens on time
  • Pulls HubSpot deals with deal name, amount, owner, and contact links
  • Filters to unassigned deals and processes each record separately
  • Looks up the associated contact and company for better routing data
  • Routes by region with a switch node and a safe fallback path
  • Applies company size rules for US and DE to pick the right rep
  • Updates HubSpot deal owner using dedicated update nodes
  • Fallback owner ensures no deal stays unassigned

What are the benefits?

  • Reduce manual routing from 60 minutes to 5 minutes per day
  • Automate 90% of deal assignment steps
  • Improve owner accuracy by 95% through rule based logic
  • Handle 5 times more new deals without extra staff
  • Connect n8n and HubSpot CRM for seamless updates

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with HubSpot. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create a new HubSpot credential. Choose OAuth2 and connect your HubSpot account. Name the credential clearly, for example HubSpot Sales OAuth.
  4. Open the Get Deals node and select your HubSpot credential. Keep the provided URL that includes properties and contact associations unless you have a different need.
  5. Check the Split out deals node to ensure the field to split is results. This feeds one deal at a time to the next steps.
  6. Open the Unassigned Deals filter and confirm the condition checks that hubspot_owner_id is empty. This prevents reassigning owned deals.
  7. In Get contact for deals, keep the contact association expression. If some deals have no contacts, add a fallback route later or ensure deals are linked to contacts in HubSpot.
  8. In Get company of contact(s), confirm the company association is requested. This is used for region and size rules.
  9. Edit Assign by Region and set your regions such as US and DE. Keep the fallback output active so unmatched deals still move forward.
  10. Edit Assign US deals by company size and Assign DE deals by company size to reflect your size tiers. Map each path to the correct owner output.
  11. Open each HubSpot update node like Assign to John or Assign to Michael and choose the correct HubSpot owner from the dropdown. Make sure the dealId field uses the incoming deal id.
  12. Set the Schedule Trigger to your preferred interval and time. Confirm the server time zone matches your expectation in n8n Cloud.
  13. Test by clicking Execute Workflow and watch each node output. Then check a few deals in HubSpot to confirm the owner changed as expected.
  14. Troubleshoot common issues: If you see permission errors, reconnect the HubSpot credential with CRM scopes. If a node fails on missing associations, add a fallback rule or ensure contacts and companies are linked in HubSpot. If no rule matches, verify the fallback owner node is connected.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

HubSpot

Sign up

Free: $0 / mo; API access included (private app or OAuth). Limits on Free: 250,000 API calls/day and 100 requests per 10 seconds per private app.

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.