Skip to content
← Back to Blog
Tutorial|9 min read

Automating HubSpot with N8N: Complete Tutorial

G

Growthnix Team

September 28, 2025

Why Automate HubSpot with N8N?

HubSpot is a powerful CRM, but many teams use only a fraction of its capabilities because they do not have time to manage data entry, follow-ups, and reporting manually. N8N is the perfect companion tool for HubSpot — it can listen for events in HubSpot, process data, connect to other systems, and push updates back. The result is a CRM that practically runs itself.

Unlike HubSpot's built-in workflows (which are limited and expensive on lower-tier plans), N8N gives you unlimited workflow complexity, connections to any third-party tool, custom code execution, and no per-execution costs. If you are a HubSpot user looking to automate your sales and marketing operations, this tutorial will show you exactly how.

Setting Up the N8N-HubSpot Connection

Prerequisites

You will need a running N8N instance (self-hosted or N8N Cloud), a HubSpot account with API access, and a HubSpot private app with the necessary scopes. In HubSpot, navigate to Settings, then Integrations, then Private Apps. Create a new app and grant it scopes for contacts, companies, deals, and engagements. Copy the access token — you will use this in N8N.

In N8N, add a new credential of type "HubSpot API." Paste your access token. Test the connection to verify it works. You are now ready to build automations.

Automation 1: Lead Enrichment and Scoring

When a new contact is created in HubSpot (from a form submission, import, or API), this workflow automatically enriches it with company data and assigns a lead score.

  • Trigger: HubSpot Trigger node, listening for "Contact Created" events.
  • Enrich: HTTP Request node calling Clearbit's Enrichment API with the contact's email. Returns company size, industry, revenue, and tech stack.
  • Score: Function node that calculates a lead score based on ICP criteria. Company size over 50 employees gets 20 points. SaaS industry gets 15 points. Uses your product's technology gets 25 points.
  • Update: HubSpot node that updates the contact with enrichment data and lead score in custom properties.
  • Route: IF node that checks if the score exceeds 60. If yes, assign to a sales rep and send a Slack notification. If no, add to a nurture email sequence.

Automation 2: Deal Pipeline Management

This workflow automates actions based on deal stage changes in your HubSpot pipeline.

  • Trigger: HubSpot Trigger listening for "Deal Property Changed" where the property is "dealstage."
  • Stage: Proposal Sent: When a deal moves to "Proposal Sent," generate a PDF proposal using a template, upload it to the deal in HubSpot, and send a personalized email to the contact.
  • Stage: Closed Won: When a deal is won, create a project in your project management tool (Notion, Asana, or Monday), send a welcome email to the client, alert the delivery team on Slack, and create an invoice in your accounting system.
  • Stage: Closed Lost: When a deal is lost, add the contact to a re-engagement sequence, log the loss reason for reporting, and notify the sales manager.

Automation 3: Automated Reporting

This scheduled workflow generates a daily sales report from HubSpot data.

  • Trigger: Cron node set to run daily at 8:00 AM.
  • Fetch Data: Multiple HubSpot nodes pulling deals created yesterday, deals closed, pipeline value by stage, and activities logged.
  • Transform: Function node that aggregates the data into a formatted report — total pipeline value, deals won/lost, conversion rates, and top-performing reps.
  • Deliver: Slack node that posts the report to the sales channel, and a Gmail node that emails it to the sales director.

Automation 4: Contact Lifecycle Sync

Keep HubSpot in sync with your product database. When a user signs up for your SaaS product, this workflow updates their HubSpot contact lifecycle stage from "Lead" to "Customer," associates them with the correct company, updates their subscription tier, and triggers a customer onboarding sequence. This ensures your CRM always reflects the actual state of your customer relationships without manual data entry.

Best Practices for HubSpot Automation

  • Use custom properties wisely. Create dedicated HubSpot properties for automation-managed data (lead score, enrichment data, automation status). Do not overwrite properties that sales reps manage manually.
  • Implement idempotency. Webhook events can fire multiple times. Design your workflows to handle duplicate events gracefully — check if an action has already been taken before executing it.
  • Test with a sandbox. HubSpot offers developer test accounts. Build and test your automations there before connecting to production data.
  • Monitor API rate limits. HubSpot has API rate limits (100 requests per 10 seconds on most plans). Use N8N's built-in rate limiting and batch processing to stay within limits.

Getting Started

Pick one workflow from this tutorial — lead enrichment is a great starting point — and build it today. The immediate time savings will motivate you to automate more. Within a month, you can have a fully automated CRM that handles lead management, deal progression, and reporting without your team touching HubSpot for routine tasks.

Tagged with

N8NHubSpotCRMSales AutomationTutorialLead Management

Ready to put this into practice?

We help businesses implement the strategies and tools we write about. Let's talk about your project.