Skip to main content

Optimize Klaviyo campaign send times and email reports with Gmail

Workflow preview

Workflow preview
100%
Optimize Klaviyo campaign send times and email reports with Gmail preview
Open on n8n.io

1. Workflow Overview

How it works Every Monday at 8 AM, the workflow pulls all sent email campaigns from Klaviyo for the past 90 days It fetches open rate and click rate for each campaign, then groups results by audien...

Best for

  • Social Media 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.gmail, 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
Optimize Klaviyo campaign send times and email reports with Gmail
Workflow name
Optimize Klaviyo campaign send times and email reports with Gmail

How it works

Every Monday at 8 AM, the workflow pulls all sent email campaigns from Klaviyo for the past 90 days It fetches open rate and click rate for each campaign, then groups results by audience segment and send hour Time slots with at least 3 campaigns are ranked by average open rate A formatted HTML report is emailed showing your best-performing send times, broken down per audience — with medal icons for the top 3 slots

Set up steps

Add your Klaviyo API key to the Header Auth credential — takes about 2 minutes Connect your Gmail account to the two Gmail nodes (report delivery + error alerts) In both Gmail nodes, update the Send To field to your preferred email address (Optional) Open the Config node to adjust the lookback window (default: 90 days) or the minimum campaigns-per-slot threshold (default: 3) Activate the workflow — it will run automatically every Monday, or trigger it manually anytime from the canvas

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 - 📊 Send-Time Optimizer — 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 & Klaviyo Data Pull

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

Block 4 - Section — Analysis & Report Delivery

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

Block 5 - Schedule — Weekly Monday

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

Block 6 - Config

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

Block 7 - Get Sent Campaigns

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

Block 8 - Flatten Campaigns

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

Block 9 - Fetch Lists

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

Block 10 - Get Campaign Stats

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

Block 11 - Aggregate by Hour

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

Block 12 - Format Email Report

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

Block 13 - Gmail — Send Report

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

Block 14 - Gmail — Error Alert

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

Block 15 - Error Trigger

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

Block 16 - Section — Error Handling Branch

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

3. Summary Table

Workflow Optimize Klaviyo campaign send times and email reports with Gmail
Complexity advanced
Nodes 16
Categories Social Media, AI Summarization
Author Afeez
Published 08 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15552/15552.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 Optimize Klaviyo campaign send times and email reports with Gmail do?

How it works Every Monday at 8 AM, the workflow pulls all sent email campaigns from Klaviyo for the past 90 days It fetches open rate and click rate for each campaign, then groups results by audien...

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 Social Media, AI Summarization use case.