
"Weekend Agent Challenge:Overnight Tidy-Up Agent"
An AI-powered always-on agent that organizes your backlog every night while you sleep. Triggered by EventBridge Scheduler at 11 PM IST, it uses Amazon Bedrock (Nova Lite) to categorize, prioritize, and flag stale tasks - then emails you a clean priority summary via SES. Built for the AWS Builder Center Weekend Agent Challenge 2026.
Weekend Agent Challenge: Overnight Tidy-Up Agent
Tags: #agents #aws-builders #challenge
Vision & What the Agent Does
Every team has a backlog. And every backlog, if left alone for more than a few days, turns into a mess — stale tickets buried under new ones, priorities that no longer make sense, and items nobody remembers adding. I used to spend the first 20 minutes of every morning just figuring out what to work on. That's not productive work — that's overhead.
Overnight Tidy-Up Agent eliminates that overhead entirely. It's an AI-powered backlog organizer that runs autonomously every night at 11 PM IST, while I'm asleep. It reads my backlog from S3, sends it through Amazon Bedrock's Nova Lite model for intelligent categorization and prioritization, archives a full analysis report, and emails me a clean, scannable summary. By the time I wake up, my backlog is sorted, stale items are flagged, and my top 3 priorities for the day are already decided.
How It Works
- Trigger: EventBridge Scheduler fires at 11 PM IST daily — completely autonomous, no button clicks
- Read: Lambda fetches the current backlog from an S3 JSON file (
s3://bucket/backlog/items.json)
- Analyze: Amazon Bedrock (Nova Lite) categorizes each task into priority buckets (Urgent / Needs Attention / Low Priority / Done), identifies stale items, and suggests what to archive or delegate
- Archive: The full analysis report is saved back to S3, creating a historical record of backlog health over time
- Deliver: A formatted HTML email arrives via Amazon SES with categorized tasks, stale item alerts, top 3 priorities, and suggested actions
The beauty is in the simplicity: update your backlog JSON from anywhere (laptop, phone, CI pipeline), and the agent handles the rest overnight. You start every morning with clarity instead of chaos.
How I Built It
The Problem I Wanted to Solve
I've tried countless productivity systems — Notion boards, Trello workflows, plain text files. They all share the same failure mode: organizing the backlog is itself a task that competes for attention with actual work. I wanted to automate the organization so I could focus purely on execution.
Design Decisions
Why S3 as the data source? I considered connecting directly to Jira or Notion, but for a weekend challenge, S3 gives me maximum flexibility. I can update the JSON file from anywhere — a quick script, a CLI command, even a simple web form. The agent doesn't care how the data gets there; it just reads and analyzes whatever it finds. This also made testing trivial.
Why Nova Lite over Nova Pro? For backlog summarization with typically 10-50 items, Nova Lite provides excellent quality at minimal cost. The responses are structured, consistent, and fast (under 3 seconds). There's no need for a heavier model when the context is well-defined and the output format is constrained.
Why archive reports to S3? This was a late addition that proved incredibly valuable. By saving each nightly analysis, I can look back and see how my backlog evolved — which items lingered, how priorities shifted, and whether I'm actually making progress or just churning.
Challenges Encountered
Challenge 1: Prompt engineering for consistent output. Getting Bedrock to return a reliably structured JSON response took iteration. The key insight was providing an explicit schema in the prompt with example outputs, and asking the model to categorize items into exactly four buckets with no ambiguity.
Challenge 2: Handling empty or malformed backlogs. What if someone uploads an empty JSON? Or forgets a required field? I added defensive validation at the Lambda level — the agent gracefully handles edge cases and still sends an email (even if it's just "Your backlog is empty — nice work!").
Challenge 3: Email rendering across clients. HTML emails look different everywhere. I kept the template simple — inline CSS, table-based layout, system fonts — and tested across Gmail, Apple Mail, and Outlook. The priority color coding (red/yellow/green) works universally.
AWS Services Used / Architecture Overview
AWS Service | Purpose | Free Tier |
|---|---|---|
Amazon EventBridge Scheduler | Daily trigger at 11 PM IST | Yes (14M invocations/month) |
AWS Lambda (Python 3.12) | Core agent logic | Yes (1M requests/month) |
Amazon S3 | Backlog storage + report archiving | Yes (5 GB) |
Amazon Bedrock (Nova Lite) | AI categorization & prioritization | Credits for new accounts |
Amazon SES | Email delivery | Yes (62K emails/month) |
Architecture
┌─────────────────────────────────────────────────────────┐
│ OVERNIGHT TIDY-UP AGENT │
│ │
│ ┌──────────────────────┐ │
│ │ EventBridge │ │
│ │ Scheduler │── cron(30 17 * * ? *) UTC │
│ │ (11:00 PM IST) │ │
│ └──────────┬───────────┘ │
│ │ triggers │
│ ▼ │
│ ┌──────────────────────┐ │
│ │ AWS Lambda │ │
│ │ Python 3.12 │ │
│ │ 256MB / 60s timeout │ │
│ └──┬───┬───┬───┬───────┘ │
│ │ │ │ │ │
│ │ │ │ └──→ Amazon SES │
│ │ │ │ (send priority email) │
│ │ │ │ │
│ │ │ └──────→ Amazon S3 │
│ │ │ (save nightly report) │
│ │ │ │
│ │ └──────────→ Amazon Bedrock │
│ │ Nova Lite (categorize & rank) │
│ │ │
│ └──────────────→ Amazon S3 │
│ (read backlog/items.json) │
│ │
└─────────────────────────────────────────────────────────┘Key design principles:
- Fully serverless — zero infrastructure to maintain, no servers running 24/7
- Idempotent — safe to run multiple times; each run produces a clean analysis from the current state
- Cost-efficient — total monthly cost ~$0.30, well within Free Tier for new accounts
- Extensible — swap S3 for Jira/Notion API, add Slack notifications, or scale to team backlogs without changing the core architecture
What I Learned
1. The Power of "Overnight" Agents
There's something psychologically satisfying about waking up to organized work. The agent removes decision fatigue from the start of my day. I've realized that the best agents don't try to do everything in real-time — they take advantage of downtime (nighttime, idle hours) to prepare you for action.
2. S3 as a Simple "Database" Works Surprisingly Well
For personal productivity tools, a JSON file in S3 is a perfectly valid data store. It's versioned, accessible from anywhere, costs nothing, and requires zero database administration. For a weekend project, this was the right level of complexity.
3. Bedrock's Structured Output Is Reliable
By constraining the prompt to output a specific JSON schema with defined categories, Nova Lite returns consistent, parseable results every single time. The trick is being prescriptive: don't say "categorize these tasks" — say "place each task into exactly one of these four categories: Urgent, Needs Attention, Low Priority, Done."
4. EventBridge Scheduler + Lambda Is the Simplest Always-On Pattern
No EC2 instances, no containers, no cron servers. One schedule expression, one Lambda function, and you have a reliable agent that runs forever at essentially zero cost. This pattern is the foundation for dozens of useful autonomous agents.
5. Historical Reports Add Unexpected Value
Archiving each nightly report to S3 was a last-minute addition, but it turned out to be one of the most useful features. Looking at a week of reports, I can see patterns — items that keep getting classified as "stale," priorities that bounce between categories, and work that's silently growing in scope.
Example Output
The agent sends an HTML email every night with:
🔴 Urgent (Do Today)
- Fix production authentication bug (stale: 4 days!)
- Submit Q3 budget review (deadline: tomorrow)
🟡 Needs Attention (This Week)
- Review PR #247 — teammate waiting
- Update API documentation for v2 endpoints
- Schedule design review meeting
🟢 Low Priority (Backlog)
- Refactor logging module
- Research new monitoring tools
- Write blog post about Lambda patterns
✅ Done (Archive These)
- Set up CI/CD pipeline ✓
- Onboard new team member ✓
💡 Agent Insights
- 2 items have been stale for 4+ days — consider delegating or dropping
- Top 3 priorities for tomorrow: Auth bug → Budget review → PR #247
- Suggested archival: 2 completed items can be removed from active backlog
Link to Repo
The repo includes:
-
lambda_function.py— Complete agent code (Python 3.12)
-
sample_backlog.json— Example backlog data to get started
-
iam_permissions_policy.json— IAM policy (copy-paste ready)
-
iam_trust_policy.json— IAM trust policy for Lambda
-
DEPLOYMENT_GUIDE.md— Full step-by-step deployment walkthrough
Try It Yourself
- Clone the repo
- Follow
DEPLOYMENT_GUIDE.md(5 steps, ~10 minutes)
- Replace
sample_backlog.jsonwith your actual tasks
- Upload to S3 and let the agent handle the rest
Wake up tomorrow to a prioritized, categorized, ready-to-execute backlog — without lifting a finger.
Built with ☕ and AWS for the Builder Center Weekend Agent Challenge, July 2026. The best productivity tool is the one that works while you sleep.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article