Templates / Sync and validate Google Sheets records with Postgres and Slack alerts

Sync and validate Google Sheets records with Postgres and Slack alerts

Ready for 3.0

by Pushbuild ✓ · 0 views · created 2026-11-22 · Document Extraction

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 19 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects Google Sheets, Postgres and Slack.

How it runs

Trigger: On a schedule (every hour) (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 6 fields: workflow_label, slack_channel, allowed_statuses…
  2. Sample run? (If): checks a condition and branches into true / false
  3. Sample rows (Code): runs custom JavaScript code
  4. Read sheet (Google Sheets): read
  5. Validate and clean (Code): runs custom JavaScript code
  6. Describe failure (Code): runs custom JavaScript code
  7. Read current table (Postgres): run a query
  8. Failure alert (Slack) (Slack): uses Slack
  9. Plan changes (Code): runs custom JavaScript code
  10. Rows to write (Code): runs custom JavaScript code

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

Services it uses

Google SheetsPostgresSlack

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

Quick overview This workflow runs hourly to sync rows from a Google Sheets tab into a Postgres table, validating and normalizing data, only upserting new or changed records, soft-deleting records missing from the sheet with a safety cap, and sending run…

Excerpt from Pushbuild'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.