ManualTrigger Automate

ManualTrigger Automate streamlines email management by allowing users to manually trigger the retrieval and deletion of Gmail messages in batches of 100. This workflow efficiently cleans up inbox clutter, ensuring only relevant messages remain, enhancing productivity and organization.

7/8/2025
4 nodes
Simple
manualsimplegmailsplitinbatches
Categories:
Communication & MessagingManual TriggeredSimple Workflow
Integrations:
GmailSplitInBatches

Target Audience

This workflow is ideal for:
- Small Business Owners: Who need to manage their Gmail inbox efficiently by removing unnecessary emails.
- Marketing Professionals: Who want to clean their email lists by deleting old or unwanted messages.
- Individuals: Looking to declutter their Gmail accounts and improve productivity by automating the deletion of specific emails.
- Developers: Who are familiar with n8n and want to integrate Gmail functionalities into their automated processes.

Problem Solved

This workflow addresses the issue of email overload in Gmail by automating the process of deleting old or unwanted messages. It helps users:
- Streamline Inbox Management: By removing irrelevant emails that clutter the inbox.
- Save Time: Eliminates the need for manual deletion, allowing users to focus on more important tasks.
- Reduce Stress: A cleaner inbox can lead to improved mental clarity and productivity.

Workflow Steps

  • Manual Trigger: The workflow begins when the user clicks the 'execute' button to initiate the process.
    2. Gmail Node: It retrieves all messages from the user's Gmail account, filtering out chats and specific keywords (e.g., 'unsubscribe', 'license', 'key', 'password'). The messages are returned in a batch format.
    3. Split In Batches: The retrieved messages are split into smaller batches of up to 100 emails each to manage processing efficiently.
    4. Delete Old Gmail: Each batch of messages is processed to delete the specified emails from the user's Gmail account, ensuring that old or unwanted messages are removed systematically.
  • Customization Guide

    Users can customize this workflow by:
    - Modifying the Gmail Search Query: Change the q parameter in the Gmail node to adjust which emails to retrieve based on specific criteria (e.g., date, sender).
    - Adjusting Batch Size: Alter the batchSize parameter in the SplitInBatches node to process a different number of emails at once, depending on performance needs.
    - Adding Additional Nodes: Integrate other functionalities, such as sending notifications after deletion or logging deleted emails for record-keeping.
    - Changing Email Account: Update the Gmail credentials to connect to a different Gmail account if needed.