
Weekend Agent Challenge: AI Smart Habit Tracker Agent
An AI-powered autonomous habit tracker built with Amazon Bedrock, AWS Lambda, Amazon EventBridge Scheduler, and Amazon SES. Every night, the agent analyzes my daily habits, generates personalized feedback, and emails a progress report automatically
Weekend Agent Challenge: AI Smart Habit Tracker Agent
Introduction
Managing daily habits consistently can be challenging, especially for students balancing academics, certifications, and personal development. I wanted to build an AI-powered assistant that works automatically without requiring any manual interaction. Instead of opening an application every day, my agent runs on its own, analyzes my daily habits, and sends me a personalized report by email.
This project was built using Amazon Bedrock, AWS Lambda, Amazon EventBridge Scheduler, and Amazon SES, all within the AWS Free Tier.
Vision & What the Agent Does
The vision behind this project is to create a personal AI productivity coach that helps me stay disciplined and motivated.
The agent automatically runs every evening using Amazon EventBridge Scheduler. When triggered, AWS Lambda collects my daily habit information and sends it to Amazon Bedrock (Nova Lite). The AI analyzes my completed and missed habits, calculates a consistency score, provides personalized suggestions, recommends goals for the next day, and generates a motivational quote.
Finally, the complete report is delivered directly to my email using Amazon SES.
Unlike traditional applications that require users to manually request a report, this agent works autonomously and prepares the information before I need it.
Example output includes:
- Daily consistency score
- Completed habits
- Missed habits
- Personalized improvement suggestions
- Tomorrow's priorities
- Motivational quote
How I Built It
I started by designing the architecture of the project and selecting serverless AWS services to avoid managing any infrastructure.
First, I created an AWS Lambda function using Python. The function reads habit information from environment variables and creates a prompt for Amazon Bedrock.
Next, I enabled access to Amazon Nova Lite in Amazon Bedrock and integrated it with Lambda using the Bedrock Runtime API.
After generating the AI response, I configured Amazon SES to send the generated report as an email.
Finally, I automated the entire workflow using Amazon EventBridge Scheduler, which triggers the Lambda function every day at the configured time.
During development, I encountered several challenges, including IAM permission errors, Lambda timeout configuration, and SES email verification. These issues helped me understand how AWS Identity and Access Management (IAM), Amazon Bedrock permissions, and Amazon SES verification work together. After configuring the required permissions and verifying the email identity, the project functioned successfully.
AWS Services Used
Amazon EventBridge Scheduler
Triggers the AI agent automatically every day without manual intervention.
AWS Lambda
Runs the Python code that coordinates the entire workflow.
Amazon Bedrock (Nova Lite)
Generates intelligent habit analysis, personalized suggestions, and motivational feedback using generative AI.
Amazon SES
Sends the AI-generated daily habit report directly to my email.
Architecture Overview
Every Day (10:00 PM)
│ ▼
Amazon EventBridge Scheduler
│ ▼
AWS Lambda (Python)
│ ▼
Amazon Bedrock(Nova Lite)
│ ▼
Generate AI Habit Report
│ ▼
Amazon SES
│ ▼
📧 Email Delivered
What I Learned
This challenge gave me hands-on experience building an autonomous AI agent on AWS.
I learned how to integrate Amazon Bedrock with AWS Lambda, schedule serverless workflows using Amazon EventBridge, send emails through Amazon SES, and configure IAM permissions for secure access between services.
More importantly, I learned how AI agents differ from traditional applications. Instead of waiting for user interaction, an AI agent can monitor, analyze, and deliver useful information automatically based on a schedule.
This project also strengthened my understanding of serverless architecture, event-driven applications, and practical generative AI deployment.
Future Improvements
I plan to enhance this project by:
- Storing habit history in Amazon DynamoDB.
- Creating a web dashboard using AWS Amplify.
- Adding Telegram or Slack notifications.
- Tracking weekly and monthly habit streaks.
- Supporting multiple users with personalized reports.
- Github link: https://narasiman333.github.io/Aws-project-/
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article