AWS Builder Center
FocusFlow - Personal AI Productivity Planner

FocusFlow - Personal AI Productivity Planner

FocusFlow is a personal AI-powered productivity planner that helps you organize work, stay focused, and never miss what matters in the AWS ecosystem.

Sharing, Learning, Growing Together
Every developer has experienced the same challenge: a growing list of tasks, multiple deadlines, constant context switching, and the feeling of not knowing what to work on next. Traditional to-do applications help us record tasks, but they rarely help us decide which task deserves our attention first.
For this Weekend Productivity Challenge, I wanted to build something more than another task manager. I wanted an intelligent productivity assistant that understands priorities, plans the day, and provides personalized recommendations using generative AI.
That idea became AI FocusFlow an AI-powered productivity planner built on AWS that combines Amazon Bedrock, serverless architecture, and modern web technologies to help users stay organized and focused.
The Problem: We all struggle with the same productivity challenges - too many tasks, no clear priorities, scattered schedules, and constantly falling behind on learning new AWS services. Existing to-do apps tell you what to do but never when or why.
The Solution: FocusFlow uses Amazon Bedrock AI to intelligently prioritize your tasks, generate optimized daily schedules based on your energy patterns, break complex work into manageable pieces, and keep you current with real-time AWS news and events.



Vision & What the App Does

Instead of simply storing tasks, FocusFlow acts as an AI productivity coach.
Users can create tasks with deadlines, priorities, and estimated effort. Amazon Bedrock analyzes the workload, identifies the most important work, generates an optimized schedule, and even breaks large tasks into smaller actionable steps.
The application also provides productivity insights, weekly summaries, achievement tracking, and an AWS Hub that aggregates the latest AWS announcements, blogs, and upcoming events so developers can stay current without leaving the application.
The goal is simple:
Spend less time planning and more time doing.
From the user's perspective:
  1. Sign in with just your email - enter your address, get a one-time code, you're in. No passwords.
  1. Create tasks with priorities, categories, tags, and time estimates.
  1. Ask the AI - "What should I focus on today?" and it analyzes your deadlines, workload, and energy pattern to recommend the optimal order.
  1. Generate a daily plan - AI creates a time-blocked schedule with focus blocks, breaks, and buffer time.
  1. Track progress - Dashboard shows completion rates, streaks, and an AI productivity score.
  1. Stay current with AWS - Live feed pulls real-time articles from 8 AWS blog RSS feeds, What's New announcements, and upcoming events.
  1. Level up - Earn XP, maintain streaks, unlock achievements, and complete daily challenges.



How I Built It

Development Process

I built FocusFlow over an intensive weekend sprint, treating it as a real production SaaS from day one. The approach:
Day 1: Foundation
  • Scaffolded the full monorepo: React frontend (Vite + TypeScript + Tailwind), Node.js Lambda backend, and infrastructure as code
  • Built the complete type system first (TypeScript interfaces for tasks, plans, agents, analytics)
  • Created reusable UI component library (Button, Card, Dialog, Badge, etc.) before any pages
Day 2: Core Features + AI
  • Implemented all page layouts with responsive sidebar, dark mode, route transitions
  • Built the AI agent system with structured prompts for each agent role
  • Created the Lambda handlers with DynamoDB integration
  • Deployed to AWS using CDK
Day 3: Polish + Innovation
  • Added the MCP server (Model Context Protocol) with 21 tools for agentic workflows
  • Built Strands Agents (Python) for autonomous task management
  • Integrated real-time AWS RSS feeds for the AWS Hub
  • Added gamification (XP, streaks, achievements) and interactive onboarding
  • Implemented premium animations with Framer Motion

Key Decisions

  • Email OTP over passwords - Better UX, more secure, less friction. Used Cognito custom auth challenges with Lambda triggers.
  • MCP for tool access - Instead of hardcoding AI capabilities, I exposed everything as MCP tools. Any MCP client (Claude, Kiro, Cursor) can now manage tasks through the same protocol.
  • RSS for real-time AWS content - Rather than scraping or using a database, the app fetches live RSS feeds from  aws.amazon.com  directly. Always fresh, zero maintenance.
  • CDK over SAM - Easier to express complex relationships (Cognito triggers, IAM policies) in TypeScript.

Challenges & Solutions

Challenge
Solution
Lambda ESM module resolution failing
Switched to CommonJS output for Lambda compatibility
CDK not updating Lambda code (asset hash caching)
Direct update-function-code via CLI as workaround
SES sandbox blocking OTP emails
Built dev mode that returns OTP in challenge params
Amplify build failing on monorepo
Added appRoot: frontend in amplify.yml
Agent service not deployed (Python)
Routed AI Guide through the deployed Bedrock Lambda directly



AWS Services Used / Architecture Overview

Services

Service
Purpose
Amazon Bedrock (Nova Lite)
AI engine - task prioritization, daily planning, coaching, insights
AWS Lambda (Node.js 20, ARM64)
6 API handlers + 4 Cognito triggers
Amazon API Gateway
REST API with CORS
Amazon DynamoDB
4 tables (Tasks, Plans, Insights, Notifications) - pay-per-request
Amazon Cognito
Passwordless email OTP authentication with custom auth flow
Amazon SES
Sends OTP verification codes
AWS Amplify Hosting
Frontend deployment with CI/CD from GitHub
Amazon CloudWatch
Structured logging, metrics
AWS CDK
Infrastructure as code (entire stack in TypeScript)

Architecture


┌──────────────────────────────────────────────────────────────┐
│ React Frontend (Vite + Tailwind + Framer Motion) │
│ Hosted on AWS Amplify - Auto-deploys from GitHub │
│ Fetches real-time AWS RSS feeds directly │
└──────────────────────┬───────────────────────────────────────┘
│ HTTPS
┌──────────────────────▼───────────────────────────────────────┐
│ Amazon API Gateway (REST) │
│ + Amazon Cognito JWT Authorizer (Email OTP) │
└──────────────────────┬───────────────────────────────────────┘
│
┌──────────────────────▼───────────────────────────────────────┐
│ AWS Lambda Functions (Node.js 20, ARM64) │
│ │
│ ┌──────┐ ┌──────┐ ┌────┐ ┌────────┐ ┌─────────┐ ┌──────┐ │
│ │ Auth │ │Tasks │ │ AI │ │Planner │ │Analytics│ │Notif │ │
│ └──┬───┘ └──┬───┘ └─┬──┘ └───┬────┘ └────┬────┘ └──┬───┘ │
└─────┼────────┼────────┼────────┼───────────┼─────────┼──────┘
│ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼
┌──────────┐ ┌────────────────┐ ┌──────────────────────────┐
│ Cognito │ │ DynamoDB │ │ Amazon Bedrock │
│ + SES │ │ (4 tables) │ │ (Nova Lite AI) │
│ (OTP) │ │ PAY_PER_REQ │ │ Structured Prompts │
└──────────┘ └────────────────┘ └──────────────────────────┘

Optional Agentic Layer:
┌──────────────────────────────────────────────────────────────┐
│ MCP Server (21 tools) ←→ Strands Agents (6 agents) │
│ Model Context Protocol for tool-use autonomy │
└──────────────────────────────────────────────────────────────┘

A full  draw.io  diagram is included in the repository at  docs/architecture-diagram.drawio 



What I Learned

New Skills Discovered

  1. Model Context Protocol (MCP) - Building an MCP server that exposes app functionality as tools was eye-opening. Once you have tools defined, any AI client can use them. The protocol is the future of AI-tool integration.
  1. Strands Agents SDK - AWS's open-source agentic SDK is remarkably simple. An agent is just: model + tools + prompt. The agentic loop (reason → act → observe → repeat) happens automatically.
  1. Cognito Custom Auth Challenges - Implementing passwordless OTP required 4 Lambda triggers working in concert (Define → Create → Verify → PreSignUp). It's more complex than password auth but the UX is worth it.
  1. Amazon Bedrock Nova Lite - Fast, cheap, and capable enough for structured JSON responses. The key insight: well-crafted system prompts with explicit JSON schemas produce reliable, parseable output every time.
  1. RSS as a real-time data source - No database needed for the AWS news feature. RSS feeds from  aws.amazon.com  are updated multiple times daily and are freely accessible. A simple 5-minute cache keeps things fast.

Architecture Insights

  • Serverless is the right default for productivity apps - usage is bursty (heavy during work hours, zero at night). Pay-per-request DynamoDB + Lambda means near-zero cost at low scale.
  • CDK > SAM for complex stacks - once you have Cognito triggers, IAM cross-references, and multiple tables, TypeScript CDK is much more maintainable.
  • Gamification drives habit formation - XP, streaks, and achievements aren't just fun. They create feedback loops that make users come back daily.
  • Separation of AI from UI - The AI endpoints work independently of the frontend. You can query them via curl, MCP, or the Strands agent. This decoupling makes the system extensible.

What Surprised Me

The entire backend (6 Lambda functions, 4 Cognito triggers, 4 DynamoDB tables, API Gateway, Cognito pool) deploys in under 2 minutes with CDK. The AWS serverless stack is genuinely production-ready for solo developers.

All agents use:

  • System prompt defining role, capabilities, and response JSON schema
  • Context block with real user data (tasks, deadlines, progress)
  • JSON-only output - no free-text, always parseable
  • Confidence scores (0-1) on every recommendation

Security Model

  1. Auth: Cognito issues JWTs after email OTP verification
  1. API: API Gateway validates JWT before Lambda execution
  1. Data isolation: DynamoDB uses userId as partition key
  1. Input validation: Zod schemas on all request bodies
  1. Least privilege: Each Lambda has only the IAM permissions it needs
  1. Transport: HTTPS enforced, HSTS headers via Amplify
  1. Secrets: No secrets in code — environment variables set by CDK

Performance

  • Cold starts: ARM64 + small bundle (~200ms)
  • DynamoDB: Single-digit millisecond latency at any scale
  • Bedrock: Nova Lite inference ~1-3s per request
  • Frontend: Vite code splitting, React Query caching, optimistic updates
  • RSS feeds: 5-minute client-side cache, no backend dependency

Cost (Free Tier Friendly)

Service
Free Tier
Estimated Monthly (1 user)
Lambda
1M requests free
$0
DynamoDB
25 WCU/RCU free
$0
Bedrock
Pay-per-token
~$0.50-1.00
Cognito
50K MAU free
$0
Amplify
1000 build min free
$0
SES
62K emails free (from Lambda)
$0
Total

~$0.50-1.00/month



Tech Stack Summary

Layer
Technology
Frontend
React 18, TypeScript, Vite, Tailwind CSS, Framer Motion, Recharts, React Query
Backend
AWS Lambda (Node.js 20), TypeScript, Zod validation
Database
Amazon DynamoDB (4 tables, pay-per-request)
AI
Amazon Bedrock (Nova Lite), structured prompts, JSON-only responses
Auth
Amazon Cognito (custom auth OTP via SES)
Hosting
AWS Amplify (CI/CD from GitHub)
IaC
AWS CDK (TypeScript)
Agentic
MCP Server (21 tools) + Strands Agents SDK (6 agents)
Real-time
AWS RSS feeds (8 blogs + What's New)



Conclusion

Building AI FocusFlow in a single weekend was an exciting challenge that combined modern frontend development, serverless AWS services, and generative AI into one application.
Rather than replacing traditional productivity tools, AI FocusFlow enhances them by helping users make better decisions about what to do next.
This project also strengthened my understanding of Amazon Bedrock, AWS Amplify, Lambda, DynamoDB, and AI-powered application architecture. I'm excited to continue evolving the application with calendar integration, voice interaction, and intelligent reminders in future versions.



Link to App & Repo

  • Region: us-east-1

Try It

  1. Open the app
  1. Enter any email address
  1. Enter the OTP code shown (dev mode auto-fills it)
  1. Explore the Dashboard, Tasks, AI Assistant, and AWS Hub

Run Locally

git clone https://github.com/dineshrajdhanapathyDD/FocusFlow.git
cd FocusFlow/frontend
npm install && npm run dev


Built with AI during the AWS Productivity Challenge



Documentation

For deeper technical details, see these guides in the repository:
  •   Deployment Guide  - Step-by-step AWS deployment with CDK, Amplify hosting, and production checklist
Thank you for taking the time to read my article! If you found it helpful, feel free to like, share, and drop your thoughts in the comments; I’d love to hear from you.
If you want to connect or dive deeper into cloud, AI and DevOps, feel free to follow me on my socials:
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