AWS Builder Center
Weekend Agent Challenge: Nexus Sentinel

Weekend Agent Challenge: Nexus Sentinel

This autonomous, serverless AI agent scrapes real-time tech news, maps cross-domain trends into a DynamoDB knowledge graph, and synthesizes a strategic executive brief emailed directly to you while you sleep. Built entirely on AWS Free Tier, it runs on a schedule without any manual triggers.

ML Developer
If you work in tech, you know the feeling: you step away for a weekend, and the AI industry moves a lightyear forward. By Monday morning, you’re staring at a mountain of tweets, repos, and Hacker News threads trying to figure out what actually mattered.
I wanted to build something that solved this problem not by making me read faster, but by doing the reading for me while I’m asleep. Enter Nexus Sentinel—an autonomous, always-on strategic intelligence agent.

Vision & What the Agent Does

The problem is simple: information overload meets zero time to synthesize. Reading raw news feeds isn't enough; you need to know how a competitor's product launch connects to a macro trend in semiconductor funding or EU regulation.
Nexus Sentinel is an autonomous agent that wakes up on a schedule (via Amazon EventBridge), scrapes the HuggingNews primary-source feed, and gets to work. Instead of just summarizing text, it extracts entities (competitors, trends, events), maps them into an institutional memory graph in DynamoDB, and synthesizes cross-domain strategic insights.
When it's done, it emails me a concise executive brief. I wake up to an email that says, "Here is the strategic nexus of what happened overnight, and here is what you should do about it." I never have to open a dashboard or click a button.
Here is the actual report the agent autonomously generated and emailed to me via SNS:
STRATEGIC INTELLIGENCE BRIEF TO: Executive Leadership SUBJECT: Cross-Domain Nexus Analysis: AI Infrastructure & Global Scaling***### NEXUS 1: The "Brute Force" Infrastructure WarTHE NEXUS: The intersection of Hyperscale Talent Acquisition (Meta hiring AWS’s Dave Brown), Hardware Demand (TSMC’s revenue beat), and Model Scaling (Moonshot’s 2.8T and Together AI’s 975B parameter models).WHY IT MATTERS: We are seeing a synchronized pivot from "algorithmic efficiency" back to "infrastructure dominance." Meta’s aggressive poaching of AWS compute leadership indicates that the primary bottleneck is no longer the model architecture, but the physical capacity to power and cool trillion-parameter models. The massive parameter counts from Moonshot and Together AI confirm that the industry is betting on scale as the primary path to AGI, which creates a symbiotic dependency on TSMC.RECOMMENDED ACTION: Shift procurement and partnership strategies from "Model-First" to "Compute-First." Secure long-term infrastructure redundancies or prioritize partnerships with providers who have demonstrated vertical integration of power, cooling, and silicon access.### NEXUS 2: The AI Sovereignty & Influence PivotTHE NEXUS: The intersection of Open-Weight Proliferation (Moonshot’s Kimi K3) and Geopolitical Soft Power (Xi’s 5,000 training opportunities for developing nations).WHY IT MATTERS: China is executing a dual-track strategy to bypass Western AI hegemony. By combining "Open Weights" (which lowers the barrier to entry for foreign developers) with "Educational Diplomacy" (training the next generation of AI engineers in the Global South), China is positioning its AI ecosystem as the default operating system for developing nations.RECOMMENDED ACTION: Conduct a vulnerability audit of global operations in developing markets. Evaluate the risk of "Shadow AI" integration and develop a competitive "Open-Access" value proposition.

How You Built It

My development process was a classic iterative sprint, with a few fun roadblocks along the way.
1. The Inference Pivot: I initially started building this using Amazon Bedrock and Nova models. However, I wanted to push the boundaries of speed and test multi-provider architectures. I pivoted to using the Cerebras API, utilizing the  gemma-4-31b  model for everything—from HTML parsing to entity extraction to final strategic synthesis. The speed was incredible, but it taught me a lot about prompt engineering, as I had to force JSON outputs strictly to build my graph.
2. The "No API" Agent Hack: The biggest challenge was data ingestion. I initially tried calling a REST API for HuggingNews, only to discover via CloudWatch logs that it returned a 404—the API wasn't live yet!
Instead of giving up on the data source, I leaned into the "agent" aspect. I had the Lambda function fetch the raw HTML of the HuggingNews homepage, strip out the scripts and styles using Python's  re  module, and pass the raw text to the Gemma model via Cerebras. The LLM successfully parsed the unstructured text and returned structured JSON. It was a great moment showing the adaptability of LLM-powered agents.
3. The Zero-Dependency Lambda: I hit the classic AWS Lambda  ModuleNotFoundError  when trying to use the  requests  library. To save time zipping dependencies or messing with layers, I rewrote the entire networking layer using Python's built-in  urllib . This made the deployment entirely copy-pasteable and dependency-free.
4. The AWS Rite of Passage: Building this completely serverless meant wrestling with IAM. I hit a few  AccessDeniedException  errors when Lambda tried to write to DynamoDB or publish to SNS. It was a quick fix in the IAM console attaching  AmazonDynamoDBFullAccess  and  AmazonSNSFullAccess  to the Lambda execution role. I also ran into a sneaky DynamoDB  ValidationException  because my table keys were lowercase ( pk / sk ) but my code was sending uppercase ( PK / SK ). A quick case fix in the Python code solved it.

AWS Services Used / Architecture Overview


The architecture is entirely serverless, event-driven, and costs practically $0 to run.
  • Amazon EventBridge Scheduler: The alarm clock. Triggers the agent every 4 hours using a cron expression.
  • AWS Lambda: The brain. A Python 3.14 function that handles fetching, parsing, graphing, and delivery. Timeout set to 1 minute to allow for LLM API latency.
  • Cerebras API (gemma-4-31b): The cognitive engine for HTML parsing, entity extraction, and strategic synthesis.
  • Amazon DynamoDB: The institutional memory. Stores stories and maps relationships between Competitors, Events, and Trends using a single-table design.
  • Amazon SNS: The delivery mechanism. Publishes the final strategic brief to an email subscription.
Flow: EventBridge triggers Lambda -> Lambda fetches HuggingNews HTML -> Cerebras parses text to JSON -> Cerebras extracts entities -> Lambda writes to DynamoDB -> Cerebras synthesizes brief -> Lambda publishes to SNS -> Email delivered.

What I Learned

This challenge was a masterclass in serverless resilience. I learned that when an API doesn't exist, an LLM can act as the parser, turning raw HTML into structured data.
I also learned the hard way that AWS Lambda's default 3-second timeout is not enough for agentic workflows. Bumping it to 60 seconds and batching my LLM extraction calls into a single prompt cut my execution time down massively while keeping costs low. Finally, building "institutional memory" via DynamoDB taught me how to make an agent actually remember what it did yesterday, rather than just processing the present in a vacuum.

Link to App or Repo

Proof of Agent working below


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