Skip to article

Let an AI Agent Sort the Newsletters You Never Open

Build an AI agent in Gumloop that sorts the week's newsletters into three piles by your rules, with a drop list. You set Gmail to ask before any change.

By Jacqueline V. TwillieNovember 9, 20266 min readGuide
Quick answer

Write one rule for each of three piles: read in full, one line is enough, a candidate to drop. A Gumloop AI agent reads the week's newsletters, from Gmail or pasted in, and gives one line per issue: sender and subject as they appear. It lists drop candidates with your count. You set Gmail to ask first.

Once a week you open the inbox, tick the box at the top, select every newsletter and mark them all read. The pile includes newsletters you no longer want.

An AI agent can sort them with rules you write, one for each of three piles. The block tells it not to unsubscribe, delete, archive or send, and Gmail is set to ask before any change.

Pick how Gmail connects in How Do I Connect Email to an AI Agent Without Giving It Too Much Access? first. For public pages instead of your inbox, there's What Does a Research Digest AI Agent Need From Three Sources?

What does each pile hold, and who decides?

Read in full holds the issues you'd stop for, so name the senders or the topics. One line is enough holds the ones you like to keep up with, and each gets a sentence on what the issue says, in its own words.

Senders you leave unopened go under Candidate to drop. The count is yours, because Gumloop's pages don't list the Gmail connector's tools and nothing there says the AI agent can see which issues you opened. An issue that fits no rule goes under "no rule yet".

How do you set up the newsletter sorter in Gumloop?

  1. 01

    Name what earns a place in each pile.

    On paper first, one sentence for each. Pick the senders you suspect belong on the drop list, search your inbox for each and count how many of its last several issues you never opened. Write the pair as "unopened 6 of the last 8".

  2. 02

    Paste your rules in and switch off the web tools.

    Open Gumloop, start a new AI agent and paste the block below into the instructions box in the tab named Agent, with your rules and counts in it. Press Save. Then switch off Web Search and Web Fetch in the Abilities section. New AI agents can start with the browser on, so switch it off in the Browser section. Checked on 2026-11-11 against Gumloop's AI agent builder page and Gumloop's browser page.

  3. 03

    Switch off self-editing.

    Find Edit Own Instructions under the box and switch it off, since with it on a correction you give in chat can be written into your instructions. If Reflections is on, open Performance, then the Reflections settings, and set Apply Suggestions to Review Queue so no instruction change lands until you've accepted it. Checked on 2026-11-11 against the self-improving instructions section of Gumloop's AI agent builder page and Gumloop's page on Reflections.

  4. 04

    Add Gmail, then set it to ask before any change.

    In the Connectors section, choose + Add and pick Gmail. Gumloop's default for a connector is Always allow, so click the approval icon beside Gmail and choose Ask for writes/deletes. Read-only tools run freely, and write, delete and unknown-risk tools wait for your approval. Checked on 2026-11-11 against Gumloop's AI agent builder page and Gumloop's page on approvals.

  5. 05

    Check which group each Gmail tool sits in.

    Open Gmail's Tool Management panel, which groups its tools into Read-only tools and Write/delete tools. Anything that deletes, archives, relabels or sends should sit under Write/delete tools. If one sits under Read-only tools, choose Ask each time for the whole connector. Checked on 2026-11-09 against Gumloop's AI agent builder page and Gumloop's page on approvals.

  6. 06

    Sort a week you can check against your inbox.

    Start a task and type "Sort the newsletters from the last 7 days." Pick one issue from each pile and find it in your inbox. The sender and subject should match your inbox, and your drop counts should be the numbers you wrote. If the AI agent says it can't read your mail, or its list is shorter than what's in your inbox, paste the week's senders and subjects in and sort those. Then check that nothing in your inbox was archived, moved or deleted.

I am an ambassador for Gumloop. Code 1STAGENT takes 20% off your first month.

What do you paste into the instructions for the newsletter sorter?

Copy and fill in
You are my newsletter sorter. When I ask, you sort the newsletters that arrived in my inbox in the last [NUMBER OF DAYS] days into three piles, using only my rules below.
Read in full: [YOUR RULE FOR THE READ-IN-FULL PILE].
One line is enough: [YOUR RULE FOR THE ONE-LINE PILE].
Candidate to drop: [YOUR RULE FOR THE DROP PILE].
My own count of unopened issues, by sender: [SENDER ONE] unopened [NUMBER] of the last [NUMBER]; [SENDER TWO] unopened [NUMBER] of the last [NUMBER].
Give me one line per issue: the pile, the sender and the subject, copied exactly as they appear. In the one-line pile, add one sentence on what the issue says, using only its own words. If an issue fits no rule, list it under "no rule yet" and leave it out of the piles.
Under the drop pile, list each sender with the unopened count I gave you, in my words. If I gave none, write "no count given". Never work out a count of your own.
You only read. Don't unsubscribe from anything, and don't delete, archive, move, label, reply or send. If I ask for one of those, say you can't do it here and wait.
If you can't read an issue, write "not read" beside its line. Tell me when you're guessing.

Does each pile match what you'd have done by hand?

Look at "no rule yet" first; a sender that lands there twice needs a sentence in one of your piles. On the drop list, a sender you'd miss means the rule or your count is off, so change whichever one is wrong. A "not read" line sits in no pile, so open that issue.

Count the lines against your inbox for the same days. A shorter list means the AI agent missed some, and Gumloop's pages don't say how the Gmail connector picks them. A rule that surprised you twice is the one to rewrite first.

Frequently asked questions

Can it unsubscribe me from the senders on the drop list?

Not as set up here. The block bars it, and Gmail is set to ask before any change. Click unsubscribe in the issue itself once you've read the drop list.

What if I don't know how many issues I left unopened?

Leave the count out of the block. The drop list then shows the sender with "no count given", and you decide from sender and subject alone.

More on Ownership for Mid-Career Professionals