Amazon iconAmazonOct 1, 2026 ~7 min source read

Building ambient agents with Amazon Bedrock AgentCore: event-driven automation with human-in-the-loop review

A walkthrough of creating ambient agents that react to events (S3 uploads, schedules, alerts) using Amazon Bedrock AgentCore, Amazon SQS, AWS Lambda, and DynamoDB, with a single ask_human tool and a Jobs page for human review.

Building ambient agents with Amazon Bedrock AgentCore: From event-driven signals to human-in-the-loop workflows

Share this story

Send the public story page.

Useful takeaways from this story.

Ambient agents react to event streams (S3, EventBridge, schedules) instead of waiting for chat prompts, enabling parallel, automated handling of many signals.

A single ask_human tool plus a canonical response envelope supports human-in-the-loop workflows, letting agents pause, request clarification or approval, and resume.

The reference implementation is serverless: SQS for queuing, Lambda for event processing, DynamoDB for state, and optional frontend Jobs page for review and interaction.

# 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.

More context around this story.

Migrate agentic workloads to Amazon Bedrock AgentCore
Amazon iconAmazonSep 3, 2026

Migrate agentic workloads to Amazon Bedrock AgentCore

An agent that works in a notebook is not an agent in production. This post walks through migrating a LangGraph customer support agent to Amazon Bedrock AgentCore in two stages: onto Runtime, Gateway, and Memory, then to model-driven planning on Strands Agents, retiring operational burdens along the way.

Amazon helps water conservation along Colorado River
Kyma iconKymaSep 23, 2026

Amazon helps water conservation along Colorado River

As the Southwest's cherished Colorado River faces a growing crisis, Amazon announced Monday it is forming an alliance of corporations to bankroll fixes to canals, pipelines, and farms in the Colorado River Basin. The post Amazon helps water conservation along Colorado River appeared first on KYMA .

Loading more related stories...

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app