AWS Builder Center

Weekend Agent Challenge: AWS Learning Coach Agent

An AI-powered personal learning agent that runs autonomously every morning at 6:00 AM, curates the latest AWS news and blog content, rotates through 12 AWS certification study tips, and uses Amazon Bedrock (Nova Lite) to generate a comprehensive daily learning report delivered straight to your inbox via Amazon SES. Built with a single-file Python architecture, deployed on AWS Lambda, and triggered by EventBridge Scheduler -- fully unattended, zero human interaction required at runtime.

Weekend Agent Challenge: AWS Learning Coach Agent

Tag: agents



Vision & What the Agent Does

As someone actively studying for AWS certifications while keeping up with the rapidly evolving AWS ecosystem, I found myself spending 30 to 45 minutes each morning just gathering learning materials -- checking the AWS What's New page, browsing the AWS blog, reviewing certification study guides, and trying to piece together a coherent study plan. That daily overhead was unsustainable, and I knew it was exactly the kind of repetitive, structured task that an AI agent could handle.
The AWS Learning Coach Agent is a fully autonomous, AI-powered personal learning assistant that runs every morning at 6:00 AM IST without any human intervention. It curates the latest AWS news, blog content, and certification study material, then uses Amazon Bedrock to synthesize everything into a single comprehensive learning report delivered straight to my inbox.
Here is what happens each time the agent runs:
  1. Fetches live AWS updates -- The agent pulls the latest entries from the official AWS "What's New" RSS feed, capturing service launches, feature updates, and announcements as they happen.
  1. Pulls Builder Center articles -- It fetches recent articles from the AWS Blog feed, surfacing deep-dive posts, best practices, and architectural guidance.
  1. Selects a daily certification tip -- The agent deterministically rotates through 12 AWS certifications (from Cloud Practitioner to Machine Learning Engineer) based on the day of the year. Each day covers a different exam with a targeted study tip and focus area. No randomness, no external API calls -- just a clean rotation that guarantees full coverage every 12 days.
  1. Generates an AI-curated report -- All the collected data is sent to Amazon Bedrock (Nova Lite model) via the Converse API with a carefully engineered prompt. The model produces a structured Markdown report containing seven sections: an Executive Summary, Top 3 AWS Updates, Top Builder Center Article, Certification Tip of the Day, a Hands-On Lab Recommendation, a Quiz Question with four options and an explained answer, and a 30-Minute Learning Plan.
  1. Emails the report -- The finished report is converted to both HTML and plain text, then sent via Amazon SES. I wake up to a polished, actionable learning brief in my Gmail every single morning.
The agent is triggered by Amazon EventBridge Scheduler on a daily cron schedule. No buttons to click, no dashboards to check. It runs, it learns what is new in AWS, it thinks about what matters most, and it tells me.

How You Built It

I built the entire agent in a single Python file using a fully object-oriented architecture. The design philosophy was minimal but production-grade -- no unnecessary abstractions, but clear separation of concerns and a custom exception hierarchy that makes failures easy to diagnose.
Architecture decisions:
The biggest design decision was the error-handling strategy. Not all failures are equal. If the AWS News RSS feed is temporarily down, the agent should still generate a report using whatever data it has -- an incomplete report is better than no report. But if Bedrock fails to generate the report or SES fails to send the email, that is a hard failure that should propagate up to Lambda so CloudWatch can alert me.
This led to a two-tier approach: feed fetchers catch their specific exceptions, log a warning, and return empty lists. The report generator and email sender let their exceptions propagate, causing the Lambda invocation to fail and register in CloudWatch metrics.
The dual-region challenge:
The most significant technical challenge was discovering that Amazon Nova Lite is not available in ap-south-1 (Mumbai), which is my primary AWS region. After researching the Bedrock regional availability documentation, I implemented a dual-region architecture: SES runs in ap-south-1 where my email identity is verified, while Bedrock API calls go to us-east-1 where Nova Lite is available. The Config dataclass supports a separate  BEDROCK_REGION  environment variable, and the orchestrator creates independent boto3 sessions for each service.
Class structure:
  •  Config  -- A dataclass with a  from_env()  classmethod that validates all required environment variables upfront, failing fast with a clear  ConfigError  if anything is missing.
  •  NewsFetcher  and  BuilderArticleFetcher  -- Each handles its own HTTP requests and RSS parsing via  feedparser , raising typed exceptions ( NewsFetchError ,  ArticleFetchError ) on failure.
  •  CertificationProvider  -- Uses day-of-year modulo arithmetic to rotate through 12 certifications deterministically. No database, no external calls, no randomness.
  •  ReportGenerator  -- Constructs a detailed prompt with all the fetched data and calls the Bedrock Converse API. Validates the response structure and raises  ReportGenerationError  if anything is off.
  •  EmailSender  -- Wraps SES  send_email  with both HTML and plain-text bodies. Includes a lightweight Markdown-to-HTML converter that handles headers, lists, bold text, and links without any external templating library.
  •  LearningCoachAgent  -- The orchestrator that wires everything together and implements the graceful-degradation error strategy.
Testing locally:
I added a  --dry-run  mode that tests every component with live RSS data but mocks the AWS API calls. This let me validate the full pipeline -- feed fetching, prompt construction, HTML rendering -- before deploying to Lambda or configuring any AWS credentials.

AWS Services Used / Architecture Overview

The agent uses six AWS services:
Service
Role
Region
Amazon Bedrock (Nova Lite)
AI report generation via Converse API
us-east-1
AWS Lambda
Serverless execution (Python 3.12, 256 MB, 90s timeout)
ap-south-1
Amazon EventBridge Scheduler
Daily cron trigger at 6:00 AM IST
ap-south-1
Amazon SES
Email delivery (HTML + plain text)
ap-south-1
IAM
Least-privilege roles for Bedrock and SES access
Global
CloudWatch Logs
Automatic Lambda logging for debugging
ap-south-1

Architecture Flow

[EventBridge Scheduler] -- cron(0 6 * * ? *) Asia/Kolkata
|
v
[AWS Lambda Function] -- Python 3.12, 256 MB
|
├── GET aws.amazon.com/whats-new/feed (RSS)
├── GET aws.amazon.com/blogs/aws/feed (RSS)
├── CertificationProvider.tip_for_today()
|
v
[Amazon Bedrock] -- Nova Lite, us-east-1
| converse API with structured prompt
v
[Markdown Report Generated]
|
v
[Amazon SES] -- ap-south-1
| send_email (HTML + plain text)
v
[Gmail Inbox] -- report delivered at 6 AM IST
IAM Policy (least-privilege):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
"Resource": "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-lite-v1:0"
},
{
"Effect": "Allow",
"Action": ["ses:SendEmail", "ses:SendRawEmail"],
"Resource": "*"
}
]
}
All services used fall within the AWS Free Tier. Lambda provides 1 million free requests per month, EventBridge Scheduler offers 14 million free invocations, SES allows 3,000 free messages in the first 12 months, and Bedrock Nova Lite pricing is minimal for a single daily call.

What You Learned

Bedrock regional availability matters. I assumed Amazon Bedrock models were available in all commercial regions. They are not. Nova Lite is absent from ap-south-1, and there is no cross-region inference profile that covers the Asia Pacific (Mumbai) region for Nova models. This taught me to always check the model availability documentation before committing to a region. The dual-region pattern I developed -- separate boto3 sessions for different services -- is something I will carry into future projects.
Error handling should match the failure's impact. Early on, I wrapped everything in the same try/except pattern. But that meant a temporary RSS feed timeout would prevent the entire report from sending. Rethinking this led to the two-tier strategy: graceful degradation for non-critical data sources, hard failure for core operations. This is a pattern that applies far beyond this project.
SES sandbox is enough for personal agents. I initially thought I would need to request production SES access. For a personal agent sending to my own verified email, sandbox mode works perfectly and avoids the approval process entirely.
The Converse API is clean. I had previously used the  invoke_model  API with model-specific request bodies. The Converse API provides a unified interface across models, making it trivial to swap Nova Lite for another model without changing the calling code. The response structure is consistent and predictable.
Single-file architecture has its place. For a focused agent like this, splitting code across multiple modules would have added complexity without benefit. A single  main.py  with clear class boundaries is easier to deploy (just zip and upload), easier to review, and easier to debug in CloudWatch Logs.
Prompt engineering is the real product. The difference between a useful daily report and a generic summary came down to the prompt. Specifying the exact sections, their order, the tone, and the format constraints -- including requiring a quiz question with a marked answer -- made the output consistently valuable. The agent's prompt is its most important asset.

Link to App or Repo

The repository contains the complete source code, deployment instructions, and configuration reference. The agent is deployed and running on my AWS account, delivering a personalized learning report to my inbox every morning at 6:00 AM IST.


Built with Amazon Bedrock (Nova Lite), AWS Lambda, Amazon EventBridge Scheduler, Amazon SES, and a genuine desire to learn something new about AWS every single day.
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