# Build autonomous AI agents with Amazon Bedrock and Spring AI

DevFeed: [Build autonomous AI agents with Amazon Bedrock and Spring AI](<https://devfeed.tech/articles/build-autonomous-ai-agents-with-amazon-bedrock-and-spring-ai-129758.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/build-autonomous-ai-agents-with-amazon-bedrock-and-spring-ai/>)

Author: Viquar Khan

Published: 2026-11-12T01:18:23Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [Spring AI](<https://devfeed.tech/topics/spring-ai.md>), [Amazon Bedrock](<https://devfeed.tech/topics/amazon-bedrock.md>), [Agentic AI](<https://devfeed.tech/topics/what-is-agentic-ai.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [agent orchestration](<https://devfeed.tech/topics/agent-orchestration.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [Amazon Cognito](<https://devfeed.tech/topics/amazon-cognito.md>)

Tags: [agent-orchestration](<https://devfeed.tech/tags/agent-orchestration.md>), [agentcore](<https://devfeed.tech/tags/agentcore.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-agentcore](<https://devfeed.tech/tags/amazon-bedrock-agentcore.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [autonomous-ai-agents](<https://devfeed.tech/tags/autonomous-ai-agents.md>), [aws](<https://devfeed.tech/tags/aws.md>), [build](<https://devfeed.tech/tags/build.md>), [conversation-memory](<https://devfeed.tech/tags/conversation-memory.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [java](<https://devfeed.tech/tags/java.md>), [memory](<https://devfeed.tech/tags/memory.md>), [multi-agent](<https://devfeed.tech/tags/multi-agent.md>), [multi-agent-orchestration](<https://devfeed.tech/tags/multi-agent-orchestration.md>), [production](<https://devfeed.tech/tags/production.md>), [resilience](<https://devfeed.tech/tags/resilience.md>), [spring-ai](<https://devfeed.tech/tags/spring-ai.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [tool-calling](<https://devfeed.tech/tags/tool-calling.md>)

## AI overview

The walkthrough shows how Java teams can build agents with Spring AI and Amazon Bedrock, then deploy them on Amazon Bedrock AgentCore. It presents a travel assistant with tool calling, streaming, and short- and long-term memory, plus an intelligent document processing system with five specialist agents, configurable rules, alerts, and human review. It explains the AgentCore `/invocations` and `/ping` contract, Spring AI tool and memory integration, and production patterns for retries, identity, guardrails, and observability. The base multi-agent design routes each document to one specialist and evaluates results; parallel fan-out is an optional extension, while the batch endpoint processes documents sequentially. Structured output is best-effort for the verified Claude Sonnet 4.5 example; stricter schema compliance requires native provider enforcement or Spring AI validation and retry. The post's guardrail pre-check is a demo, and distributed tracing and automated evaluation are described as extensions rather than implemented deployment features.

## Source excerpt

Learn how Java developers can build production-ready autonomous AI agents using Amazon Bedrock and Spring AI. This post walks through tool calling, conversation memory, resilience patterns, and multi-agent orchestration, then deploys the agent to AWS with Amazon Bedrock AgentCore.