Build autonomous AI agents with Amazon Bedrock and Spring AI
AWS•How-to••by Viquar Khan and Mahammadali Saheb•AWS Artificial Intelligence Blog
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.
Java developers get a walkthrough for building tool-calling, memory-backed AI agents with Spring AI on Amazon Bedrock and deploying them to AgentCore runtime.
Who it is for
Java teams running enterprise workloads that need to take agents from prototype to production on AWS.
Key points
Verified with Anthropic Claude Sonnet 4.5 on Amazon Bedrock; the post notes other model families may behave differently.
Requires JDK 21, Spring Boot 4.1, Spring AI 2.0 and spring-ai-agentcore 2.0.
Deployment uses Terraform and an ARM64 container image; AgentCore runtime scales to zero and bills per invocation.
AI:Bayer Crop Science's Agentic Decision Engine uses Bedrock AgentCore to let staff ask natural language questions about its ML workflow platform, with 22 specialist agents and about 80 percent of questions resolved without an engineer, per AWS.
AI:A walkthrough builds a competitive research agent where Deep Agents orchestrates parallel browser subagents and an analyst on AgentCore Browser, Code Interpreter and Memory, then deploys it to AgentCore Runtime.
AI:AutoScout24 built a Slack support bot as a reusable agent template using Bedrock AgentCore, Strands Agents and Bedrock Knowledge Bases, routing requests to specialized agents.