Production n8n template: Form intake → HubSpot → email
The exact 15-node workflow we run for TrendAI's own lead capture. Webhook receives form data, persists to postgres first (so a HubSpot outage never loses a submission), upserts the contact, sends a Brevo confirmation email, and stamps per-step state for retries.
What's in the package
- →workflow.json — sanitised n8n export, ready to import. Credential placeholders are explicit so nothing connects until you re-bind.
- →README.md — inputs, outputs, the postgres schema you need, and exactly which 3 credentials to bind before activating.
- →case-study.md — what we learned the hard way and why the failure-isolation IFs exist.
- →MIT license. Fork it, modify it, ship it for clients. No attribution required.
Why this template exists
Most n8n form-intake examples on the internet do webhook → HubSpot directly, then break the moment HubSpot has a hiccup. By the time you notice, you've lost real submissions.
This one writes to postgres first, then propagates to HubSpot and Brevo with per-step state and retry logic. Submissions survive any single downstream outage. The pattern is the same one we use for every TrendAI form.
Get the template
We'll email you the link to the GitHub repo and a one-page deployment cheat sheet. Use it freely.
Already curious? Preview it on GitHub — but the email gets you the cheat sheet too.