Automate HubSpot Deal Management with n8n Workflow

This n8n workflow automates HubSpot deal processing by triggering on new deals, categorizing deal stages, creating tickets with priorities, and sending notifications. It saves time and reduces manual errors in sales management.
hubspotTrigger
switch
slack
+5
Workflow Identifier: 1392
NODES in Use: hubspotTrigger, hubspot, set, switch, slack, googleSlides, airtable, if

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

1. Opening Problem Statement

Meet Sarah, a sales operations manager struggling to keep up with the flood of incoming deals in HubSpot CRM. Every time a new deal is created, she needs to manually check the deal’s stage, value, and type, create service tickets based on priority, notify sales teams via Slack, and archive lost deals in Airtable. These manual steps take Sarah hours weekly and lead to occasional errors like missed follow-ups or misprioritized tickets.

Imagine Sarah’s team closing valuable deals but losing track of follow-up tasks or overlooking low-value deals that still need attention. Without automation, this repetitive and error-prone process wastes valuable time and impacts sales efficiency.

2. What This Automation Does ⚙️

This n8n workflow starts automatically when a new deal is created in HubSpot and performs several key tasks:

  • Extracts detailed deal information: Name, value, type, stage, description, and close date.
  • Determines next steps based on deal stage: Closed Won, Presentation Scheduled, or Closed Lost.
  • Creates Slack notifications for successfully closed deals to alert the sales team instantly.
  • Generates Google Slides presentations automatically for deals with presentations scheduled.
  • Logs lost deals into an Airtable base for tracking and analysis.
  • Creates HubSpot service tickets with different priorities based on deal value and type, ensuring high-priority deals get immediate attention.

This automation saves Sarah and her team hours each week and minimizes oversight errors, improving sales follow-up and customer service quality.

3. Prerequisites ⚙️

  • HubSpot account and API access: To trigger on new deals and fetch detailed deal data.
  • n8n workflow automation platform: To orchestrate the entire automation.
  • Slack workspace and API credentials: For deal closure notifications.
  • Google Slides account: For automatic generation of presentation decks.
  • Airtable account and API key: To log lost deals systematically.
  • Optional: Self-hosting n8n instance via Hostinger for more control.

4. Step-by-Step Guide

Step 1: Set Up the HubSpot Trigger Node

Navigate to the n8n editor and add the HubSpot Trigger node. Configure it to listen for deal.creation events so the workflow initiates automatically whenever a new deal is created in HubSpot.

You should see a webhook URL generated. This URL will be used by HubSpot to send deal creation events.

Common Mistake: Forgetting to set event type to “deal.creation” will prevent the workflow from starting.

Step 2: Fetch Deal Details with the HubSpot Node

Next, add the HubSpot node to retrieve full deal details like name, amount, stage, etc. Link it to the trigger node. Set operation to get and use the incoming deal ID from the trigger.

After running, you should see the deal data including properties like amount, dealname, and dealstage.

Common Mistake: Using a static deal ID instead of dynamic expression will cause incorrect data retrieval.

Step 3: Consolidate Deal Properties in the Set Node

Add a Set node to map and store the most useful deal properties in well-named variables: deal_name, deal_value, deal_stage, deal_type, etc. Use expressions referencing properties from the HubSpot node JSON.

The node keeps only the specified fields for downstream nodes.

Common Mistake: Using incorrect JSON paths in expressions will break data flow.

Step 4: Branch Logic Using the Switch Node

Use the Switch node to route workflow execution based on deal stage. Create three rules: closedwon for won deals, presentationscheduled, and closedlost.

This separation enables specific actions depending on the current status of the deal.

Common Mistake: Typo in stage names causes nodes to not execute.

Step 5: Create Slack Notification on Closed Won

Connect the Slack node to the closed won branch. Configure it to send a message to a “deals” channel announcing the successful deal closure with the deal name dynamically inserted.

You should see a message in Slack during testing.

Common Mistake: Incorrect Slack API credentials or channel names result in failed notifications.

Step 6: Generate Google Slides for Presentation Scheduled Deals

For deals with the presentation scheduled stage, connect the Google Slides node. Set the slide title dynamically with the deal name. Use OAuth2 for authentication.

This automates creating a presentation template ready for sales discussions.

Common Mistake: Not having Google Slides API enabled or incorrect auth setup.

Step 7: Log Lost Deals in Airtable

For deals marked as closed lost, connect the Airtable node to append the deal name, ID, and type to a “lost_deals” table for performance tracking.

You should see new records in Airtable after workflow runs.

Common Mistake: Incorrect Airtable base or API key leads to write errors.

Step 8: Prioritize Deals Using the IF Node

Insert an IF node to evaluate whether a deal is high-value (greater than $500) and a new business type, but not already closed as won or lost.

High-value deals are routed to a high-priority HubSpot ticket creation node, while others get a low-priority ticket.

Common Mistake: Logical conditions not properly set cause incorrect ticket prioritization.

Step 9: Create HubSpot Tickets with Priority

Use two HubSpot nodes—one for high-priority tickets and one for low-priority. Configure each to create a ticket in HubSpot with appropriate priority and description linked to the deal data.

Ensure to set ticketOwnerId for the high-priority tickets to assign it to a specific agent.

Common Mistake: Missing required ticket fields can cause API failures.

5. Customizations ✏️

  • Change Slack Channel: In the #closedwon Slack node, update the channel field to notify a different team or channel.
  • Modify Ticket Owner: In the high-priority HubSpot node, change the ticketOwnerId to the ID of the team member responsible for high-value tickets.
  • Adjust Deal Value Threshold: In the IF node, update the $500 threshold to suit your business’s definition of high-value deals.
  • Add More Deal Stages: Expand the Switch node to handle additional deal stages, adding corresponding nodes for automation.
  • Include Email Notifications: Add a Gmail node to notify stakeholders on important deal updates.

6. Troubleshooting 🔧

Problem: “No data returned from HubSpot node”

Cause: Incorrect deal ID passed or API credentials expired.

Solution: Verify dynamic expressions in HubSpot node inputs and refresh API credentials.

Problem: “Failed to send Slack message”

Cause: Invalid Slack API token or wrong channel name.

Solution: Confirm Slack credentials in n8n and check the channel spelling matches the Slack workspace.

Problem: “Airtable API error on append operation”

Cause: Wrong Airtable base ID or missing required fields.

Solution: Double-check Airtable credentials and map fields exactly as configured.

7. Pre-Production Checklist ✅

  • Test HubSpot trigger with a sample deal creation.
  • Validate data mapping in the Set node outputs.
  • Confirm Slack messages appear in the specified channel.
  • Check Google Slides authentication and generated presentations.
  • Ensure Airtable records are added for lost deals.
  • Verify tickets are created correctly in HubSpot with appropriate priorities.
  • Backup your workflow and use environment variables for credentials.

8. Deployment Guide

Activate the workflow by toggling it “ON” in n8n. Regularly monitor executions via the n8n dashboard for any errors. Set up notifications for failed workflow runs in n8n to catch issues early.

If hosting yourself, ensure your server is stable and APIs are accessible.

9. FAQs

Q: Can I use Microsoft Teams instead of Slack for notifications?
A: Yes, you can replace the Slack node with a Microsoft Teams node configured with appropriate webhook URLs.

Q: Does this workflow consume many API credits?
A: It consumes calls primarily on HubSpot and Airtable APIs, keep track to avoid hitting limits.

Q: Is my data secure in this workflow?
A: Using n8n with secure credentials management and HTTPS ensures data security during transmissions.

10. Conclusion

By setting up this detailed n8n workflow, you automated complex deal management tasks in HubSpot, saving hours of manual work weekly for Sarah and her team. You improved communication with timely Slack notifications, ensured proper follow-up with tickets prioritized by deal value, and kept clean records of lost deals in Airtable. This tailored automation offers measurable improvements in sales process efficiency.

Next, consider adding email updates for deal owners or integrating your CRM with customer support tools for end-to-end tracking.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation in n8n (Beginner Guide)

A complete beginner guide to building an AI-powered SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free