
Weekend Productivity Challenge: Smart Task Prioritizer
An AI-powered task prioritizer built on Amazon Bedrock (Nova Micro) that turns a messy to-do list into a ranked, reasoned action plan in seconds — deployed serverlessly with Lambda, API Gateway, and DynamoDB.
Vision & What the App Does
Every knowledge worker knows the feeling: a messy, unordered list of tasks staring back at you, no clear sense of what actually matters right now. Deadlines, quick wins, low-priority chores, and genuinely urgent fires all sit at the same visual weight in a to-do list. Deciding what to tackle first often takes more mental energy than doing the task itself.
Smart Task Prioritizer solves this by handing that decision-making burden to an AI. The user experience is intentionally simple: paste in a raw list of tasks — one per line, exactly as messy as they exist in your head — optionally add context like a deadline, your role, or what's happening this week, and click "Prioritize with AI." Within a second, the app returns a fully ranked list, each task tagged with a clear, human-readable reason for its position: "Blocks release and affects all users" ranks above "Personal task with no immediate impact on work."
It's not just a sort function. The AI reasons about urgency, dependencies, and business impact the way an experienced engineer or manager would, then explains that reasoning transparently so the user can override it if their judgment differs. Every run is also saved, so a Run History panel lets you look back at past prioritization sessions and instantly restore any of them.
How You Built It
The build followed a "boring infrastructure, smart core" philosophy: keep every moving part as simple and reliable as possible, and let Amazon Bedrock do the actual intelligence. I deliberately avoided OAuth-based integrations (Gmail, Calendar, Slack) that would have added a full weekend of authentication plumbing without adding to the core AI story — this kept the entire build achievable in a tight timeframe while still deploying real, working cloud infrastructure.
The frontend is a single-page vanilla HTML/CSS/JS app with no build step, deployed straight to an S3 static website bucket. That decision paid off — no bundler, no framework version conflicts, just
aws s3 sync and it's live.The backend is a Python 3.12 AWS Lambda function behind an API Gateway HTTP API. It builds a structured prompt instructing Amazon Nova Micro to reason about urgency, impact, and effort, and to return strict JSON. One real engineering challenge here: LLM outputs sometimes wrap JSON in markdown code fences or add stray text, so the Lambda defensively strips and validates the response before returning it — a small but important reliability layer that prevented the "brittle demo" trap.
I hit a couple of real-world snags worth mentioning: a Lambda build failure caused by a stale local Python virtual environment (solved by installing Python 3.12 cleanly), and a subtler one —
crypto.randomUUID() silently failing because S3 static website hosting serves plain HTTP, and that browser API requires a secure context. I added a graceful fallback UUID generator so session tracking works reliably regardless of hosting protocol. Debugging both taught me to verify environment assumptions early rather than late.AWS Services Used / Architecture Overview
Services used: Amazon Bedrock (Nova Micro), AWS Lambda, Amazon API Gateway (HTTP API), Amazon DynamoDB, Amazon S3.
Architecture:
Browser (S3 static site) │ fetch() POST /prioritize ▼API Gateway (HTTP API, CORS enabled) │ ▼AWS Lambda (Python 3.12) │ ├──▶ Amazon Bedrock — Nova Micro (Converse API) │ reasons about urgency/impact/effort, │ returns ranked JSON │ └──▶ Amazon DynamoDB stores each prioritization run, keyed by session ID, with TTL cleanupThe Lambda's IAM role is scoped to least privilege —
bedrock:InvokeModel restricted to the exact Nova Micro model ARN, and DynamoDB permissions restricted to PutItem / Query on the single table. Everything was deployed with AWS SAM (Infrastructure as Code), so the entire stack — Lambda, IAM role, DynamoDB table, and API Gateway routes — can be torn down and rebuilt from a single sam deploy command.What You Learned
This challenge reinforced how much a well-scoped prompt can replace complex application logic — instead of writing a hand-coded scoring algorithm for "urgency vs. impact vs. effort," a carefully structured prompt to Nova Micro did the reasoning more flexibly and transparently than rule-based code ever could. I also got hands-on with Bedrock's Converse API for the first time, and came away appreciating how straightforward it is to bolt genuine reasoning capability onto a simple serverless backend.
On the infrastructure side, this was a good reminder that "free tier friendly" and "well-architected" aren't in tension — HTTP APIs over REST APIs, on-demand DynamoDB billing, and least-privilege IAM roles all kept this comfortably within AWS Free Tier while still reflecting real production practices. Debugging the
crypto.randomUUID() HTTPS requirement was a small but valuable lesson in not assuming browser APIs behave identically across HTTP and HTTPS contexts — the kind of detail that's easy to miss until it silently breaks a demo.Link to App or Repo
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article