Create clean, deduplicated HubSpot contacts from website form webhooks
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Settings (Code): runs custom JavaScript code
- Validate and Normalize (Code): runs custom JavaScript code
- Valid Lead? (If): checks a condition and branches into true / false
- Find Contact by Email (HTTP Request): calls an HTTP API (POST)
- Reject Invalid Lead (Respond to Webhook): sends the response back to the webhook caller
- Build Contact Payload (Code): runs custom JavaScript code
- Contact Exists? (If): checks a condition and branches into true / false
- Update Contact (HTTP Request): calls an HTTP API (PATCH)
- Create Contact (HTTP Request): calls an HTTP API (POST)
- Summarize Result (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
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)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow receives website form submissions via a webhook, validates and normalizes the lead data, then searches HubSpot by email to update an existing contact or create a new one, returning a JSON response with the outcome. How it works 1.…