Notify Slack when a HubSpot deal over $50K is created using n8n
low complexityCost: $0-24/mo
Prerequisites
Prerequisites
- n8n instance (cloud or self-hosted)
- HubSpot private app token with
crm.objects.deals.readscope - Slack app with Bot Token (
chat:writescope)
Step 1: Add HubSpot Trigger
Add a HubSpot Trigger node:
- Event: Deal Created
This fires for every new deal. You'll filter by amount in the next step.
Step 2: Fetch deal details
Add an HTTP Request node:
- Method: GET
- URL:
https://api.hubapi.com/crm/v3/objects/deals/{{ $json.objectId }} - Authentication: HubSpot credential
- Query params:
properties=dealname,amount,dealstage,hubspot_owner_id,pipeline
Step 3: Filter by amount
Add an IF node:
- Condition:
{{ parseFloat($json.properties.amount || '0') }}greater than50000
Only deals over $50K proceed to the Slack step.
Configurable threshold
Store the threshold in a workflow variable or static data so you can change it without editing the IF node: $getWorkflowStaticData('global').dealThreshold || 50000.
Step 4: Resolve owner name
Add an HTTP Request to get the owner's name:
- URL:
https://api.hubapi.com/crm/v3/owners/{{ $json.properties.hubspot_owner_id }}
Step 5: Send Slack alert
Add a Slack node:
- Channel:
#executive-dealsor#sales-leadership - Message Type: Block Kit
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "🎯 *New Large Deal Created*\n*{{ $('Fetch Deal').first().json.properties.dealname }}*\nAmount: *${{ parseFloat($('Fetch Deal').first().json.properties.amount).toLocaleString() }}*\nOwner: {{ $('Fetch Owner').first().json.firstName }} {{ $('Fetch Owner').first().json.lastName }}"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "<https://app.hubspot.com/contacts/YOUR_PORTAL_ID/deal/{{ $('Fetch Deal').first().json.id }}|View in HubSpot>"
}
]
}
]
}Step 6: Activate
- Test by creating a deal over $50K in HubSpot
- Verify the Slack alert
- Toggle to Active
Cost
- n8n Cloud: Only counts as 1 execution when a deal is created and passes the filter. Deals under $50K stop at the IF node but still count as 1 execution.
Need help implementing this?
We build and optimize automation systems for mid-market businesses. Let's discuss the right approach for your team.