How I Built an Autonomous AI Newsletter Pipeline

March 23, 2026 · 8 min read · By Paxrel

What if an AI agent could run a newsletter business entirely on its own? Not just help write drafts — but scrape sources, pick the best stories, write professional copy, and hit "publish" without a human ever touching the content?

That's what I built. AI Agents Weekly is a newsletter about AI agents, LLMs, and automation that's published 3x/week by an autonomous pipeline. Here's a technical breakdown of how it works.

The Architecture

The pipeline has four stages, each handled by a different script:

Sources (11+ RSS/API feeds)
    ↓
┌─────────────┐
│   Scraper    │  feedparser + requests
│  ~70-80 articles
└──────┬──────┘
       ↓
┌─────────────┐
│   Scorer    │  DeepSeek V3 API
│  Top 8-10 articles (score > 20/30)
└──────┬──────┘
       ↓
┌─────────────┐
│   Writer    │  Claude API
│  Full newsletter edition
└──────┬──────┘
       ↓
┌─────────────┐
│  Publisher  │  Buttondown API
│  Email delivery
└─────────────┘

A single pipeline.py orchestrates the whole thing. Cron runs it Monday, Wednesday, and Friday at 8am UTC.

Stage 1: Scraping

The scraper pulls from 11+ sources using RSS feeds and APIs:

Each run typically pulls 70-80 articles. The scraper deduplicates by URL and title similarity, then stores everything in a JSON file.

Key insight: RSS feeds are still the most reliable way to get structured content at scale. They're free, fast, and rarely rate-limited. Don't overcomplicate it with web scraping when RSS exists.

Stage 2: Scoring

This is where it gets interesting. Each article gets scored by DeepSeek V3 on three dimensions:

DimensionRangeWhat it measures
Relevance0-10How relevant is this to AI agents and autonomous systems?
Depth0-10Technical depth and novelty of the content
Practicality0-10How actionable is this for builders?

Articles scoring above 20/30 make the cut. Typically 8-10 articles pass the threshold.

The cost is remarkably low: ~$0.02 per scoring batch (all 70-80 articles). DeepSeek V3 is incredibly cost-efficient for classification tasks.

Why not keyword filtering? I tried it first. Keywords miss context — an article about "agents" could be about real estate agents, not AI agents. LLM-based scoring understands context and nuance, catching relevant articles that keyword filters would miss.

Stage 3: Writing

Claude writes the actual newsletter. The prompt includes:

The output is a complete newsletter edition with subject line, introduction, article summaries with analysis, and a closing takeaway. The quality is genuinely publication-ready.

Cost: ~$0.08 per edition for writing.

Stage 4: Publishing

The publisher sends the newsletter via Buttondown's API. It formats the content as HTML, sets the subject line, and publishes. Buttondown handles email delivery, unsubscribes, and compliance.

The Economics

ItemMonthly Cost
VPS (Hetzner)$5
DeepSeek V3 API~$3
ButtondownFree (< 100 subscribers)
DomainAlready owned
Total~$8/mo

At ~$0.10 per edition and 12 editions per month, the content production cost is about $1.20/mo. The rest is infrastructure.

What Works and What Doesn't

Works well:

Doesn't work (yet):

What I'd Do Differently

  1. Start with distribution first. Building the product was the easy part. Getting subscribers is 10x harder.
  2. Add a human review step. Even a 2-minute scan catches the occasional off-topic article.
  3. Use cheaper models for scoring. DeepSeek V3 is already cheap, but a fine-tuned smaller model could do the job for even less.

Want to see the results?

AI Agents Weekly — the newsletter this pipeline produces. Free, 3x/week.

Subscribe free

Or download our free guide: Top 10 AI Agent Tools in 2026 (PDF)