Templates / Monitor Klaviyo list decay with Postgres logging and Gmail reports

Monitor Klaviyo list decay with Postgres logging and Gmail reports

Ready for 3.0

by Afeez ✓ · 32 views · created 2026-04-28 · Market Research, AI Summarization

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 16 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Postgres and Gmail.

How it runs

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

  1. Set: Initialize Run (Edit Fields (Set)): sets or maps fields
  2. Prepare Error Data (Code): runs custom JavaScript code
  3. Get All Profiles (HTTP Request): calls an HTTP API
  4. Log Error to DB (Postgres): uses Postgres
  5. Extract Profile Items (Code): runs custom JavaScript code
  6. Send Error Alert (Gmail): uses Gmail
  7. Score Profiles (Code): runs custom JavaScript code
  8. Log Profiles to DB (Postgres): uses Postgres
  9. Build Run Summary (Code): runs custom JavaScript code
  10. Is Critical? (If): checks a condition and branches into true / false

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

Services it uses

PostgresGmail

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

From the author

Klaviyo List Decay Detection Protect your sender reputation by automatically identifying and suppressing unengaged Klaviyo profiles every night. This workflow fetches your entire Klaviyo audience, scores each profile based on days since last engagement, and…

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