Track HubSpot deal lead-response SLAs using activity history
Ready for 3.0What this workflow does
This workflow has 28 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Find Deals to Monitor (HTTP Request): calls api.hubapi.com (POST)
- Parse Deal Search (Code): runs custom JavaScript code
- Deal Search Succeeded? (If): checks a condition and branches into true / false
- Deals Found? (If): checks a condition and branches into true / false
- Return HubSpot Failure (Code): runs custom JavaScript code
- Validate SLA Case (Code): runs custom JavaScript code
- Return No Deals to Monitor (Code): runs custom JavaScript code
- SLA Case Valid? (If): checks a condition and branches into true / false
- Find Deal Emails (HTTP Request): calls api.hubapi.com (POST)
- Return Manual Review (Code): runs custom JavaScript code
…plus 16 more steps. See the full node list below.
HTTP calls to: api.hubapi.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
From the author
Quick Overview This workflow runs every five minutes (or manually) to monitor HubSpot Deals that are awaiting a first response, checks associated emails, calls, and meetings from the assigned owner, and updates HubSpot SLA fields to reflect whether the lead…