AWS Builder Center
Weekend Agent Challenge: MindCheck Companion Agent

Weekend Agent Challenge: MindCheck Companion Agent

Families are usually the first to notice small changes in an older relative: a story repeated twice, a missed appointment, keys turning up in odd places. The natural next step, a conversation with a GP, is easy to postpone because it feels heavy and clinical. MindCheck lowers that first step to five friendly minutes.

MindCheck is a cognitive wellness check-in for older adults. It is deliberately not a diagnostic tool. It screens and refers, and it never tells anyone they have or do not have a condition. A person completes a handful of short, original tasks (orientation, five word delayed recall, sixty second animal fluency, counting backwards, and a few self and family report questions), and a set of fixed rules turns the results into a plain risk band.
The interesting part is what happens next, entirely without a human. When a check-in finishes, the MindCheck Companion Agent wakes up on its own. It reads the fixed risk band that the rules already computed, then asks Claude on Amazon Bedrock to turn that result into a warm, plain-language explanation under a tightly constrained prompt that forbids any diagnosis, treatment advice, or clinical score. The agent writes a printable "bring this to your GP" summary, stores it, and emails the person their results and a link to the summary. A second trigger runs every morning on a schedule and invites anyone who has not checked in for more than a month to come back, which turns a one time test into a gentle monthly habit.
The build split cleanly into a deterministic core and an autonomous agent. The backend is FastAPI running on Lambda, the frontend is a mobile first React app with large type for older users, and the whole stack is defined in Terraform so it deploys with a single script.
The most important decision was keeping the language model out of the decision path. A model never chooses the risk band. Fixed scoring rules produce the band, and the model only narrates the result thaps the product on the right side of the line between awellness screening tool and a regulated medical device, and it keeps the outcome deterministic and testable.
Three challenges stood out, all of them real. First, on a brand new AWS account the Bedrock daily token quota starts at zero and cannot be raised, so the agent was built to degrade gracefully: if Bedrock throttles, it falls back to warm template text so the pipeline never stalls, and real Claude narration switches on automatically once the quota lifts. Second, a public Lambda Function URL was blocked by the new account activation gate, so the API moved to an API Gateway HTTP API. Third, a CORS preflight was returning 405, which the browser rejected, so CORS handling moved into the application so preflight returns 200.
AWS Services Used and Architecture Overview
Services: AWS Lambda (two functions, the API and the agent), Amazon API Gateway (HTTP API), Amazon EventBridge (one event rule and one scheduled rule), Amazon Bedrock (Claude Haiku 4.5 through a cross-region inference profile, called with the Converse API), Amazon DynamoDB, Amazon S3 (both the summaries and the static site), Amazon SES, and IAM.
Browser (React on S3) | REST over HTTPS v API Gateway -> Lambda: API -> DynamoDB (fixed rules, risk band) | PutEvents v EventBridge (event: check-in completed) EventBridge (schedule: daily monthly sweep) | v Lambda: Companion Agent |-- Bedrock (Claude narration + summary) |-- S3 (printable GP summary) |-- SES (results and reminder emails)
The agent is triggered two ways, both through EventBridge: an event when a check-in completes, and a daily cron for the re-check sweep.
I learned how Bedrock gates access on new accounts, that newer Claude models need cross-region inference profile IDs rather than bare model IDs, and that the boto3 Converse API is a clean way to call them with nothing extra to bundle. More broadly, I learned that event-driven serverless is a natural fit for an agent that should run without you, and that designing for graceful failure matters as much as the happy path.
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