
Weekend Productivity Challenge: TaskPilot AI – AI Task Prioritization Using Amazon Bedrock and AWS Serverless
Learn how I built TaskPilot AI, an AI-powered productivity assistant using Amazon Bedrock, FastAPI, AWS Lambda, API Gateway, DynamoDB, S3, CloudFront, and Terraform. Discover the architecture, implementation, deployment process, and lessons learned while building a fully serverless AWS application for the Weekend Productivity Challenge.
Introduction
Productivity isn't about completing more tasks—it's about completing the right tasks at the right time.
Most of us start the day with a growing to-do list, but deciding where to begin often takes longer than expected. Important work gets buried beneath low-impact tasks, deadlines sneak up unexpectedly, and constant context switching makes it difficult to maintain focus. Traditional task managers are great at storing tasks, but they rarely help users determine what should be done first.
That challenge inspired me to build TaskPilot AI, an AI-powered productivity assistant designed to transform a simple task list into an intelligent daily execution plan. Instead of manually organizing priorities, users provide their tasks and a bit of daily context, and the application leverages Amazon Bedrock to analyze urgency, estimate completion time, recommend the best working schedule, and provide actionable productivity insights.
The entire solution is built on a fully serverless AWS architecture and deployed using Terraform, making it scalable, cost-effective, and easy to reproduce.
Vision & What the App Does
TaskPilot AI is designed to act as a personal productivity coach rather than just another to-do list application.
Users begin by entering the tasks they need to complete along with optional context such as upcoming deadlines, available working hours, or important personal commitments. For example:
"I have an AWS certification exam tomorrow and only five hours available today."
Instead of simply sorting tasks alphabetically or by due date, the application sends this information to Amazon Bedrock, where an AI model evaluates the overall workload and generates an optimized execution strategy.
For every task, TaskPilot AI returns:
- Critical, High, Medium, or Low priority
- Estimated completion time
- Recommended time of day to complete the task
- AI-generated reasoning behind the priority
- Suggested first action
- Personalized productivity recommendations and motivation
Every completed analysis is securely stored in Amazon DynamoDB, allowing users to revisit previous productivity sessions and monitor their progress over time.
Rather than creating another place to store tasks, TaskPilot AI focuses on helping users make better decisions about how to spend their time.
Features
TaskPilot AI combines modern cloud technologies with generative AI to provide practical productivity improvements.
Key capabilities include:
- AI-powered task prioritization
- Smart scheduling recommendations
- Personalized AI motivation
- Historical productivity tracking
- Fully serverless AWS architecture
- Infrastructure as Code using Terraform
- Responsive React dashboard
- Global frontend delivery through Amazon CloudFront
How I Built It
Choosing a Serverless Architecture
From the beginning, I wanted the application to be completely serverless. Since productivity tools often experience unpredictable usage patterns, using managed AWS services allows the application to scale automatically while minimizing operational overhead.
The frontend is built using React, JavaScript, Tailwind CSS, and Axios. Static assets are hosted in Amazon S3 and distributed globally through Amazon CloudFront, providing fast page loads and secure content delivery.
The backend is developed with FastAPI running on Python 3.12. Using Mangum, the FastAPI application is deployed directly as an AWS Lambda function while preserving the familiar ASGI development experience. Amazon API Gateway exposes REST endpoints that connect the frontend to the backend.
AI-Powered Productivity
The heart of TaskPilot AI is Amazon Bedrock powered by the Meta Llama 3 8B Instruct model.
When users submit their tasks, the backend sends structured prompts containing the task list, deadlines, and additional context. The AI analyzes this information and returns structured JSON containing priority levels, estimated completion times, recommended working periods, reasoning, first-action suggestions, and personalized motivation.
Returning structured JSON made it straightforward to render recommendations directly in the React interface while also storing them in DynamoDB for future reference.
Data Storage
Every completed productivity analysis is stored in Amazon DynamoDB together with timestamps and AI-generated insights.
This allows users to revisit previous sessions through the application's History page and compare productivity recommendations over time without maintaining any traditional database servers.
Infrastructure as Code
All AWS resources are provisioned using Terraform.
The infrastructure includes:
- AWS IAM Roles
- AWS Lambda
- Amazon API Gateway
- Amazon DynamoDB
- Amazon S3
- Amazon CloudFront
- Amazon CloudWatch
Using Terraform ensures deployments remain repeatable, version-controlled, and easy to maintain across environments.
AWS Services Used / Architecture Overview
TaskPilot AI is built entirely using managed AWS services.
AWS Service | Purpose |
|---|---|
Amazon Bedrock | AI-powered task prioritization and productivity recommendations |
AWS Lambda | Executes the FastAPI backend without server management |
Amazon API Gateway | Securely exposes REST APIs to the frontend |
Amazon DynamoDB | Stores historical productivity analyses |
Amazon S3 | Hosts the React application |
Amazon CloudFront | Delivers the frontend globally with low latency |
Amazon CloudWatch | Collects logs and monitoring metrics |
AWS IAM | Implements least-privilege permissions |
Terraform | Automates infrastructure provisioning |
Architecture Diagram

Challenges
One of the biggest technical challenges was ensuring the AI consistently returned structured JSON suitable for frontend rendering.
Initially, responses occasionally contained additional explanatory text, making parsing unreliable. Through iterative prompt engineering and response validation, I refined the prompts to consistently request valid JSON output, greatly improving reliability.
Deploying FastAPI to AWS Lambda also required careful consideration. Mangum proved to be an elegant solution, enabling serverless deployment with minimal code changes.
On the frontend, configuring Amazon CloudFront with Origin Access Control (OAC) and implementing cache invalidation during deployments required additional setup but significantly improved both security and performance.
What I Learned
Building TaskPilot AI provided practical experience with several AWS services and cloud-native development patterns.
Some of the most valuable lessons included:
- Building AI-powered applications using Amazon Bedrock
- Deploying FastAPI on AWS Lambda
- Designing REST APIs with Amazon API Gateway
- Using Amazon DynamoDB for scalable NoSQL storage
- Hosting React applications with Amazon S3 and CloudFront
- Managing infrastructure using Terraform
- Applying IAM least-privilege security practices
- Building production-style serverless architectures
Most importantly, I learned how quickly meaningful AI-powered applications can be developed using managed AWS services without managing servers or complex infrastructure.
Screenshots



Project Links
Live Application
GitHub Repository
Future Improvements
TaskPilot AI has a solid foundation, and there are several exciting enhancements planned for future releases:
- Calendar integration
- Email reminders
- Weekly productivity analytics
- Team collaboration
- Voice input
- Progressive Web App (PWA) support
- AI-powered habit tracking
- Multi-language support
These features will continue transforming TaskPilot AI into a more intelligent and personalized productivity platform.
Final Thoughts
Building TaskPilot AI for the AWS Weekend Productivity Challenge was an excellent opportunity to explore how generative AI and serverless cloud technologies can work together to solve a practical, everyday problem.
By combining Amazon Bedrock, AWS Lambda, Amazon API Gateway, Amazon DynamoDB, Amazon S3, Amazon CloudFront, and Terraform, I built a scalable, production-ready application that helps users prioritize their work and make smarter decisions about how they spend their time.
This project reinforced the power of managed AWS services for rapidly developing AI-enabled applications while allowing developers to focus on solving user problems rather than managing infrastructure.
I hope TaskPilot AI inspires other builders to experiment with Amazon Bedrock and create practical AI-powered productivity tools that make everyday work simpler, smarter, and more effective.
Thank you for reading!
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article