Sorting Desk
Built for the AWS Weekend Productivity Challenge: Sorting Desk is an AI-powered inbox triage tool that sorts emails into Urgent, FYI, and Can Ignore trays using Amazon Comprehend, AWS Lambda, and API Gateway — plus what happened when a new-account AWS verification hold turned into the real story of the build.
Weekend Productivity Challenge: Sorting Desk
Vision & What the App Does
Every morning starts the same way: an inbox full of things that all look equally important until you actually read them. Somewhere in that pile is a genuine fire that needs attention in the next hour, buried next to a newsletter you'll never read and a Slack-style "quick question" that could wait until tomorrow. Sorting Desk exists to do that triage for you.
The idea is simple: paste your inbox in, and the app sorts every email into one of three trays — Urgent (needs action today, has a deadline, or is blocking someone), FYI (relevant, but no immediate action needed), and Can Ignore (newsletters, marketing, automated notices). Each email gets a one-line, plain-English summary and a short reason for why it landed where it did, so you can scan your whole inbox in the time it takes to read three sentences.
From a user's perspective, it's a single page: paste or load your emails, hit "Sort my inbox," and get an organized, prioritized view back in seconds instead of scrolling through fifty subject lines.
How You Built It
I started with a fairly standard serverless pattern: a static frontend, an API Gateway route, and a Lambda function doing the actual classification work. The interesting part of this build wasn't the architecture — it was what happened when I tried to wire up the AI piece.
My first plan was Amazon Bedrock with a Nova model, prompting it to classify and summarize each email in one call. The code worked in local testing (I mocked the Bedrock response to verify the Lambda's parsing and error-handling logic before touching AWS at all), but once deployed, my brand-new AWS account hit a
ThrottlingException — the account's on-demand token quota was provisioned at zero, a known hiccup for freshly created accounts.Rather than lose the weekend waiting on a support ticket, I pivoted the classification engine to Amazon Comprehend instead — a separate, mature NLP service (sentiment analysis + key phrase extraction) that doesn't require a model-access enablement step. I rebuilt the Lambda to combine Comprehend's sentiment scoring with a keyword-pattern layer (urgency terms, deadline language, newsletter/marketing signals) to make the final call on each email, keeping the exact same JSON contract so the frontend needed zero changes.
Even that hit the same wall: a
SubscriptionRequiredException from Comprehend, pointing to the same root cause — very new AWS accounts go through an initial verification hold that can temporarily block calls to several AI services at once, independent of which one you pick. That turned out to be the real story of this weekend: not a code problem, but a brand-new-account provisioning delay that no amount of debugging the Lambda itself was going to fix.The pipeline itself — Lambda, API Gateway, IAM permissions, CORS — all deployed and worked correctly, confirmed by a real 200 response from the API before the AI call inside it hit the account hold. The frontend also runs a local rule-based fallback classifier, so the full experience is demoable end-to-end regardless of the account's verification status.
AWS Services Used / Architecture Overview
- AWS Lambda — Python function running the classification logic
- Amazon API Gateway (HTTP API) —
POST /digestroute, connects the frontend to Lambda
- Amazon Comprehend — sentiment analysis and key phrase extraction (the AI layer, pending account verification)
- AWS Amplify — static hosting for the frontend (or GitHub Pages / local, depending on final deploy)
User → Frontend (static site) → API Gateway (POST /digest) → Lambda (Python) → Amazon Comprehend — sentiment + key phrases ← Returns digest: Urgent / FYI / Can IgnoreA full architecture diagram is included in the repo.
What You Learned
The biggest lesson this weekend wasn't about any specific AWS service — it was about building for graceful degradation. Designing the Lambda's response contract up front meant I could swap the AI backend (Bedrock → Comprehend) without touching the frontend at all, and building a local fallback mode meant a brand-new-account provisioning delay didn't block the whole project. I also learned firsthand that new AWS accounts go through an invisible verification period that can affect multiple AI services simultaneously — something worth building around rather than debugging against.
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