AWS Builder Center
Weekend Annoying Task Challenge: Life Admin Autopilot

Weekend Annoying Task Challenge: Life Admin Autopilot

Life Admin Autopilot is an AI agent that reads your Gmail inbox, picks out the small obligations hiding in it — bills, subscription renewals, expiring documents, delivery windows, replies you owe — and turns them into a prioritized action queue you can triage in seconds. Every Friday at 5 PM IST, it synthesizes the whole week into a "Zero-Admin Friday" digest emailed to you, showing what it already handled, what needs your approval, and what can safely wait.

AI Engineer | AWS Community Builder
Every Friday night I used to do the same thing: sit down, open my inbox, and spend twenty minutes hunting through it for whatever I'd forgotten. A bill due Monday. A subscription about to renew. A friend's text I never replied to. None of it was hard to deal with — the annoying part was remembering it existed in the first place.
That's the task I picked for this weekend's challenge: not sorting emails, not summarizing them, but eliminating the mental overhead of remembering what I'm supposed to remember. The result is Life Admin Autopilot — an AI agent that reads my inbox, turns the small obligations hiding in it into a prioritized action queue, and clears my week for me every Friday with a single digest.

Vision & What the App Does

Life Admin Autopilot treats your inbox as a stream of "open loops" — things that need an action, a decision, or a reply, but haven't gotten one yet. Bills. Renewal notices. Expiring documents. Delivery windows. Registration deadlines. Messages still waiting for a reply. Individually each one takes ten seconds to notice and handle. Collectively, across a week, they're the reason Saturday mornings disappear into inbox triage.
The app works continuously in the background:
  • It polls your Gmail inbox on a schedule, reads new unread mail, and hands each message to an AI model that decides: is this actually actionable, and if so, what category is it, what's the deadline, what's the priority, and what should happen next?
  • Actionable items become tasks in a personal dashboard, where you can Approve, Postpone, or Ignore each one in a couple of clicks.
  • Every Friday at 5:00 PM IST, a second AI pass looks at the whole week — what's still open, what you already resolved — and writes "Zero-Admin Friday": a short, warm digest showing what it handled, what still needs your call, and what can safely wait. That digest lands both in the dashboard and in your inbox as an email.
The whole point is that you spend a few minutes on Friday instead of losing a chunk of your weekend to admin. You stay in control the entire time — nothing gets paid or sent without you approving it. The agent triages; you decide.
Since reading someone's actual personal Gmail requires OAuth consent that only makes sense for the account owner, the app also ships a public Live Demo page. It runs six representative sample emails — a bill, a subscription renewal, a vehicle registration deadline, a delivery notice, a reply-needed message, and a newsletter — through the exact same extraction and digest pipeline, so anyone can see the AI working end to end without needing to connect their own inbox.




How I Built It

I wanted this to be fully serverless from the start — no servers to patch, no idle compute cost, everything scaling to zero when nobody's using it.
Tech stack:
  • Frontend: React + Vite, styled with Tailwind CSS v4, using  lucide-react  for icons and  aws-amplify  (Auth module) for talking to Cognito. Client-side routing via  react-router-dom . Deployed on AWS Amplify Hosting.
  • Backend: Python 3.12 on AWS Lambda — four functions (API handler, Gmail poller, SES email ingest, weekly digest generator) sharing one common Lambda layer for Bedrock, DynamoDB, and SES helper code, so prompt templates and data-access logic live in exactly one place.
  • AI: Amazon Bedrock, called through the Converse API — Nova Lite for per-email extraction, Nova Pro for weekly digest synthesis.
  • Data: Amazon DynamoDB, single-table design ( PK=USER#<id> ,  SK=TASK#<id>  /  SK=DIGEST#<week> ).
  • Auth: Amazon Cognito User Pool, with a custom owner-only authorization check layered on top in the API Lambda.
  • API layer: Amazon API Gateway (HTTP API) with a Cognito JWT authorizer on protected routes, and one public unauthenticated route for the live demo.
  • Scheduling: Amazon EventBridge — a rate schedule for Gmail polling, a cron schedule for the Friday digest.
  • Email: Amazon SES for outbound digest delivery, with an optional inbound receipt rule for anyone who owns a domain.
  • Secrets: AWS Systems Manager Parameter Store (SecureString) for the Gmail OAuth refresh token.
  • Infrastructure as code: AWS CDK in Python, two stacks ( auth ,  compute ), deployable end-to-end with  cdk deploy --all .
My process started with the two hardest architectural decisions, before writing any code: how does the app actually read a real inbox, and who is this app for.
Decision 1: Gmail API polling, not SES inbound. My first instinct was to use SES to receive mail, since that's the "AWS-native" answer. But SES can only receive at a domain you own with MX records pointed at AWS — it can't receive at a plain  @gmail.com  address. Since the whole point was reading my own real inbox without needing to buy and configure a domain for a weekend project, I chose the Gmail API instead: a scheduled Lambda polls unread mail directly, using an OAuth refresh token obtained once through a local script. I kept the SES-inbound path in the CDK stack as an optional, feature-flagged extra for anyone who does own a domain, but Gmail polling is the primary path this app actually runs on.
Decision 2: two AI passes, not one. I deliberately split the AI work into two different Bedrock calls with two different models. Nova Lite runs per-email, doing fast, cheap, mechanical classification — is this actionable, what category, what deadline. Nova Pro runs once a week, doing the harder reasoning task of looking across the whole set of tasks and writing a coherent, prioritized digest. Using one model for both would have meant either overpaying for the simple per-email pass or underpowering the weekly synthesis — splitting them let me pick the right tool for each job.
Decision 3: infrastructure as one cohesive CDK app, not a monolith of scripts. Everything — Cognito, DynamoDB, all four Lambdas, API Gateway, EventBridge schedules, IAM policies — is defined in Python CDK across two stacks ( auth  and  compute ), so the entire backend can be stood up or torn down with a single  cdk deploy  /  cdk destroy . The Lambda functions share a common layer ( common/bedrock.py ,  common/dynamo.py ,  common/prompts.py , etc.) so the Bedrock prompt templates and DynamoDB access patterns live in exactly one place, not duplicated across four handlers.
Decision 4: owner-gated access from day one of adding auth. Once I added Cognito so the dashboard could be authenticated, I made a deliberate call: authentication (proving who you are) and authorization (what you're allowed to see) needed to be handled as two separate, explicit steps in the API Lambda, not assumed to be the same thing. Every route checks the caller's verified email against the deployer's own email before returning any real data.
Decision 5: light/dark theme with proper UX defaults. For the UI polish pass, I added a theme toggle following standard practice: default to the OS preference on first visit, remember the user's explicit choice in localStorage afterward, and apply the theme class before React even mounts (via a tiny inline script in  index.html ) so there's no flash of the wrong theme on page load.

Challenges Encountered — and How I Overcame Them

The Gmail OAuth client type trap. My first OAuth client in Google Cloud Console was created as "Web application" type, which requires every redirect URI to be pre-registered. The local setup script uses a random localhost port each run, so authorization failed immediately with  redirect_uri_mismatch . I fixed it by recreating the client as "Desktop app" type, which accepts any localhost port at runtime by design — a five-minute fix once I understood why it was failing, but a confusing wall before that.
Getting Nova to return reliable JSON, not prose. Both AI passes need structured JSON back, not conversational text. Early responses sometimes wrapped the JSON in markdown code fences or added a sentence before it. I solved this with a strict system prompt defining the exact JSON shape expected, paired with a small regex-based fallback parser in the shared layer that strips fences and extracts the JSON object even if the model adds wrapping text.
A region-specific Bedrock failure. I initially deployed to  us-east-1 , then redeployed the whole stack to  us-west-2  for latency reasons. Nova Pro's on-demand invocation, which worked fine in  us-east-1 , failed in  us-west-2  with  ValidationException: Invocation of model ID ... with on-demand throughput isn't supported . Reading the error carefully led me to Bedrock's cross-region inference profile IDs ( us.amazon.nova-lite-v1:0  /  us.amazon.nova-pro-v1:0 ), which resolved it — a regional quirk that's easy to miss until you actually deploy somewhere other than  us-east-1 .
A real security gap I caught myself. Partway through testing, I realized that letting anyone create a Cognito account and open the dashboard meant anyone could potentially see my real inbox data, since the backend was reading tasks under one fixed "owner" record regardless of who was logged in. I closed this by checking the signed-in user's verified email claim against the deployer's own email, server-side, on every request: only that one account can ever read or act on real data, and every other account gets a quietly empty dashboard rather than an error that reveals owner data exists at all.
A CDK circular dependency. I initially split the DynamoDB table and S3 bucket into their own stack, separate from the Lambdas. CDK refused to synth: the S3 bucket's Lambda notification needed a reference into the compute stack, while the compute stack's IAM grants needed a reference back into the data stack — a genuine cycle. The fix was merging the table, bucket, and all Lambdas into one stack, since they're tightly coupled resources that shouldn't have been split in the first place.



AWS Services Used / Architecture Overview


Service
Role
Amazon Bedrock (Nova Lite + Nova Pro)
Nova Lite extracts structured open-loop data from each email; Nova Pro synthesizes the weekly "Zero-Admin Friday" digest
AWS Lambda
Four Python functions: API backend, Gmail poller, SES email ingest, weekly digest generator
Amazon EventBridge
Two schedules: Gmail poll every 3 hours, and the Friday digest cron (5:00 PM IST)
Amazon DynamoDB
Single-table store for tasks (open loops) and generated digests
Amazon Cognito
User pool authentication for the dashboard
Amazon API Gateway (HTTP API)
REST surface with a Cognito JWT authorizer; one public route for the demo
Amazon SES
Sends the Friday digest email; an optional receipt rule can also ingest forwarded mail from an owned domain
AWS Systems Manager Parameter Store
Stores the Gmail OAuth refresh token as a SecureString, outside of CDK's control so redeploys never overwrite it
AWS Amplify Hosting
Hosts the React frontend
AWS CDK (Python)
Defines all of the above as code, across two stacks (auth, compute)
How the agent is triggered: there are three independent triggers, not one. Gmail polling runs on an EventBridge rate schedule (every 3 hours) and calls the Gmail API directly using a stored OAuth refresh token. The Friday digest runs on an EventBridge cron schedule and reads the week's tasks straight from DynamoDB. And the interactive dashboard is triggered on-demand by the user, through API Gateway, whenever they open the app or click "Run Friday digest now."
User-flow diagram:

Sequence diagram phase 1:

Sequence diagram phase 2:




What I Learned

"Personal app" and "public sign-up" are in tension, and the tension needs explicit code, not assumptions. Cognito made adding authentication trivial, but authentication isn't the same as authorization. The biggest lesson from this build was that I can't treat "the user is logged in" as equivalent to "the user is allowed to see this data" — those are two different questions that need two different checks, every time.
Prompt-engineering for extraction and for synthesis are genuinely different skills. Getting Nova Lite to classify a single email reliably is a constrained, almost mechanical task — the system prompt just needs to be strict about the JSON shape. Getting Nova Pro to write a good weekly digest — one that feels considered, not just templated — took more iteration on tone, and on explicitly instructing it to reference the real task titles I gave it rather than inventing generic-sounding summaries.
Infrastructure-as-code surfaces design problems earlier than manual clicking would. The CDK circular dependency was frustrating in the moment, but it caught a real architectural mistake — splitting resources that were actually tightly coupled — before it became a maintenance headache. If I'd clicked these resources together manually in the console, I might never have noticed the coupling at all.
Small UX defaults compound into a much better feel. Neither the theme toggle nor the "empty dashboard instead of an error" behavior for non-owner accounts were strictly required by the challenge brief, but both took the app from "technically works" to "feels considered" — and neither took more than an hour to get right once I decided they mattered.
Deploying to more than one region early catches quirks you'd otherwise ship blind to. Redeploying to  us-west-2  for latency wasn't strictly necessary for a weekend project, but it surfaced the Bedrock inference-profile requirement I'd have never discovered if I'd only ever tested in  us-east-1 .



The Result

I ran the full loop end to end: I forwarded a handful of real emails — an electricity bill, a subscription renewal, a vehicle registration notice — through the live pipeline, watched Nova Lite pull out the deadline and priority from each one without me writing a single parsing rule, and approved a couple of them right from the dashboard. Then I triggered the Friday digest manually instead of waiting for Friday, and Nova Pro came back with a headline that actually referenced my real tasks by name, not a generic template — it knew which bill was due soonest, and it knew I'd already cleared the registration renewal. A minute later, the same digest showed up as an email in my inbox, formatted and ready, exactly like the dashboard version.
What struck me wasn't that an agent could summarize a to-do list — plenty of things do that. It was that the two AI passes felt distinctly different from each other, the way I'd designed them to: Nova Lite reading one email at a time felt fast and almost mechanical, while Nova Pro looking at the whole week together felt like it was actually reasoning about priority, not just concatenating bullet points. Watching that difference show up in the actual output, not just in my head as a design intention, was the moment this stopped feeling like a demo and started feeling like something I'd genuinely keep running.
The deeper thing I was testing with this challenge wasn't really "can an agent read my inbox and remind me of things" — reminder apps have existed forever. It was whether an agent could tell the difference between something that needs me right now and something that can quietly wait, and be right about it often enough that I'd actually trust the digest instead of double-checking my inbox anyway. After a week of real use, I stopped double-checking.





Link to App or Repo

Final Thoughts

The most useful thing I learned building this isn't really about AWS at all — it's that a genuinely annoying task usually isn't complicated to automate, it's complicated to trust. The hard part of this build wasn't wiring Bedrock into a Lambda function; it was deciding how much autonomy to give the agent (a lot, for triage and summarizing) versus how much to keep with the human (all of it, for actually approving or paying anything). That balance — quietly doing the tedious part, while never quietly doing the consequential part — is what turned this from "another reminder app" into something that actually gives me my Fridays back.
Made with Kiro.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article