
Module 8 Lesson 1: HubSpot Automation
Master of deals. Learn how to create contacts, update deal stages, and sync your marketing data between HubSpot and your other internal tools using n8n.
Module 8 Lesson 1: HubSpot Automation
A CRM is only as good as the data inside it. Manual entry is the enemy of a happy sales team. n8n allows you to keep HubSpot perfectly synchronized without lifting a finger.
1. Connecting HubSpot (OAuth2)
Setting up HubSpot in n8n requires creating a "Private App" in your HubSpot settings.
- Create Private App.
- Select "Scopes" (e.g.,
crm.objects.contacts.read,crm.objects.deals.write). - Copy the Access Token into n8n.
2. Managing Contacts
- Create/Update: n8n can "Upsert" a contact. If the email
test@test.comexists, it updates their phone number. If it doesn't exist, it creates a new record. - Search: "Find me the contact with this specific LinkedIn URL."
3. Dealing with "Deals" and "Stages"
The heart of sales is the "Pipeline."
- Trigger: "When a deal moves from 'Qualified' to 'Closed Won'..."
- Action: "...Notify the Finance team on Slack and generate an Invoice in Google Sheets (Module 7)."
4. HubSpot as a Trigger (Webhooks)
HubSpot can send webhooks to n8n for any event.
- Best Use: "When a contact unsubscribes in HubSpot, immediately remove them from our internal SMS list in Postgres."
Exercise: The Sales Assistant
- Create a "Test Contact" in your HubSpot account.
- Use n8n to update that contact's "Job Title."
- Create a workflow that triggers when a "New Lead" arrives via a Google Form (Module 7) and adds them to HubSpot.
- Why is it important to select only the "Scopes" you need when creating a HubSpot Private App?
- Research: What is a "HubSpot Object ID" and why do you need it to link a Contact to a Deal?
Summary
HubSpot automation turns your CRM into a "Living Archive." By automating the creation and updating of contacts and deals, you free your sales team to focus on "Conversation" instead of "Data Entry."
Next Lesson: Accuracy first: CRM logic: Avoiding duplicates.