Route inbound enquiries to HubSpot deals with duplicate protection
Ready for 3.0What this workflow does
This workflow has 29 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).
- Load Demo Enquiry (Code): runs custom JavaScript code
- Configure HubSpot (Edit Fields (Set)): sets 4 fields: hubspot_pipeline_id, hubspot_stage_id, hubspot_owner_id…
- Normalize Lead Payload (Code): runs custom JavaScript code
- Validate Inbound Enquiry (Code): runs custom JavaScript code
- Enquiry Valid? (If): checks a condition and branches into true / false
- Search Existing Event (HTTP Request): calls api.hubapi.com (POST)
- Build Final Result (Code): runs custom JavaScript code
- Classify Event Search Result (Code): runs custom JavaScript code
- Webhook Triggered? (If): checks a condition and branches into true / false
- New Source Event? (If): checks a condition and branches into true / false
…plus 17 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.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow receives inbound lead enquiries (via a demo trigger or a webhook), validates and normalizes the payload, and routes each new event into HubSpot by finding or creating a Contact and creating an associated Deal with duplicate…