Skip to main content

Monitor Klaviyo list decay with Postgres logging and Gmail reports

Workflow preview

Workflow preview
100%
Monitor Klaviyo list decay with Postgres logging and Gmail reports preview
Open on n8n.io

1. Workflow Overview

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, ...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.postgres, n8n-nodes-base.if, n8n-nodes-base.errortrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Afeez.

Original n8n.io source

1.1 Workflow description

Title
Monitor Klaviyo list decay with Postgres logging and Gmail reports
Workflow name
Monitor Klaviyo list decay with Postgres logging and Gmail reports

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 classifies them into four decay tiers — Active, Moderate, High, and Critical. Profiles inactive for 90+ days are bulk-suppressed automatically via the Klaviyo API. A styled HTML report is emailed daily with a full tier breakdown, and all results are logged to Postgres for historical tracking. Any workflow failure is caught, logged, and alerted immediately.

What you get:

Nightly automated list health monitoring Four-tier decay scoring (0–100 engagement score per profile) Automatic bulk suppression of critical profiles in batches of 100 Daily HTML email report with tier counts and run metadata Full Postgres audit trail per profile and per run Error handling with instant email alerts on failure Requires: Klaviyo API key, Postgres database, Gmail OAuth2

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📉 List Decay Detection — Main

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - ⚠️ Critical Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section — Setup & Profile Fetch

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section — Score, Persist & Report

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section — Critical Suppression Branch

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Section — Error Handling Branch

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Schedule: Daily 2AM

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 8 - Set: Initialize Run

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Get All Profiles

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Extract Profile Items

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Score Profiles

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Log Profiles to DB

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2

Block 13 - Build Run Summary

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Insert Run Summary

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2

Block 15 - Build Email HTML

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Is Critical?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Suppress Critical in Batches

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Error Trigger

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 19 - Prepare Error Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Log Error to DB

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2

Block 21 - Send Error Alert

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 22 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

3. Summary Table

Workflow Monitor Klaviyo list decay with Postgres logging and Gmail reports
Complexity advanced
Nodes 22
Categories Market Research, AI Summarization
Author Afeez
Published 28 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15359/15359.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor Klaviyo list decay with Postgres logging and Gmail reports do?

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, ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.