AWS Builder Center
Weekend Productivity Challenge: FocalAI

Weekend Productivity Challenge: FocalAI

Paste your to-do list, get it ranked by urgency and impact — with a one-line reason for every call. Built as a single AWS Lambda function with a Function URL, powered by Amazon Nova on Amazon Bedrock, for the July Weekend Productivity Challenge.

Vision & What the App Does

Every to-do list has the same problem: it tells you what needs doing, but not what actually matters. A haircut sits next to a production bug with equal visual weight. FocalAI fixes that by letting an AI do the triage for you.
The app is intentionally minimal. You land on a single page, paste your tasks into a textarea — one per line, in whatever messy order they came to mind — and click "Prioritize." A few seconds later, each task comes back labeled High, Medium, or Low priority, with a one-line explanation of why it landed there. No login, no account, no task list saved anywhere. You paste, you get your answer, you close the tab. That statelessness was a deliberate choice: for a quick "what should I actually work on right now" check, friction is the enemy, and there's nothing to leak if nothing is stored.

How You Built It

Given the weekend deadline, the biggest early decision was architectural restraint. Rather than standing up a separate frontend deployment (Amplify or S3) plus a backend API (API Gateway + Lambda), I collapsed the entire app into one AWS Lambda function exposed through a Lambda Function URL. On a  GET  request, the function returns the full HTML/CSS/JS page as a string — that's the frontend. On a  POST  request, it reads the pasted tasks, builds a prompt, calls Amazon Bedrock, and returns the ranked result as JSON — that's the backend. Same function, same deployment, two jobs based on HTTP method.
I used Claude Code (Opus 4.8) as the implementation agent, working from a detailed spec I wrote up front: exact architecture (one Lambda, one Bedrock call, nothing else), the AWS credentials it would need, and a checklist of what "done" looked like — including testing both GET and POST against the deployed URL, not just locally.
Two real challenges came up along the way. First, Bedrock's Nova model sometimes wrapped its JSON output in markdown code fences, which broke naive parsing — the fix was stripping fences before parsing rather than trusting the model to always return clean JSON. Second, on the AWS setup side, I created a dedicated IAM user ( focalai-deploy ) scoped specifically to Lambda, IAM role creation, and Bedrock invoke permissions, rather than reusing broader or root credentials — a few extra minutes up front that made the whole deployment easier to reason about and safer to leave running.

AWS Services Used / Architecture Overview

Two services, deliberately:
  • AWS Lambda — both the compute layer and the hosting layer, via a public Function URL. No API Gateway, no separate static hosting.
  • Amazon Bedrock — specifically the Amazon Nova Lite model, called via  invoke_model , to do the actual ranking and reasoning.
The request flow: your browser hits the Function URL. A  GET  (just opening the page) returns the HTML page directly from the Lambda code. Clicking "Prioritize" fires a  POST  from the page's JavaScript back to that same URL; Lambda parses the tasks, sends a prompt to Bedrock, gets back a ranked list, and returns it as JSON, which the page renders as the colored priority cards.
(Architecture diagram: browser ⇄ Lambda Function URL ⇄ Amazon Bedrock, with GET returning the page and POST returning the ranked JSON.)

What You Learned

This was my first hands-on use of Bedrock's  invoke_model  API and Nova's message format — small but real differences from calling a model API directly, like how the response is structured and how model access has to be explicitly enabled per region before the first call will succeed.
I also came away with a genuine appreciation for Lambda Function URLs as a pattern for exactly this kind of scrappy, time-boxed build — a public HTTPS endpoint with zero API Gateway configuration, provisioned in minutes. It's not what I'd reach for a production app, but for "I need this live today," it's hard to beat.
Lastly: scoping IAM permissions tightly for a throwaway deploy user, instead of grabbing broad access out of impatience, cost almost no extra time and made the whole thing easier to trust while it's sitting there publicly accessible over the weekend.

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