AWS Builder Center
Weekend Agent Challenge: 12 Always-On AI Agents Working for You While You Sleep

Weekend Agent Challenge: 12 Always-On AI Agents Working for You While You Sleep

Build 12 autonomous AI agents using Amazon Bedrock, EventBridge, Lambda, DynamoDB and SES that work continuously and deliver results without requiring user interaction.



Introduction

Most AI applications wait for users to ask questions or click buttons.
I wanted to explore a different idea: what if AI worked continuously in the background and delivered useful results before you even opened the app?
AgentHub is an always-on AI platform powered by AWS. Users simply enable an agent, choose a schedule, and Amazon EventBridge wakes it automatically. Each agent gathers data, enriches it with Amazon Bedrock Nova, stores results in DynamoDB, and delivers summaries through Amazon SES, Slack, and an in-dashboard activity log.



The Problem

We're drowning in information we never asked to manage:
  • Information overload — dozens of sources to check every day, none of them in one place
  • Forgetting tasks — reminders and to-dos that quietly slip through the cracks
  • Monitoring news manually — refreshing the same pages hoping something changed
  • GitHub trends — missing interesting projects because you weren't scrolling at the right moment
  • Emails — important messages buried under noise
  • Research — repetitive lookups that eat up time better spent thinking
All of this shares the same root cause: it requires you to remember to go looking. AgentHub flips that around — the agents do the looking, on a schedule, and bring the results to you.



The Solution

AgentHub is a platform of 12 AI agents that share a common execution engine. Instead of building 12 separate one-off scripts, every agent plugs into the same core system:
  • A shared execution engine that handles scheduling, retries, and logging consistently across all agents
  • Scheduled automation via Amazon EventBridge, configurable per user and per agent
  • AI enrichment using Amazon Bedrock, so raw data becomes a readable, useful summary instead of a wall of text
  • Multiple delivery channels — email, Slack, and an in-dashboard activity log — so results reach you wherever you actually look

The dashboard is the control center: enable or disable agents, see recent runs, and review what each agent found — all without needing to dig through logs or code.



Key AI Agents

Rather than walk through all 12 agents in equal (and exhausting) detail, here are four that best show what AgentHub can do. Eight more agents are available covering additional use cases.

Morning Brief :

Runs at 6 AM every morning via Amazon EventBridge. Before you open a single tab, it has already fetched the latest headlines across your chosen topics from Google News RSS, pulled them through Amazon Bedrock Nova, and assembled a personalised brief in your inbox.
The brief isn't a raw list of links. Bedrock synthesises the headlines into a short narrative: an energising opener written for you by name, 3–4 bullet points covering the most important themes, and a "Focus for today" line that ties your current goal to something in the news. If you set a focus goal like "launch my side project by month end", Bedrock will find the connection to that morning's tech news and make it relevant.
The agent runs whether you're awake or asleep. By the time you pick up your phone, the brief is already there.


Watcher:

Monitors any topic, keyword, company name, or search term you care about — checking Google News RSS and Hacker News search results every 2 hours.
The core feature isn't the watching. It's the filtering. Every run, Bedrock evaluates all the candidate items against your stated context ("I'm building an AI product and want to spot competitive moves") and returns a JSON array of which items are actually worth your attention. If nothing passes the filter, no email is sent — silence is the signal that nothing important happened.
When something does get through, Bedrock writes a 1–2 sentence explanation of the pattern or significance before listing the flagged items. You don't get a dump of links — you get a reason why those links matter right now.


GitHub Trending:

Queries the GitHub Search API every day for repositories created in the past 7 days, sorted by stars gained. You can filter by language (TypeScript, Python, Rust, or any), or leave it open to see what's rising across all ecosystems.
The raw API result is a list of repo names and star counts. Bedrock turns it into something useful: a 2-sentence analysis of what the trend pattern actually means. If five of the top repos this week are LLM fine-tuning tools, Bedrock will say that — and name the specific technologies. You don't read repo descriptions. You read what the week's movement means for developers.
Results arrive by email and optionally Slack, formatted with repo name, star count, and a description. The AI insight is always at the top.


Overnight Tidy-Up:

Runs at 11 PM every night. You paste your raw backlog into the agent settings — tasks, notes, ideas, brain dump, anything. Bedrock processes it while you sleep.
What it does: groups related items together under short headings, rewrites them cleanly, picks the 3 most important items and writes a concrete next action for each, flags anything that looks stale, duplicate, or no longer relevant for archiving, and notices patterns or themes across everything.
By morning, your inbox has a structured report instead of the wall of chaos you left behind. The backlog hasn't shrunk — but it's been sorted, prioritised, and made actionable. You open your laptop already knowing what to do first.
The agent doesn't touch your actual data — it works from whatever text you paste into the preferences field, so it's safe to use for anything from project notes to personal to-do lists.

Each agent hands its raw findings to Amazon Bedrock, which turns them into a concise, readable summary rather than a dump of unfiltered data.



Scheduling


Scheduling is handled per agent, per user:
  • Hour selection — choose the hour each agent should run
  • Minute offset — stagger runs to avoid clustering everything at the top of the hour
  • Timezone-aware — schedules respect each user's local timezone, not just UTC
  • Powered by Amazon EventBridge — rules are created and managed per user, so every schedule is independent
This keeps the system predictable: you set it once, and EventBridge takes care of waking the right agent at the right time.



Delivery

Once an agent finishes a run, results are delivered automatically:

  • Email via Amazon SES, formatted for quick scanning

  • Slack, for teams or users who live in Slack during the day
  • In-dashboard activity log, for anyone who prefers to check results on their own time
Users choose which channels they want per agent — no extra steps required once it's configured.



Architecture


EventBridge
↓
Lambda
↓
Fetch APIs
↓
Bedrock
↓
DynamoDB
↓
SES / Slack
↓
Dashboard

An EventBridge rule triggers a Lambda function on schedule. That Lambda fetches raw data from the relevant external APIs, sends it to Bedrock for enrichment and summarization, and stores the result in DynamoDB. From there, the result is pushed out via SES and/or Slack, and also surfaces in the dashboard's activity log.



AWS Services

Amazon EventBridge

Handles all scheduling. Each agent has its own scheduled rule:
  •  cron(0 6 * * ? *)  for the Morning Brief at 6 AM UTC
  •  rate(2 hours)  for the Watcher
  •  cron(0 23 * * ? *)  for the Overnight Tidy-Up
EventBridge just wakes the Lambda; the Lambda queries DynamoDB to find which users have that agent enabled and whether they're due based on their personal preferred run time. This separation keeps scheduling logic out of application code, and adding a new agent means one more rule in  serverless.yml  with no changes anywhere else.



AWS Lambda

The execution unit for every agent run.
Serverless made sense here because agent runs are short, bursty, and infrequent per user—paying for idle compute didn't.
  • Memory: 512 MB for AI agents (Bedrock calls benefit from faster cold starts)
  • Timeout: 120 seconds for agents that make multiple sequential Bedrock calls
Every cron handler is also HTTP-triggerable via a dedicated  POST /agents/{agentId}/run-now  endpoint that bypasses the scheduling check entirely—critical for the dashboard "Run now" button and for development without waiting for a cron window.



Amazon Bedrock

Provides the AI enrichment layer using  amazon.nova-micro-v1:0  via the Converse API.
Nova Micro was the right choice:
  • Fast (under 1 second for short prompts)
  • Available on the free tier for new accounts
  • Strong at summarisation and classification
I use it three ways across agents:
  • Generator: Morning Brief writes your day, Stale Thread drafts follow-ups
  • Analyser: GitHub Trending spots the week's pattern, Weather translates forecasts into planning advice
  • Filter: Watcher decides which of 14 raw items are worth sending before anything reaches your inbox
Using Bedrock Nova via the Converse API also meant I could swap the underlying model without touching any calling code—just change the  BEDROCK_MODEL_ID  environment variable.



Amazon DynamoDB

Stores agent configuration, schedules, and run history.
The design that mattered most was the  agenthub-agent-settings  table:
  • Composite Key:  userId + agentId 
  • Global Secondary Index (GSI):  byAgent  →  agentId + userId 
That GSI is what makes fan-out efficient. When the News Agent cron fires, one DynamoDB query returns every user who has it enabled. Without it, I'd need a full table scan.
I also store up to 20 result items per log entry with a 90-day TTL, which powers the in-dashboard result viewer—you can see what the agent found three days ago without re-running it.
The flexible schema handled 12 agents storing different result shapes with no migrations required.



Amazon SES

Handles outbound email delivery for agent summaries.
I built one shared HTML digest template that every agent uses:
  • Dark-themed
  • Consistent layout
  • Amber-coloured title links that match the dashboard
One important detail: SES starts in sandbox mode and can only send to verified email addresses.
Before the first email will go through, you must verify:
  • The sender ( SES_FROM_EMAIL )
  • Your test recipient
For production use, request SES production access from the account dashboard. It takes about 24 hours and is straightforward, but email delivery will silently fail if you skip it.



Amazon API Gateway

Fronts the dashboard's backend, exposing endpoints for:
  • Managing agents
  • Schedules
  • Viewing history
I also use it for a webhook trigger endpoint:
 POST /webhook/{agentId}?token=xxx 
This lets any external system (GitHub Actions, Zapier, or a shell script) fire an agent on an event rather than waiting for its schedule.
The token is auto-generated per agent on first enable and stored in DynamoDB.
This is what makes AgentHub event-driven in addition to schedule-driven, satisfying the challenge requirement that agents be triggered by events, not just clocks.



Challenges

SES Sandbox

When I first ran the News Agent, emails silently disappeared. SES in sandbox mode only sends to verified identities, and the error only appears in Lambda logs—nothing in the dashboard indicates the email failed.
The fix is straightforward:
  • Go to SES → Verified Identities
  • Verify both your sender address and your recipient address
  • Test again
For production, I submitted a request for SES production access from the account dashboard, which removes the verified-recipient restriction so any email address your users sign up with will receive digests.



Bedrock Model Access

Nova models aren't enabled by default in a new AWS account.
The first Bedrock call I made returned a permission error that looked like an IAM issue but was actually caused by model access not being granted.
The fix:
  • Go to AWS Console → Amazon Bedrock → Model access
  • Request access to Amazon Nova Micro
It takes about 30 seconds, is free, and is easy to miss if you assume IAM permissions are all you need.



Webpack Cache Corruption

During active development, Next.js dev mode would occasionally corrupt its webpack cache pack files—specifically  1.pack.gz —when files changed while the dev server was running.
This would crash the dev server with a "Cannot find module" error.
The fix:
  • Delete the  .next  folder
  • Restart the development server
To prevent it, I added:
config.cache = false;
in the webpack section of  next.config.js  for development mode, which disables the disk cache entirely. It makes cold starts slightly slower but eliminates the corruption completely.



DynamoDB  begins_with() 

I store log IDs as:
{agentId}#{ISO timestamp}
This lets me efficiently query all logs for a specific agent using:
begins_with(logId, 'news#')
in a KeyConditionExpression.
Initially, I tried using it in a FilterExpression, which doesn't use the index and scans the entire partition.
Moving it to the KeyConditionExpression made queries fast and index-backed.
The same pattern also powers the Clear Logs feature: one paginated query with  begins_with()  finds all logs for a given agent, then deletes them in batches of 100.



Lessons Learned

  • EventBridge is simple — once you understand the rule-per-schedule model, it removes a lot of custom scheduling logic you'd otherwise have to write and maintain yourself.
  • Bedrock's Converse API simplified working with the model compared to lower-level invocation patterns.
  • AI filtering matters — raw data is noisy; letting Bedrock filter and prioritize before delivery made results genuinely useful instead of just automated.
  • A shared runner architecture pays off — building one execution engine that all 12 agents plug into avoided duplicated logic and made adding new agents much faster.
  • Serverless Framework made deploying and managing all the Lambda functions and infrastructure-as-code far less painful than doing it manually.



GitHub




Conclusion

AgentHub started from a simple question: what if AI didn't wait for you to ask? Twelve agents, one shared engine, and a handful of AWS services later, that idea works end-to-end — scheduled, enriched, and delivered without anyone needing to click a button.
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