AWS Builder Center
Weekend Showcase Challenge: Daystart

Weekend Showcase Challenge: Daystart

A serverless agent architecture that turns a static 30-day roadmap into a personalized daily brief

Vision & What the Agent Does

Self-directed learning plans tend to fail at the same point. A roadmap gets written, day one gets completed with real enthusiasm, and by day four nobody is opening the folder anymore. The plan didn't fail; the follow-through did.
Daystart is an autonomous AI learning coach built to close that gap. Given a structured multi-day roadmap (a list of days, each with topics, a focus area, and a difficulty level) and a recipient config (name, goal, timezone, wake time, start date), it runs the entire program on its own: one email per day, generated fresh, delivered on schedule, with no dashboard, login, or app to open. The roadmap used to build and demo this agent happens to be a 30-day "Cloud Security Engineer" track, but that's just the example content. The pipeline itself is roadmap-agnostic: point it at a different roadmap.json (a language track, a certification path, a new-hire onboarding curriculum, a fitness plan) and it runs the same way, because nothing in the Lambda code is specific to any one goal.
Trigger: an EventBridge Scheduler cron rule fires at the configured wake time, in the recipient's own timezone.
What happens on each run:
  1. Load the config and roadmap from S3.
  1. Resolve which day of the program today is.
  1. Pull recent relevant news/headlines for context.
  1. Send the day's topics and that context to Amazon Bedrock and get back a structured daily brief: a study schedule, learning objectives, a recommended reading link, a hands-on challenge, a small project task, a short quiz, a mock interview question, and a motivation note.
  1. Render that into an HTML email and send it via SES.
  1. Save progress only after the email is confirmed sent, so a failed run retries the same day instead of skipping it.
Roadmap.json

How it reports back:
The daily email is the primary output. Each run also writes a step-by-step trail to CloudWatch (which day was resolved, whether the news fetch succeeded, whether Bedrock needed a retry, whether SES accepted the send) for anyone checking what happened on a given morning.





How I Built It

The architecture is a single Lambda function that owns the entire daily workflow end to end, triggered by EventBridge Scheduler and backed by S3 as a lightweight data tier.
Data layer. Three JSON objects in S3 (config, roadmap, and a small progress-state file) make up the entire data tier. Config and roadmap are static per learner; the state file is the only thing the Lambda writes back to, and only ever after a successful send.
Trigger. EventBridge Scheduler, chosen specifically for its native per-schedule IANA timezone support, so the cron expression is written directly against the recipient's timezone instead of a manually computed UTC offset.
Generation. Amazon Bedrock (Nova Lite) generates the structured JSON brief from the day's topics. Reliable structured output took more than a well-specified prompt: the model wraps JSON in markdown fences even when told not to, so the response goes through fence-stripping, a first-brace-to-last-brace fallback, schema validation (exact question and option counts), and one retry at a lower temperature before the run fails loudly instead of shipping malformed content.
Delivery. The rendered HTML is sent through SES. Progress state only commits to S3 after SES confirms the send, so a transient failure between generation and delivery replays the same day on the next run rather than losing it.
Access control. The Lambda's IAM role is scoped to exactly the resources it touches: the specific S3 keys it reads and writes, one Bedrock model ARN, one SES identity ARN. No wildcard actions or resources anywhere in the policy.
CloudWatch logs


AWS Services Used / Architecture Overview

Service
Role
EventBridge Scheduler
Triggers the Lambda at the configured time, in the recipient's timezone
Lambda (Python 3.12)
Runs the full workflow in one invocation: load, resolve, fetch, generate, render, send
S3
Data tier: config, roadmap, and progress state
Bedrock (Nova Lite)
Generates the structured daily brief as JSON
SES
Sends the rendered HTML email
CloudWatch Logs
Step-by-step trail for every invocation
IAM
Least-privilege execution role scoped to exact resources
Architecture Diagram


Takeaways

·     Structured LLM output needs defensive parsing, not just a well-specified schema and prompt instructions.
·     EventBridge Scheduler's per-schedule timezone support removes a whole class of manual offset bugs the moment a trigger needs to respect a real local time.
·     A roadmap-driven, config-driven pipeline generalizes for free. Nothing in the Lambda is tied to any one goal or topic; only the roadmap data is.
·     Ordering side effects correctly (commit state after send, not before) is what makes a pipeline safe to retry, more than explicit retry logic does.
·     Hand-scoping IAM to literal resource ARNs is cheap for a small, well-defined pipeline and keeps the blast radius of a compromised role small.
What I Learned Across the Summer
Building through the summer shifted how I think about AI systems, from tools someone has to open and use, to systems that act on their own. That shift changed what I paid attention to while building Daystart: not just whether a feature worked, but what happens on a run nobody's watching, when the model returns something malformed, or a send fails partway through. The clearest lesson across every build was that the model itself is rarely the hard part. The hard part is everything engineered around it so a bad output never becomes a bad outcome.
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