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 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.
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.
This is where it gets interesting. Each article gets scored by DeepSeek V3 on three dimensions:
| Dimension | Range | What it measures |
|---|---|---|
| Relevance | 0-10 | How relevant is this to AI agents and autonomous systems? |
| Depth | 0-10 | Technical depth and novelty of the content |
| Practicality | 0-10 | How 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.
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.
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.
| Item | Monthly Cost |
|---|---|
| VPS (Hetzner) | $5 |
| DeepSeek V3 API | ~$3 |
| Buttondown | Free (< 100 subscribers) |
| Domain | Already 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.
AI Agents Weekly — the newsletter this pipeline produces. Free, 3x/week.
Subscribe freeOr download our free guide: Top 10 AI Agent Tools in 2026 (PDF)