Workflow

Auto-tidy Gmail Inbox

Keep your inbox clean by archiving promotional emails in Gmail

Manuka MadurangaManuka Maduranga

Last updated

January 14, 2026

Connectors used

Google Mail

Tags

Gmail AutomationInbox OrganizationEmail ManagementProductivity

Key Takeaways

  • Daily inbox cleanup - Automatically identifies and archives promotional emails every day
  • AI classification - An AI agent determines which emails are promotional
  • Summary report - Sends you an email summarizing what was archived
  • Scheduled trigger - Runs on a set schedule without manual intervention

What This Workflow Does

This workflow keeps your Gmail inbox organized by running daily, identifying promotional emails, marking them as read, archiving them, and sending you a summary of what was cleaned up.

Use cases:

  • Clearing promotional clutter from your inbox each morning
  • Reducing manual email triage time
  • Keeping your inbox focused on important messages

How It Works

StepWhat Happens
1. Scheduled triggerThe workflow kicks in every morning on a set schedule
2. Find emailsLists all emails in your inbox from the last 24 hours
3. Classify emailsAn AI agent identifies whether each email is promotional or not
4. FilterOnly promotional emails are kept for processing
5. ArchiveAn AI agent marks promotional emails as read and moves them to the archive
6. SummarizeAn AI agent sends you an email summarizing which emails were archived

Workflow Nodes

NodeRole
Scheduled TriggerRuns the workflow on a set schedule (default: every morning)
Find EmailsLists inbox emails from the last 24 hours
Classifier AI AgentDetermines if an email is promotional
FilterPasses only promotional emails to the next step
Archiver AI AgentMarks emails as read and archives them
Summarizer AI AgentSends you a summary email of what was archived

Setup Instructions

  1. Add the workflow template to Needle
  2. Connect your Gmail account to the workflow
  3. Configure the scheduled trigger for your preferred time and frequency
  4. Review the classifier prompt to confirm it matches the types of emails you want archived

Customization

What You Can ChangeHow
Schedule time and frequencyAdjust the scheduled trigger settings to run at a different time or more often
Email classification rulesChange the prompt in the Classifier AI Agent to detect additional email types such as newsletters or emails from specific senders
Summary deliveryModify the Summarizer AI Agent to change how or where the summary is sent

FAQ

Q: Will this archive important emails by mistake? A: The AI classifier is designed to target promotional emails. You can adjust the classifier prompt to be more or less strict.

Q: Can I target email types other than promotions? A: Yes, update the Classifier AI Agent prompt to detect newsletters, social notifications, or emails from specific senders.

Q: How do I change when it runs? A: Edit the Scheduled Trigger node to set a different time or frequency.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .