Build an AI-Powered Equipment Repair Assistant Using Amazon Bedrock AgentCore Amazon Web Services has released a solution for building an AI-powered equipment repair assistant using Amazon Bedrock AgentCore that helps farmers and field technicians diagnose heavy machinery problems, identify required parts, and access manufacturer-approved repair procedures through natural language queries. The system combines a web frontend with an AgentCore-hosted agent that queries indexed equipment manuals, parts catalogs, and repair documentation using retrieval-augmented generation, while maintaining conversation history across sessions. The solution aims to reduce multiple site visits and extended downtime for farm equipment repairs, particularly during harvest season when delays cause substantial financial losses. Artificial Intelligence https://aws.amazon.com/blogs/machine-learning/ Build an AI-Powered Equipment Repair Assistant Using Amazon Bedrock AgentCore Managing equipment repairs for heavy farm machinery often requires technicians to diagnose issues without the right parts, leading to multiple site visits, extended downtime, and substantial financial losses, especially during harvest season. In this post, you build an AI-powered equipment repair assistant using Amazon Bedrock AgentCore https://aws.amazon.com/bedrock/agentcore/ that helps farmers and field technicians diagnose equipment problems, identify required parts, and access manufacturer-approved repair procedures through natural language. The solution uses AgentCore Runtime with the Strands Agents SDK https://strandsagents.com/ , Amazon Nova 2 Lite https://aws.amazon.com/nova/models/ as the foundation model, Amazon Bedrock https://aws.amazon.com/bedrock/ Knowledge Base for retrieval-augmented generation RAG , and AgentCore Memory for conversation persistence. Solution overview This solution combines a web frontend with an AgentCore-hosted agent that answers equipment diagnostic questions using indexed manufacturer documentation. Amazon Cognito https://aws.amazon.com/cognito/ manages user authentication, and AWS Amplify https://aws.amazon.com/amplify/ hosts the web application. The equipment repair agent runs on AgentCore Runtime, built with the Strands Agents SDK. It queries a Bedrock Knowledge Base containing indexed equipment manuals, parts catalogs, and repair documentation. AgentCore Memory maintains conversation history across sessions so technicians can ask follow-up questions without repeating context. The following diagram shows how these components work together. The architecture contains the following key sections: Section A – Authentication and Frontend : The CloudFormation stack deploys Amazon Cognito User Pool, Identity Pool for authentication and AWS Amplify for hosting the React web application. Users authenticate through Cognito, and the frontend communicates directly with the AgentCore Runtime endpoint. Section B – AgentCore Runtime : The AgentCore Runtime hosts the Strands-based agent and exposes the /invocations endpoint. The frontend calls this endpoint directly using a Cognito Bearer token. The agent’s invoke entrypoint routes requests internally based on the path field in the payload /chat for AI queries, /issues for CRUD operations , providing a single entry point for backend operations with built-in session management and health checks. Section C – AI Processing : The Strands Agent uses a custom search equipment knowledge tool that calls the Bedrock Knowledge Base via the retrieve and generate API. The Knowledge Base indexes equipment documentation stored in Amazon S3 using Amazon OpenSearch Serverless for vector search and Amazon Titan Embeddings for semantic matching. The following code snippet shows how the agent’s Knowledge Base retrieval https://docs.aws.amazon.com/bedrock/latest/APIReference/API agent-runtime RetrieveAndGenerate.html tool queries manufacturer documentation: php @tool def search equipment knowledge query: str - str: """Search equipment manuals, parts catalogs, and repair docs.""" response = bedrock agent runtime.retrieve and generate input={"text": query}, retrieveAndGenerateConfiguration={ "type": "KNOWLEDGE BASE", "knowledgeBaseConfiguration": { "knowledgeBaseId": KNOWLEDGE BASE ID, "modelArn": f"arn:aws:bedrock:{REGION}::foundation-model/{MODEL ID}", }, }, return response.get "output", {} .get "text", "No results found." Section D – Data and Memory : Amazon DynamoDB stores equipment service tickets issue CRUD operations . AgentCore Memory provides short-term memory for within-session context and long-term memory for cross-session fact persistence. Amazon CloudWatch and AWS X-Ray provide automatic observability. The following steps describe the request flow when a technician asks a question: - The technician opens the web application and authenticates through Amazon Cognito. - The technician submits a question through the chat interface. - The frontend sends the query to the AgentCore Runtime /invocations endpoint with a Cognito Bearer token. - AgentCore validates the token, routes the request to the agent, and retrieves the relevant context from previous conversations. - The Strands Agent sends the query to Amazon Nova 2 Lite for inference. - The model invokes the search equipment knowledge tool, which queries the Bedrock Knowledge Base. - The Knowledge Base searches indexed equipment manuals and returns relevant documentation with source citations. - The model synthesizes a diagnostic response with repair procedures and parts recommendations. - The response is returned to the technician with source attribution for verification. Prerequisites Before you begin, verify that you have: - An AWS account with appropriate permissions to deploy AgentCore agents. For required IAM permissions, see IAM Permissions for AgentCore Runtime https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-permissions.html . - Amazon Bedrock model access for Amazon Nova 2 Lite in your deployment AWS Region. You can use a different supported model of your choice. For current model availability, see Model support by AWS Region https://docs.aws.amazon.com/bedrock/latest/userguide/models-region-compatibility.html . - The AWS Command Line Interface AWS CLI https://aws.amazon.com/cli/ v2.0 or later installed and configured with appropriate credentials. - Python 3.10 or newer installed. - Terminal or command prompt access. Cost estimate: For testing, the primary costs are Amazon Bedrock model invocations Amazon Nova 2 Lite at $0.30/$2.50 per million input/output tokens and the Bedrock Knowledge Base OpenSearch Serverless at approximately $0.24/hour while active . Other services AgentCore Runtime, Amazon DynamoDB, Amazon S3, Amazon Cognito, AWS Amplify fall within the AWS Free Tier for testing volumes. For detailed estimates, use the AWS Pricing Calculator https://calculator.aws/ . Important : Deploy all resources in the same AWS Region. The CloudFormation stack, Knowledge Base, and AgentCore launch command must use the same Region. Creating the Knowledge Base Before deploying the agent, create and populate the Amazon Bedrock Knowledge Base with agricultural equipment documentation. This Knowledge Base provides the source material for diagnostic recommendations and repair guidance. Step 1: Prepare your documentation For testing, download equipment manuals from the John Deere Technical Information Store https://techpubs.deere.com/ . You can also use your own organization’s equipment documentation. For this blog, we use the John Deere 1023E and 1025R Compact Utility Tractor Operator’s Manuals. Collect and organize your agricultural equipment documentation: - Equipment manuals PDF format recommended - Technical service guides and troubleshooting documentation - Parts catalogs with part numbers and specifications - Maintenance schedules and preventive care instructions - Safety protocols and manufacturer warnings Document preparation tips: - Verify documents are text-searchable not scanned images - Use consistent naming conventions for example, Manufacturer Model DocumentType.pdf - Remove any proprietary information that should not be accessible to all users Step 2: Create an S3 bucket for the Knowledge Base aws s3 mb s3://agriculture-kb-documents-