Get messages with a certain label, remove the label, and add a new one

For Gmail, this workflow retrieves messages with a specific label, removes that label, and adds a new one, streamlining email organization and enhancing productivity.

7/8/2025
4 nodes
Simple
manualsimplegmail
Categories:
Communication & MessagingManual TriggeredSimple Workflow
Integrations:
Gmail

Target Audience

  • Gmail Users: Individuals who want to manage their emails more efficiently by organizing them with labels.
    - Small Business Owners: Those who need to keep track of important emails and want to automate the labeling process.
    - Project Managers: Professionals who require specific email categorization to streamline communication.
    - Tech-Savvy Individuals: Users familiar with automation tools looking to enhance their Gmail experience.
  • Problem Solved

    This workflow addresses the issue of email organization in Gmail by allowing users to:
    - Retrieve all messages with a specific label.
    - Remove that label from the messages.
    - Add a new label to categorize the messages differently.
    This helps in maintaining a clean and organized inbox, ensuring important emails are easily accessible.

    Workflow Steps

  • Manual Trigger: The workflow begins when the user clicks 'execute'.
    2. Fetch Emails: It connects to Gmail and retrieves all messages that have the label Label_103811885290186237.
    3. Remove Old Label: For each retrieved message, the workflow removes the specified label, effectively decluttering the email management.
    4. Add New Label: Finally, it applies a new label, Label_140673791182006844, to the same messages, allowing for a fresh categorization of emails.
  • Customization Guide

  • Change Labels: Users can modify the labelIds in both the 'Gmail1' and 'Gmail2' nodes to use different labels that suit their organizational needs.
    - Adjust Message Retrieval: Users can customize the labelIds in the 'Gmail' node to fetch messages with other labels.
    - Add More Steps: To enhance functionality, users can integrate additional nodes for further processing, such as sending notifications or archiving emails after labeling.
    - Schedule Automation: Users can set this workflow to run at specific intervals instead of manual execution to automate the process further.