Skip to main content

Daily auto-archive for Gmail messages

Workflow preview

Workflow preview
100%
Daily auto-archive for Gmail messages preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? Professionals, solopreneurs, or productivity enthusiasts who want to keep their Gmail inbox clean and organized without manual effort. What problem does this solve? Manually archiv...

Best for

  • Personal Productivity automation workflows
  • beginner n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.gmail, n8n-nodes-base.splitout

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Daily auto-archive for Gmail messages
Workflow name
Daily auto-archive for Gmail messages

Who is this for?

Professionals, solopreneurs, or productivity enthusiasts who want to keep their Gmail inbox clean and organized without manual effort.

What problem does this solve?

Manually archiving emails clutters your time and slows you down. This workflow automates inbox cleanup by removing the "INBOX" label from messages received over 24 hours ago. A perfect companion to AI-based labeling workflows, this keeps your inbox light and relevant.

What this workflow does

  • Triggers every day at 4 AM
  • Fetches Gmail messages from the INBOX that are older than 24 hours
  • Processes them one by one using the Split Out node
  • Removes the INBOX label, effectively archiving the messages

Setup

  1. Connect your Gmail account using OAuth2 credentials.
  2. Customize the Schedule Trigger node to adjust the run time.
  3. Modify the Gmail filter if you want to archive unread or labeled emails instead.

How to customize this workflow to your needs

  • Schedule different frequencies (e.g. twice a day or weekly).

🔄 Pairs Well With

This complements the Intelligent Email Organization with AI-Powered Content Classification workflow.

Use that to label emails smartly using AI, and this one to auto-archive them for a clean, clutter-free inbox.

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 - Daily Trigger at 4AM

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

Block 2 - Fetch Gmail Inbox Emails

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

Block 3 - Split Each Email

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

Block 4 - Archive Message (Remove INBOX Label)

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

3. Summary Table

Workflow Daily auto-archive for Gmail messages
Complexity beginner
Nodes 4
Categories Personal Productivity
Author Niranjan G
Published 05 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4679/4679.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 Daily auto-archive for Gmail messages do?

Who is this for? Professionals, solopreneurs, or productivity enthusiasts who want to keep their Gmail inbox clean and organized without manual effort. What problem does this solve? Manually archiv...

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 Personal Productivity use case.