AWS Builder Center
Weekend Agent Challenge: Bike News Content Agent

Weekend Agent Challenge: Bike News Content Agent

My Project submission for the weekend challenge

🏍️ Vision & What the Agent Does

TheΒ Bike News Content AgentΒ is an autonomous AI-powered system that automatically generates and delivers comprehensive daily motorcycle news briefings via email β€” with absolutely zero manual intervention.

The Problem It Solves

As a motorcycle enthusiast, keeping up with the latest bike launches, MotoGP results, price changes, and EV innovations across multiple news sources is time-consuming. I wanted a personal news agent that curates and delivers everything I need to know β€” ready in my inbox before I even wake up.

What Triggers It to Run

The agent is triggered automatically every day atΒ 6:00 AM UTCΒ usingΒ Amazon EventBridge SchedulerΒ with a cron expression. No button clicks, no manual actions β€” it just runs on its own, every single day.

What It Does on Its Own

Every morning, the agent autonomously:
  1. Generates motorcycle newsΒ β€” Using Groq AI (LLaMA 3.3 70B), it creates a comprehensive news briefing covering new model launches, racing updates, price changes, EV innovations, and industry trends
  1. Creates a catchy headlineΒ β€” AI generates a bold thumbnail title based on the top story
  1. Generates a cover imageΒ β€” Using Pollinations.ai, it creates a professional, eye-catching motorcycle-themed thumbnail
  1. Stores the imageΒ β€” Uploads the thumbnail to Amazon S3 for reliable delivery
  1. Sends a beautiful email newsletterΒ β€” Formats everything into a dark-themed HTML email and delivers it via Amazon SES
EventBridge Schedule
ο»Ώ

How It Reports Back

The agent delivers aΒ professionally formatted HTML email newsletterΒ directly to my inbox every morning. The email includes:
  • A stunning AI-generated cover image
  • 5-6 curated motorcycle news items with bold headlines
  • A market outlook summary
  • Clean dark-themed design that looks great on any device
Email Response of Agent
ο»Ώ
Testing Agent
ο»Ώ

ο»Ώ

πŸ› οΈ How I Built It

Development Process

I built this agent in a single weekend as part of the AWS Builder Center Weekend Agent Challenge 2026. My approach was:
  1. PlanningΒ β€” Sketched out the architecture: what triggers it, what AI does the thinking, and how it delivers results
  1. Core Logic FirstΒ β€” Got the Groq AI news generation working in Lambda
  1. Image GenerationΒ β€” Added Pollinations.ai for automated thumbnail creation
  1. Email FormattingΒ β€” Built a professional HTML email template with dark theme
  1. AutomationΒ β€” Connected EventBridge to trigger everything daily

Key Decisions

  • Groq AI over other LLMsΒ β€” Chose Groq because it's free, incredibly fast (< 1 second inference), and the LLaMA 3.3 70B model produces excellent journalism-quality content
  • Pollinations.ai for imagesΒ β€” Free, no API key required, and generates decent quality motorcycle-themed thumbnails
  • S3 for image storageΒ β€” Presigned URLs ensure the thumbnail displays reliably in emails without hosting concerns
  • SES for emailΒ β€” Native AWS integration, free tier covers 62,000 emails/month

Challenges Encountered

  1. Lambda missing 'requests' libraryΒ β€” Lambda doesn't include theΒ Β requestsΒ Β module by default. Fixed by adding a Lambda Layer (Klayers)
  1. Image generation qualityΒ β€” Initially tried Hugging Face API but faced connection issues from Lambda. Switched to Pollinations.ai which works reliably without API keys
  1. Email formattingΒ β€” Getting HTML emails to render consistently across email clients required careful inline CSS styling
  1. Timeout issuesΒ β€” Image generation can take time. Increased Lambda timeout to 90 seconds to handle slower responses

How I Overcame Them

Each challenge was solved through research and iteration. The Lambda Layer solution was the biggest learning moment β€” understanding that Lambda has a minimal runtime and external libraries must be explicitly added. For the image generation, I tested three different providers before finding one that worked reliably within Lambda's network constraints.
Architecture
ο»Ώ

ο»Ώ

☁️ AWS Services Used / Architecture Overview

Architecture Diagram

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ EventBridge │────▢│ Lambda │────▢│ Groq AI │────▢│ Pollinations.ai│────▢│ SES Emailβ”‚
β”‚ (Scheduler) β”‚ β”‚ (Python) β”‚ β”‚(LLaMA 3.3)β”‚ β”‚ (Thumbnail) β”‚ β”‚(Newsletter)β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
ο»Ώ

AWS Services Used

Service
Role
Amazon EventBridge
Scheduler β€” triggers the agent daily at 6:00 AM UTC using cron expression
AWS Lambda
Compute β€” Python 3.12 function that orchestrates the entire workflow
Amazon SES
Email delivery β€” sends formatted HTML newsletters
Amazon S3
Storage β€” stores generated thumbnail images with presigned URLs
AWS IAM
Security β€” manages permissions for Lambda to access SES and S3
Amazon CloudWatch
Monitoring β€” logs all execution details for debugging

How the Agent Is Triggered

The agent usesΒ Amazon EventBridge SchedulerΒ with the cron expressionΒ Β cron(0 6 * * ? *)Β Β which fires every day at 6:00 AM UTC. EventBridge invokes the Lambda function with no payload needed β€” the function knows what to do on its own.

External APIs

API
Purpose
Cost
Groq AI (LLaMA 3.3 70B)
News content + headline generation
Free
Pollinations.ai
Thumbnail image generation
Free

ο»Ώ

πŸ“š What I Learned

New Skills Discovered

  • Serverless architecture designΒ β€” How to build a complete autonomous system using only serverless components
  • Lambda LayersΒ β€” How to add external Python libraries to Lambda functions
  • EventBridge cron expressionsΒ β€” Scheduling automation with precise time control
  • HTML email designΒ β€” Building responsive, dark-themed email templates with inline CSS
  • Presigned URLsΒ β€” Securely sharing S3 objects without making buckets public

New Services Explored

  • Amazon EventBridge SchedulerΒ β€” First time using it for automated triggers (much simpler than I expected!)
  • Amazon SESΒ β€” Learned the identity verification process and email formatting
  • Lambda LayersΒ β€” Discovered the Klayers project for pre-built Python library layers

New Approaches Discovered

  • AI-powered content pipelinesΒ β€” Chaining multiple AI calls (content β†’ headline β†’ image) creates a complete content production workflow
  • Event-driven architectureΒ β€” Building systems that react to time/events rather than user actions fundamentally changes how you think about software
  • Free tier stackingΒ β€” Combining AWS Free Tier with free AI APIs creates powerful applications at zero cost

ο»Ώ

πŸ”— Link to App or Repo

The repository includes:
  • βœ… Complete Lambda function source code (Β lambda_function.pyΒ )
  • βœ… Detailed README with step-by-step setup instructions
  • βœ… Architecture diagram
  • βœ… Screenshots of successful execution
  • βœ… Troubleshooting guide

ο»Ώ

πŸ“Š Performance

Metric
Value
Execution Duration
2-10 seconds
Memory Used
~77 MB / 256 MB
Monthly Cost
$0.00
Daily Emails Sent
1 (expandable)
News Items Generated
5-6 per day
Uptime
100% (serverless)

ο»Ώ
Built with ❀️ for the AWS Builder Center Weekend Agent Challenge 2026Β πŸοΈπŸ†
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