
Weekend Agent Challenge: Morning Brief AI Agent
AI-powered autonomous agent that generates personalized morning briefings daily at 6:00 AM using AWS services.
Building an Autonomous AI Morning Brief Agent with AWS Serverless & Amazon Bedrock
Introduction
What if you could wake up every morning to a personalized, AI-generated briefing in your inbox — without lifting a finger? No apps to open, no buttons to click, no manual triggers. Just pure automation powered by AI.
In this article, I'll walk you through how I built a fully autonomous Morning Brief AI Agent using AWS serverless services and Amazon Bedrock's Nova Lite model. This agent runs every day at 6:00 AM, generates a personalized morning briefing, saves it to S3, and emails it — all without any human interaction.
This project was built for the AWS Weekend "Always-On Agent Challenge" and demonstrates the power of combining scheduled automation with generative AI.
The Problem
Every morning, most of us spend 15-20 minutes checking emails, news, and planning our day. What if an AI agent could do this for us and deliver a ready-made brief before we even wake up?
The goal: Build an agent that autonomously generates and delivers a personalized morning briefing every single day — zero human interaction required after deployment.
Architecture Overview
┌─────────────────────────────────────────────────────────────────┐
│ Morning Brief AI Agent │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ⏰ EventBridge Scheduler (6:00 AM IST Daily) │
│ │ │
│ ▼ │
│ ⚡ AWS Lambda (Python 3.13) │
│ │ │
│ ├──────► 🤖 Amazon Bedrock (Nova Lite) │
│ │ │ │
│ │ ▼ Generated Brief │
│ │ │
│ ├──────► 📦 Amazon S3 (Archive) │
│ │ │
│ ├──────► 📧 Amazon SES (Email Delivery) │
│ │ │
│ └──────► 📊 CloudWatch (Logging) │
│ │
└─────────────────────────────────────────────────────────────────┘Services Used
Service | Role | Why This Service? |
|---|---|---|
Amazon EventBridge Scheduler | Daily 6 AM trigger | Native cron scheduling with timezone support |
AWS Lambda (Python 3.13) | Workflow orchestration | Serverless, pay-per-invocation, zero maintenance |
Amazon Bedrock (Nova Lite) | AI content generation | Fast, cost-effective, fully managed LLM |
Amazon SES | Email delivery | Reliable, scalable email at $0.10/1000 emails |
Amazon S3 | Brief archival | Durable storage for historical briefs |
Amazon CloudWatch | Monitoring & logging | Automatic Lambda integration |
Why Amazon Bedrock Nova Lite?
I chose Amazon Nova Lite for several reasons:
- Cost-effective — Significantly cheaper than larger models for daily use
- Fast response time — Generates content in 2-3 seconds
- Quality output — Excellent for structured content generation
- Fully managed — No infrastructure to maintain
- Converse API — Simple, unified API for all Bedrock models
At approximately $0.30/month for 30 daily invocations, it's incredibly affordable for a personal AI agent.
Implementation Deep Dive
1. Project Structure
morning-brief-agent/
├── src/
│ ├── lambda_function.py # Main handler - orchestrates workflow
│ ├── bedrock_client.py # Bedrock Nova Lite integration
│ ├── ses_client.py # Email delivery service
│ ├── s3_client.py # S3 storage service
│ └── config.py # Environment configuration
├── infra/
│ ├── trust-policy.json # Lambda execution role
│ └── iam-policy.json # Least-privilege permissions
├── setup.ps1 # Automated file creation script
└── README.md2. The Lambda Handler (Orchestrator)
The Lambda function acts as the orchestrator, coordinating all services:
import json, logging
from datetime import datetime, timezone, timedelta
from config import USER_NAME
from bedrock_client import generate_morning_brief
from ses_client import send_morning_brief_email
from s3_client import save_brief_to_s3
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def lambda_handler(event, context):
logger.info('Morning Brief Agent - Started')
try:
# Get current date in IST
ist = timezone(timedelta(hours=5, minutes=30))
now = datetime.now(ist)
current_date = now.strftime('%B %d, %Y')
day_name = now.strftime('%A')
# Step 1: Generate brief using Bedrock Nova Lite
brief = generate_morning_brief(current_date, day_name)
# Step 2: Save to S3 for archival
s3_key = save_brief_to_s3(brief, current_date)
# Step 3: Email to user via SES
email_resp = send_morning_brief_email(brief, current_date)
return {'statusCode': 200, 'body': {'message': 'Success'}}
except Exception as e:
logger.error('Error: ' + str(e))
return {'statusCode': 500, 'body': {'error': str(e)}}3. Bedrock Integration (AI Brain)
The Bedrock client uses the Converse API for clean, model-agnostic interaction:
import boto3
from config import BEDROCK_MODEL_ID, BEDROCK_MAX_TOKENS, USER_NAME
def generate_morning_brief(current_date, day_name):
prompt = ('You are a personal AI assistant. Create a morning briefing for '
+ USER_NAME + '. Today is ' + day_name + ', ' + current_date
+ '. Include: 1. Good Morning Greeting 2. Todays Date '
+ '3. Top 3 Priorities 4. Suggested Schedule 7AM-9PM '
+ '5. Productivity Tip 6. Motivational Quote 7. Daily Goals. '
+ 'Make it energizing with emojis.')
client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.converse(
modelId=BEDROCK_MODEL_ID,
messages=[{'role': 'user', 'content': [{'text': prompt}]}],
inferenceConfig={'maxTokens': BEDROCK_MAX_TOKENS, 'temperature': 0.7}
)
result = ''
for block in response['output']['message']['content']:
if 'text' in block:
result += block['text']
return result4. Email Delivery (SES)
import boto3
from config import SENDER_EMAIL, RECIPIENT_EMAIL, USER_NAME
def send_morning_brief_email(brief_content, date_str):
client = boto3.client('ses', region_name='us-east-1')
subject = 'Good Morning ' + USER_NAME + '! Your Daily Brief - ' + date_str
response = client.send_email(
Source=SENDER_EMAIL,
Destination={'ToAddresses': [RECIPIENT_EMAIL]},
Message={
'Subject': {'Data': subject, 'Charset': 'UTF-8'},
'Body': {'Text': {'Data': brief_content, 'Charset': 'UTF-8'}}
}
)
return response5. S3 Archival
Every brief is saved to S3 with a timestamp, creating a searchable history:
import boto3
from datetime import datetime
from config import S3_BUCKET_NAME, S3_PREFIX
def save_brief_to_s3(brief_content, date_str):
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
key = S3_PREFIX + timestamp + '_morning_brief.md'
client = boto3.client('s3', region_name='us-east-1')
client.put_object(
Bucket=S3_BUCKET_NAME,
Key=key,
Body=brief_content.encode('utf-8'),
ContentType='text/markdown'
)
return key
EventBridge Scheduler Configuration
The schedule uses a cron expression with timezone support:
aws scheduler create-schedule \
--name MorningBriefSchedule \
--schedule-expression "cron(0 6 * * ? *)" \
--schedule-expression-timezone "Asia/Calcutta" \
--flexible-time-window '{"Mode": "OFF"}' \
--target '{
"Arn": "arn:aws:lambda:us-east-1:ACCOUNT_ID:function:morning-brief-agent",
"RoleArn": "arn:aws:iam::ACCOUNT_ID:role/EventBridgeSchedulerRole"
}'Key points:
-
cron(0 6 * * ? *)— Runs at 6:00 AM every day
-
schedule-expression-timezone— Supports IANA timezone (Asia/Calcutta)
-
flexible-time-window OFF— Exact timing, no delay window
IAM Security — Least Privilege
The Lambda role follows AWS best practices with minimal permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["bedrock:InvokeModel", "bedrock:Converse"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": ["ses:SendEmail", "ses:SendRawEmail"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": ["s3:PutObject", "s3:GetObject"],
"Resource": "arn:aws:s3:::morning-brief-agent-ACCOUNT_ID/*"
},
{
"Effect": "Allow",
"Action": ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents"],
"Resource": "*"
}
]
}
Deployment — Complete CMD Commands
The entire project can be deployed from the command line:
# 1. Create project structure
mkdir morning-brief-agent && cd morning-brief-agent
mkdir src infra
# 2. Create source files
powershell -ExecutionPolicy Bypass -File setup.ps1
# 3. Create S3 bucket
aws s3 mb s3://morning-brief-agent-ACCOUNT_ID --region us-east-1
# 4. Create IAM role & policy
aws iam create-role --role-name MorningBriefAgentRole \
--assume-role-policy-document file://infra/trust-policy.json
aws iam put-role-policy --role-name MorningBriefAgentRole \
--policy-name MorningBriefPolicy \
--policy-document file://infra/iam-policy.json
# 5. Package & deploy Lambda
powershell -Command "Compress-Archive -Path src\* -DestinationPath lambda_package.zip -Force"
aws lambda create-function --function-name morning-brief-agent \
--runtime python3.13 --handler lambda_function.lambda_handler \
--role arn:aws:iam::ACCOUNT_ID:role/MorningBriefAgentRole \
--zip-file fileb://lambda_package.zip --timeout 60 --memory-size 256
# 6. Verify email & create schedule
aws ses verify-email-identity --email-address your@email.com --region us-east-1
aws scheduler create-schedule --name MorningBriefSchedule ...
# 7. Test
aws lambda invoke --function-name morning-brief-agent --payload "{}" output.json
Results & Output
Successful Execution:
{
"statusCode": 200,
"body": {
"message": "Success",
"s3_key": "briefs/2026-07-17_06-48-54_morning_brief.md",
"email_id": "0100019f6ed5d4de-ff09f387-d2cc-4040-91ab-e96ecf7786ab-000000"
}
}Sample Morning Brief (Email):
☀️ Good Morning SENTHIL!
📅 Thursday, July 17, 2026
🎯 Top 3 Priorities:
1. Complete the high-priority project deliverable
2. Review and respond to pending communications
3. Dedicate focused time to skill development
📋 Suggested Schedule:
07:00 - Morning routine & exercise
08:00 - Deep work session
10:00 - Team sync & emails
12:00 - Lunch break
13:00 - Afternoon focus block
15:00 - Meetings & collaboration
17:00 - Wrap-up & planning
19:00 - Personal time
💡 Productivity Tip:
Use the "2-Minute Rule" — if a task takes less than 2 minutes, do it now!
💬 Quote of the Day:
"The secret of getting ahead is getting started." — Mark Twain
✅ Daily Goals:
1. Complete one major task before noon
2. Take a 15-minute walk
3. Learn something new
4. Help one colleague
5. Plan tomorrow before leaving
Have an amazing day! 🚀
Cost Analysis
Service | Monthly Usage | Cost |
|---|---|---|
Lambda | 30 invocations × 10s × 256MB | $0.01 |
Bedrock Nova Lite | ~30K input + ~60K output tokens | $0.30 |
SES | 30 emails | $0.003 |
S3 | 30 files (~5KB each) | $0.001 |
EventBridge | 30 invocations | Free |
CloudWatch | Basic logging | Free tier |
Total | | ~$0.33/month |
That's less than ₹28/month for a personal AI agent running 24/7!
Lessons Learned
- Bedrock Converse API is powerful — Model-agnostic, clean interface, easy to switch models
- EventBridge Scheduler > CloudWatch Events — Native timezone support, flexible time windows
- SES sandbox limitations — Remember to verify both sender and recipient emails (or request production access)
- Lambda cold starts are minimal — Python 3.13 with boto3 starts in <1 second
- S3 archival is cheap insurance — Store everything, query later with Athena if needed
Future Enhancements
- 🌤️ Weather API integration — Add real weather data for the user's location
- 📰 News headlines — Integrate with a news API for top stories
- 📊 Calendar integration — Pull today's meetings from Google Calendar
- 🎨 HTML email template — Beautiful formatted emails with CSS
- 📱 SNS notifications — Push notifications to mobile
- 🧠 Memory/personalization — Learn user preferences over time using DynamoDB
- 📈 Weekly summary — Generate a weekly productivity report every Sunday
Conclusion
Building an autonomous AI agent on AWS is surprisingly simple and incredibly cost-effective. With just 6 AWS services and ~100 lines of Python, we created an agent that:
- ✅ Runs autonomously every day
- ✅ Generates intelligent, personalized content
- ✅ Delivers via email without any manual trigger
- ✅ Archives everything for future reference
- ✅ Costs less than a cup of coffee per month
The future of AI isn't just chatbots waiting for input — it's proactive agents that work for you, on schedule, autonomously. This Morning Brief Agent is just the beginning.
Live Demo : https://github.com/senthil1306-sm/morning-brief-agent.git  ;
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article