When should you use it?
- Events or downloads put you on dozens of vendor lists
- Unsubscribing one by one keeps slipping
- You do not want an agent reading your real inbox
Not for: Phishing or suspicious mail, which should be reported instead; Lists you might still want, since the agent will not ask
What do you need, and what do you get?
You need
- A separate inbox the agent controls
- A mail rule or manual forward from your own account
- Rules for what counts as vendor marketing
You get
- Unsubscribe links followed and confirmed
- A running log of which senders were cleared
How does it work, step by step?
- Give the agent its own addressCreate a mailbox only the agent reads, so it never touches your personal mail.
- Forward, do not grant accessSet a rule or forward by hand anything you want gone.
- Parse and actHave the agent find the unsubscribe link in each message, follow it and look for a confirmation.
- Keep a logRecord sender, date and result so you can see what was cleared and what failed.
- Review stragglersAnything without a working link goes on a short list for you to block or report.
The prompt
Our own prompt, inspired by Vivek V. and written to work in OpenClaw and Custom agent. Values in lime are placeholders.
You manage the mailbox [agent address]. Every message here was forwarded by me because I want off that list. For each one: find the unsubscribe link or list-unsubscribe header, follow it, and check for a confirmation page or email. Log sender, date and result in [log file]. If a link asks for a login, payment or personal details, do not proceed; add it to a review list for me. Never reply to senders and never open attachments. Send me a weekly summary of what was cleared.
Inspired by Vivek V.: I Turned Notion Into a Control Plane for my 18 OpenClaw AI Agents. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Some unsubscribe links demand a login or extra steps; let those fall to the review list.
- Clicking links in mail carries risk, so only forward messages you believe are genuine vendor marketing.
Our take
The access design is what makes Vivek V.'s unsubscribe agent worth copying. Rather than granting the agent his personal mailbox, he forwards only the messages he wants handled to an address the agent owns. It never sees anything else, so a mistake or a malicious email can do little harm. That forwarding pattern applies to many inbox jobs, such as receipts or newsletters, and it is a sensible first task for an always-on agent because errors are cheap. A few refinements help. Unsubscribe links in genuine spam sometimes confirm your address to senders who ignore the request, so have the agent skip messages from unknown senders and simply report them. Ask for a weekly digest of lists removed, so a newsletter you actually wanted does not vanish unnoticed. Keep a log of failures, such as links that require a login or a form, and handle those yourself. Check that forwarding rules do not catch invoices or account notices from the same vendors, which you still need to receive.
Where the time goes back: One forwarding rule replaces dozens of small unsubscribe chores that never quite get done.
FAQ
Why a separate inbox?
How much did it clear?
Source and credit
Inspired by Vivek V.. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- I Turned Notion Into a Control Plane for my 18 OpenClaw AI Agents
- Creator
- Vivek V.
- Published on
- DEV Community (dev.to)
- Original date
- Mar 7, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- OpenClaw
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.