
Weekend Agent Challenge: Daily DSA Challenge Agent
Tags:
#agents Building an Always-On Learning Companion with AWS
One of the biggest challenges when learning Data Structures and Algorithms is consistency. We often start with enthusiasm, but over time it becomes difficult to maintain the habit of solving one problem every day. I wanted to solve this problem in a simple way—not by creating another app that I had to remember to open, but by creating an agent that reminds me automatically.
That idea became the Daily DSA Challenge Agent.
Instead of waiting for me to visit a website or open an application, this agent works completely on its own. Every morning at 6:00 AM, it automatically wakes up, selects a random DSA challenge, and delivers it directly to my inbox. By the time I begin my day, my coding challenge is already waiting for me.
This project perfectly matched the spirit of the AWS Weekend Agent Challenge because the agent performs its task independently without any manual interaction.
Vision & What the Agent Does
The goal of this project is simple:
Build an always-on learning companion that encourages daily coding practice.
The workflow is completely automated.
Every morning at 6:00 AM, Amazon EventBridge Scheduler triggers an AWS Lambda function. Lambda then selects a random DSA problem from a predefined collection, formats it into an email, and sends it using Gmail SMTP.
The email contains the problem title, difficulty level, topic, and a direct link to solve the challenge online, making it easy to jump straight into practice.
The entire process runs in the cloud without requiring me to click a button or even open a browser.
Instead of remembering to study every day, the study challenge comes directly to me.
This small automation demonstrates how cloud services can transform repetitive tasks into fully automated workflows.
How I Built It
I wanted to keep the architecture simple while still demonstrating the power of AWS automation.
The first component I built was an AWS Lambda function written in Python. Since this was my first hands-on experience building a serverless application, learning how Lambda executes code on demand and integrates with other AWS services was both exciting and educational.
Inside the Lambda function, I created a collection of DSA questions. Every invocation randomly selects one challenge and formats a clean, readable email before sending it.
To send emails, I integrated Gmail SMTP. Instead of hardcoding sensitive credentials, I stored the sender email, recipient email, and Gmail App Password securely using Lambda Environment Variables, following cloud security best practices.
Finally, I configured Amazon EventBridge Scheduler to invoke the Lambda function automatically every day at 6:00 AM.
Once everything was connected, the system became a fully autonomous learning companion.
Challenges I Faced
Like every cloud project, this one came with several learning moments.
Initially, I encountered authentication issues while connecting Gmail SMTP because Gmail requires an App Password instead of a normal account password. After enabling two-factor authentication and generating an App Password, the connection worked successfully.
I also faced Lambda timeout issues during testing, which helped me understand execution limits and how timeout settings affect serverless applications.
Another challenge involved configuring Lambda Environment Variables correctly. A simple typo caused the application to fail, but debugging the issue taught me the importance of proper configuration management and reading CloudWatch logs carefully.
Although these issues took time to resolve, each one improved my understanding of AWS.
AWS Services Used / Architecture Overview
This project intentionally uses a lightweight serverless architecture.
AWS Services
- AWS Lambda
- Amazon EventBridge Scheduler
Other Technologies
- Python
- Gmail SMTP
Architecture
Amazon EventBridge Scheduler │ ▼ AWS Lambda │ ▼ Random DSA Challenge Generator │ ▼ Gmail SMTP │ ▼ My Inbox
The scheduler automatically invokes Lambda every morning.
Lambda performs the business logic, selects a random challenge, formats the email, and immediately sends it to my inbox.
Project Repository
The complete source code for this project is available on GitHub:
The repository includes:
- AWS Lambda source code
- Sample DSA question dataset
- Deployment instructions
- Required environment variables
- Project documentation
Anyone interested in building a similar automation can use it as a reference.
Screenshots



What I Learned
This project introduced me to several AWS concepts that were completely new to me.
I learned how to build serverless applications using AWS Lambda, automate recurring tasks using EventBridge Scheduler, securely manage credentials with Environment Variables, and integrate AWS with external services like Gmail SMTP.
More importantly, I realized that automation doesn't need to be complex. Even a small workflow like sending a daily coding challenge can become a practical assistant that improves productivity and encourages consistent learning.
The project also strengthened my debugging skills because I had to troubleshoot SMTP authentication issues, Lambda configuration errors, execution timeouts, and environment variable mistakes.
Every challenge became an opportunity to learn something new.
Looking Ahead
This is only the first version of the Daily DSA Challenge Agent.
In future versions, I plan to expand it by integrating generative AI to provide personalized hints, solution explanations, recommended learning resources, and adaptive difficulty based on previous progress.
I would also like to store user progress in a database, build a dashboard to track solved problems, and support multiple delivery channels such as Slack, Discord, or Amazon SNS.
The possibilities become even more exciting when automation and AI work together.
Final Thoughts
Participating in the AWS Weekend Agent Challenge has been an excellent learning experience. As someone who is still exploring cloud technologies, building this project gave me practical experience with AWS serverless services and showed me how a simple idea can become a useful automation.
What started as a way to improve my own coding consistency evolved into a fully automated cloud solution that works independently every morning.
I'm excited to continue building with AWS, explore more serverless architectures, and create intelligent automations that solve everyday problems.
Thank you to the AWS Builder Community for organizing this challenge and encouraging builders to learn by creating.
#agents
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article