← Back to library

Forward vendor spam to an agent that unsubscribes

Vivek V., buried in booth follow-ups after a conference, gave his OpenClaw agent a mailbox of its own. One mail rule forwards vendor marketing there, and the agent reads each message, locates the unsubscribe link, opens it and confirms. He reports 47 lists gone in two weeks, one of 18 agents he monitors from a Notion board.

  • OutcomeClear trade-show and vendor mailing lists without opening each email, and without giving an agent your personal mailbox.
  • SetupUnder an hour
  • LevelIntermediate
  • CreditVivek V.
View original
Works with
OpenClawCustom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

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?

  1. Give the agent its own addressCreate a mailbox only the agent reads, so it never touches your personal mail.
  2. Forward, do not grant accessSet a rule or forward by hand anything you want gone.
  3. Parse and actHave the agent find the unsubscribe link in each message, follow it and look for a confirmation.
  4. Keep a logRecord sender, date and result so you can see what was cleared and what failed.
  5. 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.

Prompt0 variables
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?
It keeps the agent's access to the messages you choose, not your whole mailbox.
How much did it clear?
The author reports 47 vendor lists in two weeks.

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.

More in Privacy & Security

All 22 Privacy & Security playbooks →

Related playbooks

Privacy & SecurityRoutine✓ AI dry run

Approve a daily memory diff from your personal agent

Keep a personal agent's long-term memory accurate by reviewing a short daily list of proposed additions and edits before they are saved.

Credit: PrincessEe on Hacker News

An afternoon+
Privacy & SecurityWorkflow✓ AI dry run

Run a self-hosted chat assistant with read-only email

Build a small private assistant that you message through your own Matrix server, with sandboxed tools, file-based memory and mailbox access that can only read.

Credit: vidarh on Hacker News

An afternoon+
Privacy & SecurityPrompt✓ AI dry run

Check your family's cars for open safety recalls

With your relatives' permission, have an assistant work out which cars the family drives from routine emails, check each one against official recall records, explain any open recall in plain words and keep watching, while it flags scam emails on the side.

Credit: Albus (@0xAlbus)

Minutes
Privacy & SecurityWorkflow✓ AI dry run

Family AI chat server on your home network

Run a local model with a web chat front end on a home server, give each family member an account, and let an agent handle setup and accounts from your phone.

Credit: roadside_picnic on Hacker News

An afternoon+
Privacy & SecurityWorkflow✓ AI dry run

Harden a home AI agent before you start relying on it

Set up a self-hosted messaging agent so it cannot leak keys or answer strangers, recovers from crashes, and understands your context from the first conversation.

Credit: Aman Khan

An afternoon+