Automatically archive Gmail emails from Inbox
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Item Lists (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 7 nodes and runs on a schedule (cron 0 0 * * 1-5). Along the way it connects Gmail.
How it runs
Trigger: On a schedule (cron 0 0 * * 1-5).
- Get all emails in the last day (Gmail): work with thread
- Get the thread of each email (Gmail): get (thread)
- Keep only starred emails in inbox (Filter): keeps only the items that match a condition
- Archive thread (remove from inbox) (Gmail): remove labels (thread)
- for each message in the thread (Item Lists): reshapes item lists (legacy Item Lists node)
- Archive message (remove from inbox) (Gmail): remove labels
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Item Lists (legacy) in for each message in the thread: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| Item Lists (legacy) for each message in the thread | Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used) |
Nodes used (4)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Filter
n8n-nodes-base.filter - Item Lists
n8n-nodes-base.itemLists
From the author
Use Case Automatically archive emails in your Gmail inbox from the last day, unless they have been starred. Been using this with my personal and work emails to stick to an Inbox Zero strategy, without having to click or swipe a lot. Setup 1. Add your Gmail…