AWS Builder Center
Weekend Productivity Challenge: FocusPilot AI

Weekend Productivity Challenge: FocusPilot AI

An AI productivity platform that stops organizing your inbox, calendar, and tasks separately and starts deciding what to do next. Built on Amazon Bedrock, FastAPI, and RDS/pgvector, it summarizes Gmail, auto-drafts replies, detects meetings buried in emails, and optimizes your daily schedule around real priorities.

Weekend Productivity Challenge: FocusPilot AI

Every developer knows the morning ritual: open the inbox, open the calendar, open the task list, and manually figure out which of the three is actually on fire today. None of those tools talk to each other. FocusPilot AI closes that gap — one backend that reads your email inbox and calendar, reasons over them with Amazon Bedrock, and tells you what to do next instead of just showing you everything at once.

Vision & What the App Does

Most productivity software organizes information but never decides anything for you. An email says "submit by tomorrow" and your calendar has no idea. Your calendar says you're booked solid and your task list keeps assigning you more work anyway. The human ends up being the only part of the system reconciling all three, every single day, by hand.
FocusPilot AI is built around a simple premise: combine Tasks, Calendar, Emails, Meetings, and Notes to continuously answer one question — given everything happening today, what is the best thing to do next?
The build is one backend, one AI reasoning layer, multiple clients. For this challenge, the web app is the complete MVP surface — fully built, running against real AWS infrastructure, not a mock. Alongside it, a full Flutter mobile companion app exists too, since the backend was already client-agnostic by design: adding a second consumer of the same API was far cheaper than building the web app was in the first place.
Here's what that looks like day to day. An email lands saying "please submit before tomorrow." FocusPilot strips the signature and quoted reply chain, sends the clean text to Amazon Bedrock, and instead of just summarizing it, offers "Create Task?" with the title, due date, priority, and effort estimate already filled in. A meeting time buried in an email thread gets the same treatment as a "Create Calendar Event" prompt. Type "Build Authentication Module" into Tasks and it comes back broken into Backend API, JWT, Login UI, Registration, Forgot Password, Testing, and Deployment — one click creates all seven. The Calendar module takes your ten highest-priority open tasks and your actual free time today and places "Focus:" blocks on the calendar directly — an AI making a scheduling decision, not just displaying your day back to you.

How I Built It

Six prompts for tasks, not one. A single "handle this task" prompt could have returned priority, effort, breakdown, and dependencies all at once. Splitting it into six narrow, single-purpose prompts instead avoided a real risk: dependency detection. Asked in isolation, an LLM will happily invent a plausible-sounding dependency between two tasks that don't actually relate. The fix is blunt — the prompt only selects from an exact list of the user's other task titles, nothing invented. Overdue tasks get their own prompt too, explicitly biased toward a higher priority score, since reusing the plain priority prompt consistently under-weighted lateness.
Email triage that explains itself. Priority classification doesn't just return "critical" — it returns named factors (deadline, sender importance, keywords, calendar relevance, user history), so the interface shows why an email was flagged, not just that it was. Calendar detection inside emails is its own prompt because its failure mode is different: it has to be comfortable returning "no event, nothing to create" rather than guessing a time out of a vague "let's catch up sometime." Getting a model to confidently say "there's nothing here" needs its own explicit instruction — left unsaid, it invents a meeting that isn't there.
Scheduling as a constraint problem, not a generative one. The AI schedule optimizer takes work hours, today's busy blocks, and the top ten tasks by priority, and proposes focus blocks that don't overlap anything — explicitly told to skip tasks that don't fit rather than force them in. One limitation worth flagging: recurring events are stored as a single row with a recurrence rule and expanded into individual occurrences only when the calendar is viewed, not when conflicts are checked. A recurring 9am standup won't currently get flagged against a one-off 9am meeting three weeks out, since conflict detection only sees each series' own anchor row.
Reminders that are only half-wired today. Every task and calendar reminder already supports a push, in-app, email, or WhatsApp channel in the data model — but every one of them currently lands as an in-app notification regardless of what was requested. Real delivery for the other three channels is the next thing being built.
Two things that saved real debugging time. Amazon Titan's embedding model changed its output size between v1 and v2 — 1536 dimensions versus 1024 — and getting that wrong against a fixed-width pgvector column fails every insert silently until you notice nothing is being saved. And an RDS security group scoped to "my current IP" quietly stops working the moment your ISP rotates it — the error that surfaces has nothing obviously to do with networking, so it's now a one-command documented fix instead of a recurring mystery.
Keeping the AI on a leash. Every prompt across the app ends with some form of "respond with only JSON, no prose" — Bedrock has no native structured-output guarantee, so a shared helper parses the response, validates it against a schema, and retries once before failing rather than writing garbage to the database. Nothing the AI produces writes itself in silently, either: a suggested task, a drafted reply, an AI-placed calendar block all sit behind a confirm step or a visible "AI-generated" tag. The one deliberate exception is the assistant chat — the only feature talking to a human instead of a database — which gets plain language and a word cap instead of forced JSON.

AWS Services Used / Architecture Overview

In production today

Service
What it does here
Amazon Bedrock (Nova Lite + Titan Embed v2)
The reasoning core for every AI decision — email summaries and priority scores, calendar-event detection, schedule optimization, task priority/effort/breakdown/dependencies, meeting prep and summaries, note Q&A, the daily brief, and the chat assistant. Runs on the Converse API so switching models later doesn't mean rewriting every feature.
Amazon RDS (PostgreSQL) + pgvector
System of record, plus the engine behind semantic search — "find the emails about AWS," "find my authentication tasks" — via vector similarity on embedded content.
Amazon S3
Attachments on tasks and notes, served through presigned URLs rather than public objects.
An OAuth-based sign-in connects the app to the user's existing email inbox and calendar. FastAPI is the single hub — talking to Bedrock for reasoning, RDS for storage, S3 for files — and serves the same API to both the web app and the Flutter mobile app, so no AI logic is duplicated between clients.
Bedrock and S3 both scale with actual usage — pay for tokens and storage consumed, nothing at idle. RDS is the one service that doesn't follow that pattern: db.t3.micro is free for a new AWS account's first 12 months, then it's an always-on instance running whether or not anyone's using the app that hour. RDS with pgvector was chosen deliberately, for real relational integrity plus native vector search over a serverless NoSQL alternative — worth being upfront that this isn't a zero-cost-at-rest architecture.
On security: sign-in tokens are Fernet-encrypted before they ever touch the database, the web session is an httponly cookie while the mobile session is a bearer JWT, and AWS credentials never live in the app's config — boto3 pulls them from the environment's credential chain, an IAM role in production.


Additional AWS services in the roadmap

FocusPilot AI's architecture is deliberately extensible, and the next phase of work already names nine more AWS services, each tied to a real, specific gap rather than picked for variety:
Service
Closes this gap
Amazon SES
Reminder channel already supports "email" in the data model; no real email is sent yet
Amazon SNS
Same gap, "push" channel — mobile push reminders aren't delivered yet
AWS End User Messaging Social
Same gap, "whatsapp" channel — delivers reminders through a verified WhatsApp Business number
Amazon Transcribe
Voice notes are a supported attachment type with no audio-to-text path yet
Amazon Textract
Camera-scan/OCR capture (business cards, receipts, whiteboards) has no text-extraction path yet
Amazon Bedrock Guardrails
Formalizes the safety rules currently hand-written into every individual prompt
Amazon Bedrock Knowledge Bases
Managed alternative to the hand-rolled pgvector RAG already powering note search
AWS Step Functions
Makes the existing multi-step Bedrock chains (e.g. email → task suggestion) durable and retryable
AWS Amplify
Completes frontend deployment — the production architecture already names this target
AWS Lambda + Amazon EventBridge
Moves periodic jobs (reminder dispatch, feed refresh) off the main backend process
Amazon CloudWatch
Centralized logging and metrics — none exists today beyond container stdout
AWS Secrets Manager
Removes SECRET_KEY, sign-in secrets, and the DB connection string from a local .env file

What I Learned

The biggest lesson wasn't about Bedrock itself — getting it to return clean JSON was a solved problem within a day. It was realizing the actual hard part is earning the right to let the AI act autonomously at all. Every feature that writes to the database needed its own guard against its own specific way of being wrong: a closed vocabulary for dependency detection so it can't invent relationships, an explicit "say you don't know" instruction for note Q&A so it doesn't fabricate an answer, an explicit "omit, don't force" instruction for the scheduler so it doesn't quietly overbook you. There's no single "be safe" instruction that covers all of that — it has to be reasoned through feature by feature.
The second lesson was about documentation, not code. Writing down a limitation the moment it's noticed — instead of leaving it implicit for someone to eventually stub their toe on — changes how a spec functions. A named gap is a roadmap item. An unnamed one is a bug report waiting to happen.








What's Next for FocusPilot AI

Two new modules and a wave of infrastructure work are scoped and ready to build:
A live AWS news feed inside the app. Recent AWS blog posts and "What's New" announcements, surfaced without leaving FocusPilot, on both web and mobile — a plain aggregation feature, no Bedrock involved, kept deliberately cheap and simple.
Letting external AI tools drive FocusPilot directly. Today's assistant only answers questions about your data. The next step exposes task, email, and calendar operations as individually callable, audited actions — so an outside AI client can create a task or check your calendar on your behalf, through its own access token, with a visible trail distinguishing what it did from what you did yourself.
Finishing the reminder channels that already exist in the schema — real email via Amazon SES, real mobile push via Amazon SNS, and real WhatsApp Business delivery via AWS End User Messaging Social, all routing through the same reminder-dispatch job that already runs today.
Closing the loop on multi-modal input — Amazon Transcribe turning voice notes into searchable text, and Amazon Textract turning scanned documents and receipts into notes, both feeding the exact same note-summarization and embedding pipeline that typed notes already use.
Turning hand-written AI safety rules into a managed policy with Amazon Bedrock Guardrails, and evaluating Amazon Bedrock Knowledge Bases as the managed upgrade path for the note-search RAG pipeline once note volume outgrows a single context window.
Making the AI chains that already run in production durable, moving the multi-step email → task flow onto AWS Step Functions as an inspectable, independently-retryable state machine instead of an all-or-nothing function call.
Closing the deployment gap — AWS Amplify for the frontend, AWS Lambda and Amazon EventBridge to move periodic jobs off the main backend process, Amazon CloudWatch for logging and metrics, and AWS Secrets Manager so credentials stop living in a local environment file.

Link to App or Repo

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