AWS Builder Center
Weekend Agent Challenge: Automated Morning Brief Agent

Weekend Agent Challenge: Automated Morning Brief Agent

A serverless, event-driven morning brief agent built on AWS using Lambda, Bedrock (Nova Lite), S3, and SNS. Waking up on a daily schedule, it fetches local weather and news updates, summarizes them using AI, and delivers a concise briefing directly to your inbox.

Student of BS Software Engineering at UET Lahore

Vision & What the Agent Does

Every morning, starting the day requires catching up on multiple things: looking at the weather forecast to plan what to wear, checking the news headlines to know what is happening in the world, and trying to find some daily motivation or learning tips to set the right mindset. Doing this manually means opening multiple apps, websites, and emails, which wastes time and dilutes focus.
The Automated Morning Brief Agent is a serverless assistant that automates this entire process. Instead of waiting for a manual trigger, it runs automatically every morning at 6 AM using an EventBridge schedule. The agent pulls the latest weather forecast for Chennai and the top ten news headlines from GNews. It then sends this raw data to Amazon Bedrock, which uses the Nova Lite model to synthesize everything into a single, cohesive, and easy-to-read brief.
To ensure the user does not miss it, the agent reports back in two ways:
  1. It uploads the formatted brief to an Amazon S3 bucket as a text file for record-keeping.
  1. It publishes the brief to an Amazon SNS topic, which immediately sends it directly to the user's email inbox.
By the time the user wakes up, the summary is already waiting for them, containing the weather, news, a motivational quote, a productivity tip, and an AWS learning tip.

How You Built It

The development process started by looking at two separate prototypes. The first prototype used Bedrock to generate a simple motivational brief without any real-time data. The second prototype used standard APIs to collect news and weather information but sent it as raw, unformatted text.
To build a professional version, the two approaches were merged into a single script named lamba_pro.py. The main engineering decision was to use the Python standard library, specifically urllib.request, to handle all the external API calls instead of adding heavy external packages like requests. This keeps the Lambda deployment package extremely lightweight and fast.
One challenge during development was formatting the prompt for Bedrock Nova Lite so that it consistently synthesized the news headlines and weather data within a strict 250-word limit. In early runs, the model would either omit the news links or write a long article that was too wordy for a quick morning read. This was solved by structuring the prompt to define exact numbered sections and a hard length constraint.
Another step was setting up build_lambda.sh, a shell script to automate the packaging process. The script was refined to create a clean package directory, install any necessary dependencies, copy the new python script, and zip the deployment package for easy uploading.

AWS Services Used / Architecture Overview

The agent is built entirely on AWS serverless services to keep running costs at zero under the AWS Free Tier.
  • Amazon EventBridge Scheduler: Triggers the Lambda function every day at 6:00 AM on a cron schedule.
  • AWS Lambda: The core compute service that runs lamba_pro.py, fetches API data, interacts with Bedrock, and coordinates the other AWS services.
  • Amazon Bedrock (Nova Lite): Processes the prompt containing the raw weather and news data to draft the final brief.
  • Amazon S3: Stores the generated briefs in a dedicated bucket (morningbriefagent-jyothish-2026) using timestamped filenames.
  • Amazon SNS: Sends the final brief to the user's email address.
The architecture is simple: EventBridge starts the Lambda, which runs the python script to fetch external API data, calls Bedrock for synthesis, and saves the output to S3 and SNS.

What You Learned

Building this agent provided hands-on experience with serverless event scheduling and generative AI integration.
First, using Amazon Bedrock's converse API showed how easy it is to pass raw API outputs directly to a model for summarization, eliminating the need for complex custom text parsing.
Second, the project demonstrated how to write clean, lightweight Python code for AWS Lambda. Avoiding external dependencies when possible makes deployment faster and minimizes runtime security vulnerabilities.
Finally, working with EventBridge Scheduler showed the power of event-driven design, allowing developers to run background tasks reliably without maintaining active servers.

Link to App or Repo

The full source code, scripts, and setup details are available in this public repository:  https://github.com/real-akhyar/AWS-Challenge 
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