Gmail Auto-Sorter Agent for a Cleaner Inbox
Newsletters, offers and invoices bury the mail that matters. This tool builds a small agent for you: pick labels and rules, and it writes a Google Apps Script that tidies your inbox every few minutes from inside your own account.
How to set it up
- Choose labels and rules for senders, words, invoices and newsletters.
- Decide whether to archive promotions or save attachments to Drive.
- Copy the generated script into a new Apps Script project in your Google account.
- Authorise it and let it run, and check the labels after a day.
Cost and control
The builder is free to use and needs no Bytenix credits. If you add AI sorting or draft replies, you use your own free Gemini API key, subject to Google's limits.
Test with simple rules first, since automatic archiving can hide mail you wanted to see. You can stop the script at any time.
Where it helps in India
- Office workers with a crowded Gmail.
- Small shops that receive invoices by email.
- Students sorting college mail from newsletters.
- Freelancers filing client attachments to Drive.
Setting it up safely
Begin with a few clear rules, such as labelling invoices and archiving promotional mail, and check the results after a day before adding more. Do not archive mail from senders you cannot afford to miss until you are sure the rule is right.
The script runs in your Google account, so Google will ask you to authorise it. Read the permissions it requests and make sure they match what the tool says it does. If you use AI sorting, create your Gemini key in Google AI Studio and keep it private.
Staying in control
You can pause or remove the agent whenever you want, by running stopSorter or deleting the project at script.google.com. Check the Apps Script usage limits of your Google account, since heavy mailboxes may hit daily quotas.
If something goes wrong, check Gmail's Trash and All Mail first, since archived messages are moved and not deleted. Adjust your rules and try again.
Reply faster with the AI Email Reply Assistant. For other automation ideas, use the AI Agent Blueprint Builder.