Templates / Sync warehouse customer data from Postgres to HubSpot and Segment

Sync warehouse customer data from Postgres to HubSpot and Segment

Ready for 3.0

by Oneclick AI Squad ✓ · 0 views · created 2026-10-06 · CRM

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 28 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Postgres.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Postgres: run a query
  2. Set Sync Config (Edit Fields (Set)): sets 14 fields: syncName, warehouseRelation, pkColumn…
  3. Code: runs custom JavaScript code
  4. Config Valid? (If): checks a condition and branches into true / false
  5. Postgres: run a query
  6. HTTP - Slack Config Error Alert (HTTP Request): calls an HTTP API (POST)
  7. Lock Acquired? (If): checks a condition and branches into true / false
  8. Postgres: run a query
  9. Changes To Push? (If): checks a condition and branches into true / false
  10. Code: runs custom JavaScript code

…plus 14 more steps. See the full node list below.

Services it uses

Postgres

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 (12)

From the author

Quick overview This workflow syncs changed customer records from a PostgreSQL “warehouse” table to HubSpot (contact batch upsert) and Segment (identify batch) on a schedule or via webhook, while tracking per-record sync state in Postgres and alerting failures…

Excerpt from Oneclick AI Squad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.