Automate Gmail Label Management: Remove Old, Add New Labels
detail.loadingPreview
Streamline your inbox by automatically removing one Gmail label and adding another to messages, saving you manual sorting time.
🚀Ready to Deploy This Workflow?
About This Workflow
How it works
This workflow automates the management of Gmail labels. It starts by fetching messages associated with a specific label (in this case, 'Label_103811885290186237'). Once retrieved, it proceeds to remove that original label from each message and then applies a new, predefined label ('Label_140673791182006844'). This is achieved using three Gmail nodes from n8n, leveraging their getAll and remove/add (implicit in messageLabel operation) message label functionalities.
Key Features
- Dynamic Gmail label processing
- Automated message organization
- Customizable label management
How To Use
- Trigger: The workflow starts manually by clicking 'execute' on the
manualTriggernode. - Fetch Messages: The first
Gmailnode is configured togetAllmessages with a specificlabelIds(e.g., 'Label_103811885290186237'). Ensure your Gmail credentials are set up. - Remove Label: The second
Gmailnode (Gmail1) takes the message IDs from the previous step and uses theremoveoperation formessageLabelto remove the original label. - Add Label: The third
Gmailnode (Gmail2) uses the same message IDs to apply a newlabelIds(e.g., 'Label_140673791182006844') using themessageLabeloperation (add is the default behavior).
Credentials Required: Gmail OAuth2 credentials.
Apps Used
Workflow JSON
{
"id": "899b31ba-974a-4dfe-9898-35b67155e5fb",
"name": "Automate Gmail Label Management: Remove Old, Add New Labels",
"nodes": 0,
"category": "Productivity",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 899b31ba-974a...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Integrations
- Gmail + Schedule Trigger(270 workflows)
- Gmail + Google Sheets(245 workflows)
- Gmail + Split Out(132 workflows)
- Gmail + Gmail Trigger(119 workflows)
- Form Trigger + Gmail(107 workflows)
- Gmail + Google Drive(93 workflows)
- Gmail Trigger + Google Sheets(71 workflows)
- Gmail + Telegram(63 workflows)
- Gmail + Slack(59 workflows)
- Execute Workflow Trigger + Gmail(58 workflows)
Related Workflows
Discover more workflows you might like
Auto-Categorize Outlook Emails with AI & Move to Folders
Save hours weekly by automatically categorizing and moving Outlook emails using AI. Integrates with Microsoft Outlook & Ollama for smart email management.
Automate Outlook Email Categorization with AI & n8n
Effortlessly auto-categorize Outlook emails using AI and n8n. Improve inbox organization and productivity. Integrates with Microsoft Outlook.
Automate Daily Email Summaries with AI & Gmail - Daily Digest
Save hours daily! Automatically fetch, summarize, and send key email insights using n8n, Gmail, and OpenAI. Get your AI-powered daily digest.
Automate Work Attendance with Location Triggers to Google Sheets
Effortlessly track work attendance using location triggers and automatically log check-ins/outs to Google Sheets. Save time and ensure accuracy.
Auto-label Incoming Gmail Emails with AI
Automatically categorize and label incoming Gmail emails using OpenAI's GPT-4o mini model.
AI-Powered Text Transformations via Apple Shortcuts
Automate text editing, translation, and grammar correction using Apple Shortcuts and OpenAI.