# What ambient agents do
Ambient agents can run many workflows in parallel. They execute automated reasoning, then pause and ask a human when ambiguity, approval, or clarification is required. That human-in-the-loop pattern reduces risk when agents operate in production and creates a feedback channel for improvement.
# Why the event-driven pattern matters
# AgentCore fits Amazon Bedrock AgentCore provides the runtime and integration points for agent execution. AgentCore Runtime hosts container-based agents with session isolation and support for longer-lived sessions than a single Lambda invocation. That makes it possible to implement the signal -> agent -> human -> resume flow. AgentCore connects to Bedrock foundation models for reasoning and supports framework-agnostic agents you can build into containers.
# Reference architecture at a glance
- Event source: S3 upload, EventBridge schedule, or other signal.
- Queue: Amazon SQS buffers jobs triggered by events.
- Orchestration: AWS Lambda functions handle SQS messages and invoke AgentCore Runtime sessions, capping agent turns to the Lambda 15-minute limit where appropriate.
- State: Amazon DynamoDB stores session and job state so agents can pause and resume across human interactions.
- Human-in-the-loop: A single ask_human tool is used by agents to create a Jobs entry and pause. Humans review jobs via a Jobs page and submit a canonical response envelope back into the system.
# The ask_human tool and canonical response A single, well-defined ask_human tool simplifies integration with human reviewers. Agents use it whenever they need confirmation, clarification, or remediation. Humans respond through a Jobs UI, which writes a standardized response envelope that the agent can parse and use to continue its workflow. This keeps the human interaction predictable and makes it possible to resume agent execution without custom endpoints for each use case.
# Deployment and prerequisites The reference implementation is designed to be serverless and reusable. Requirements called out for deployment include: an AWS account with IAM permissions for the listed services, AWS CLI and CDK v2 configured in us-east-1 (sample defaults), Docker locally to build agent containers, Python 3.11 and Node.js 18 for backend and frontend components, and access to a Bedrock model (the sample uses Anthropic Claude Sonnet 4.5 in Bedrock).
# What the reference gives you and what to customize The sample delivers a working pattern: event ingestion, queueing, Lambda-driven orchestration, AgentCore Runtime sessions, a single ask_human integration, DynamoDB-backed state, and a Jobs UI for review. Teams will adapt the agent logic, the Jobs UI, and additional guardrails such as content filters or grounding checks to their domain and compliance needs.
# Practical benefits Using this pattern reduces manual triage hours for workflows that involve many incoming signals. It enables parallel processing, predictable human review points, and the ability to run agents without requiring a user to craft prompts. The architecture leverages common AWS services so teams can scale without rearchitecting existing event streams.