
Weekend Agent Challenge: MorningChefAgent
An always-on agent that wakes up each morning, searches the web for recipes matching your ingredients, and sends a breakfast suggestion to Slack via Amazon Bedrock AgentCore.
Vision & What the Agent Does
Every morning, the same small decision repeats itself: what should I cook for breakfast with what's already in the fridge? MorningChefAgent removes that decision entirely. It is a schedule-driven agent that wakes up on its own every day at a fixed time (currently 07:00 UTC), checks what ingredients are on hand, searches the web for the latest popular recipes that use them, and posts a ready-to-cook suggestion straight to Slack.
There is no button to click and no app to open. The trigger is purely time-based: an Amazon EventBridge Scheduler rule fires daily, and everything downstream runs unattended. The problem it solves is small but real — reducing the daily "what's for breakfast" friction by having an agent do the thinking while I sleep, and grounding its suggestions in actual current recipes from the web rather than a static, aging idea.
How You Built It
I kept the design as simple as possible on purpose: one Lambda function, one DynamoDB table, one AgentCore Runtime, and no moving parts beyond what the flow actually needs. There's no orchestration framework, no queue, no extra microservice — just a scheduler, a function, and an agent, wired together directly.
The first design decision was the search backend. I initially considered a third-party search API, but instead went with Amazon Bedrock AgentCore Gateway's Web Search Tool — a fully managed, MCP-compliant web search connector operated entirely by AWS, with no third-party API key to manage and no result parsing to maintain. It's currently
us-east-1 -only, so I deployed everything there and parameterized the region so nothing is hardcoded to a single account or location.Connecting to the Gateway turned out to be the trickiest part. The Gateway requires IAM (SigV4) authentication over an MCP streamable-HTTP connection, which isn't something a typical MCP client handles out of the box. Rather than hand-rolling request signing, I found AWS's own
mcp-proxy-for-aws library, which wraps the MCP transport with automatic SigV4 signing using the standard boto3 credential chain — including the temporary credentials an AgentCore Runtime execution role provides. That one dependency turned a multi-hour signing problem into a five-line client factory.The second surprise came from model selection. My first attempt used Amazon Nova Lite, but it consistently threw
modelStreamErrorException: Model produced invalid sequence as part of ToolUse the moment it tried to call the Web Search tool — and the same error reproduced on Nova Pro even after applying AWS's own recommended fixes (greedy decoding, a larger max token count). Swapping the model to Claude Haiku 4.5 fixed it immediately — it called the search tool multiple times, refined its query, and produced a cited, multi-recipe suggestion in one pass.The schedule time itself is also parameterized (cron expression and timezone), rather than hardcoded, so anyone deploying this can pick their own wake-up time without touching code.
AWS Services Used / Architecture Overview
- Amazon EventBridge Scheduler — cron trigger, the "always-on" heartbeat. The cron expression and timezone are both CDK parameters (
SCHEDULE_CRON,SCHEDULE_TIMEZONE), defined in UTC by default; the deployed instance runs at 07:00 UTC (16:00 JST)
- AWS Lambda — orchestrates: reads ingredients, invokes the agent, posts to Slack
- Amazon DynamoDB — stores the latest ingredient list (decoupling point for a future receipt-photo input pipeline)
- Amazon Bedrock AgentCore Runtime — hosts the Strands Agent (
recipe_agent)
- Amazon Bedrock AgentCore Gateway (Web Search Tool connector) — grounds recipe suggestions in real, current web results
- Amazon Bedrock (Claude Haiku 4.5) — the reasoning/tool-use model
- AWS Systems Manager Parameter Store — Slack webhook URL, fetched at runtime, never in code
- AWS CDK (Python) — infrastructure as code for the Lambda/DynamoDB/Scheduler stack
Processing Flow

Example Slack Notification
Here's what an actual morning message looks like once it lands in Slack

*bold* renders as bold text and <url|text> renders as a clickable link **bold** , [text](url) ,
--- separators) took a few rounds of prompt tightening — see below.What I Learned
- How to stand up an Amazon Bedrock AgentCore Gateway with the Web Search Tool connector, end to end
- That IAM-authenticated MCP connections don't have to mean hand-written SigV4 signing —
mcp-proxy-for-awsexists for exactly this
- That tool-use reliability varies meaningfully by model, even within the same provider's lineup
- That designing the ingestion side and the output side around a shared DynamoDB table keeps a small weekend project honestly extensible, instead of a one-off script
- That Slack's Incoming Webhook renders
mrkdwn, not Markdown — an LLM that isn't told this will happily emit**bold**and[text](url), which show up as literal asterisks and brackets in Slack. Being explicit about the exact syntax (*bold*,<url|text>) and banning specific Markdown patterns (headings, horizontal rules, bare links) in the system prompt fixed it
- This formatting compliance is verified by observation, not automated tests — the Lambda posts whatever text the model returns as-is, with no sanitization or format validation in
slack_notifier.py. Since LLM output has inherent randomness, occasional Markdown drift is possible even with a tight prompt; I kepttemperature=0.3as a middle ground between prompt-following consistency and recipe variety, rather thantemperature=0, which would make suggestions repetitive day to day
Link to App or Repo
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article