AWS Builder Center
Weekend Annoying Task Challenge: WeekPulse - AI-Powered Content Performance Digest

Weekend Annoying Task Challenge: WeekPulse - AI-Powered Content Performance Digest

Built a serverless app that kills my annoying Monday morning routine of manually checking content stats across Dev.to and GitHub. WeekPulse runs weekly on Lambda, pulls performance data, analyzes it with Amazon Bedrock Nova, and emails me a digest with patterns and one concrete action item. Deployed with CloudFormation, runs for under 5 seconds, costs nothing on Free Tier.

Cloud Architect
Every Monday morning, I used to do the same thing. Open Dev.to, scroll through my dashboard, check which of my 200+ articles got traction last week. Then hop over to GitHub, see if any repos got new stars or issues. Then sit there trying to remember what worked and what flopped. By the time I had a mental picture of my content performance, 25 minutes had passed and my chai was cold.
I write technical articles as part of my routine. Been doing it for years across Dev.to, Medium, and LinkedIn. The writing part is fine. The "figuring out what resonated" part? That's the annoying weekly chore I never get to consistently. Some weeks I check. Some weeks I forget. I never catch patterns early enough to double down on what works.
So I built WeekPulse. A serverless app that does the entire content performance review for me, automatically, every Monday before I wake up.



What WeekPulse Does

WeekPulse is a Lambda function that runs once a week on a cron schedule.
  1. Pulls my article stats from the Dev.to API (views, reactions, comments for all 86 published articles)
  1. Pulls my GitHub repository activity (stars, forks, issues, recent push events)
  1. Feeds all that raw data into Amazon Bedrock using the Nova Lite model
  1. The model analyzes patterns: what performed well, what's trending, what content type gets the most engagement
  1. Formats the analysis into a clean HTML email with color-coded metrics
  1. Delivers the digest to my inbox via Amazon SES
The whole thing runs in under 5 seconds. I wake up Monday morning with an email that tells me exactly what happened last week and what to write next. No dashboards. No forgetting. No cold chai.



How I Built It

The entire build took about two hours.
Choosing the stack. This runs once per week for about 5 seconds. Paying for a server to sit idle 604,795 seconds out of 604,800 made zero sense. Lambda was the obvious choice. I considered Step Functions for the orchestration but this is a single linear pipeline with no branching logic, so a single Lambda function with sequential calls kept things simple.
I already had my Dev.to API key from previous automation work. The articles endpoint returns everything I needed: views, reactions, comments, publish dates, tags. One gotcha hit me immediately though. Lambda's default HTTP client sends requests without a proper User-Agent header, and Dev.to's bot protection blocks those with a 403. Adding a descriptive User-Agent string fixed it.
GitHub's public API was straightforward. Public repos are accessible without auth, but I added optional token support for higher rate limits. The events endpoint gives recent push, star, and issue activity in one call.
Bedrock prompt engineering took the most iteration. My first prompt just said "analyze these stats" and I got back generic fluff like "your articles are performing well." Useless. What fixed it: including comparison context (this week vs overall averages) and explicitly asking for "one specific action item for next week." The model went from giving me summaries to giving me actual recommendations like "your tutorial content outperformed opinion pieces 3:1 this week, consider another implementation guide."
Email formatting. I wanted the digest to be scannable in 30 seconds. Built a simple HTML template with a gradient header, a quick-numbers section with key metrics in a table, and the AI analysis in a bordered card. Nothing fancy. It needs to be readable on a phone at 7 AM.
Deployment. CloudFormation template handles everything: IAM role with least-privilege permissions, Lambda function, EventBridge cron rule, and the Lambda permission for EventBridge to invoke it. One command deploys the full stack. One command updates the code.
The real debugging lesson: Dev.to returned a 403 "Forbidden Bots" error from Lambda. The culprit was Python urllib's default User-Agent string. Lambda environments send a generic agent string that triggers bot detection on many APIs. One line of code fixed it. I'll remember that for every future Lambda-to-API integration.



AWS Services Used and Architecture Overview

┌─────────────────────┐ ┌────────────────────┐ ┌─────────────────────┐
│ Amazon EventBridge │────>│ AWS Lambda │────>│ Amazon Bedrock │
│ (Weekly Cron) │ │ (Python 3.12) │ │ (Nova Lite) │
└─────────────────────┘ └─────────┬──────────┘ └─────────────────────┘
│
┌───────────┼───────────┐
v v v
┌──────────┐ ┌─────────┐ ┌─────────┐
│ Dev.to │ │ GitHub │ │ Amazon │
│ API │ │ API │ │ SES │
└──────────┘ └─────────┘ └─────────┘
Amazon EventBridge fires a scheduled rule every Monday at 8:00 AM Pacific (15:00 UTC) using the cron expression  cron(0 15 ? * MON *) . This triggers the Lambda function with no human intervention.
AWS Lambda (Python 3.12, 256 MB, 60s timeout) orchestrates the full pipeline. It makes HTTP calls to the Dev.to and GitHub APIs, structures the data, calls Bedrock for analysis, formats the email, and sends it through SES. Total execution time: under 5 seconds.
Amazon Bedrock with Nova Lite receives the raw performance data and returns patterns and recommendations. I chose Nova Lite over Nova Pro because the task is text summarization with pattern recognition, not complex reasoning. Nova Lite handles it well and costs a fraction of a cent per invocation.
Amazon SES delivers the formatted HTML digest email. In sandbox mode, both sender and recipient need to be verified. For personal use, that's fine since I'm sending to myself.
AWS CloudFormation manages the entire infrastructure as code. The template creates the IAM role, Lambda function, EventBridge rule, and the permission binding between them. Deploys in under 2 minutes.
AWS IAM follows least-privilege. The Lambda role can only invoke the specific Bedrock model (Nova Lite), send email from one verified address, and write to CloudWatch Logs. No wildcard permissions.



What I Learned

Bedrock Nova Lite is good enough for structured analysis tasks. I expected to need Nova Pro for anything useful. Wrong. Nova Lite handles "analyze this data and give me patterns" perfectly well when you structure the prompt with clear data and specific output requirements. Save Pro for multi-step reasoning tasks.
Prompt specificity determines output quality. Vague prompts produce vague analysis. When I added "compare this week to overall averages" and "give me exactly one action item," the output quality jumped. The model is as good as the context you give it.
Third-party API bot protection catches Lambda. Dev.to blocks requests without proper User-Agent headers. This is increasingly common across APIs that serve web content. Always set a descriptive User-Agent when calling external APIs from serverless functions. One line. Saves an hour of debugging.
CloudFormation still beats click-ops for small projects. I could have created the Lambda function in the console in 2 minutes. But having the template means I can tear it down, redeploy, or replicate it in another account with one command. For a project I intend to keep running for months, the 10 extra minutes writing the template pays for itself immediately.
SES sandbox is fine for personal tools. I initially thought about requesting production access. But this sends one email per week to one verified address. Sandbox is perfectly adequate. Don't over-engineer access requirements for personal automation.



Execution Proof

CloudWatch logs from the successful run:
Starting WeekPulse digest generation...
Fetching Dev.to stats...
Dev.to: 86 articles, 1 this week
Fetching GitHub stats...
GitHub: 2 total stars, 30 recent events
Analyzing with Bedrock Nova...
Analysis generated: 1081 chars
Formatting email...
Sending digest to simplynadaf@gmail.com...
Email sent. MessageId: 0100019fb6c6e2cf-bd5accc5-9d9b-4dc3-a03e-3338bdc1ef9e-000000
Duration: 4909.59 ms | Billed Duration: 5178 ms | Memory: 99 MB / 256 MB
Data fetch, AI analysis, email formatting, and delivery. Under 5 seconds total.





Cost Breakdown

Running this once per week on AWS Free Tier:
Service
Usage
Monthly Cost
Lambda
4 invocations x 5s x 256MB
$0.00 (free tier: 1M requests)
Bedrock Nova Lite
~800 input + 400 output tokens x 4
Less than $0.01
SES
4 emails/month
$0.00 (free from Lambda)
EventBridge
4 scheduled invocations
$0.00 (free tier)
CloudWatch Logs
Minimal log storage
$0.00 (free tier: 5GB)
Total estimated monthly cost: $0.00 to $0.01



Link to Source Code

The repository includes the full Lambda function source, CloudFormation template, deployment script, and documentation. Clone it, swap in your own Dev.to API key, and deploy with a single command.



What Comes Next

A few improvements on my list:
  1. LinkedIn post performance tracking (their API requires OAuth, so that's a separate integration)
  1. Week-over-week comparison charts embedded in the email as inline SVG
  1. A simple S3-hosted dashboard showing historical trends
  1. Support for multiple content platforms via plugin architecture
But the current version solves my Monday morning problem. It runs, it works, and I get a clear picture of what performed without opening a single dashboard. Fork it, swap in your API key, and stop wasting Monday mornings.
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