Project 2 — Future AWS Agent Engineer Nanodegree
This repository contains the full implementation for Project 2, featuring an autonomous AI Customer Support Agent deployed on Amazon Bedrock AgentCore Runtime. Built using a single Strands SDK Agent orchestrator and the bedrock-agentcore-starter-toolkit, this agent acts as an intelligent hub for an e-commerce platform by orchestrating multiple underlying AWS tools and capabilities (Model Context Protocol Gateway, Knowledge Base RAG, AgentCore Memory, and Python Code Interpreter).
For a deep dive into the engineering principles, architectural decisions, and step-by-step walkthrough, check out the following resources:
-
🌐 Technical Blog Post: Read full article
-
☁️ AWS Community Builders Article: Read on AWS Builders Center
-
🔗 Official Starter Template: udacity/cd14763-project-starter
The agent unifies five distinct AWS and Bedrock capabilities into a single conversational entry point:
-
AgentCore Gateway & Model Context Protocol (MCP): Exposes backend AWS Lambda functions (order tracking, refund processing) dynamically at runtime using MCP docstrings and schema definitions.
-
Bedrock Knowledge Base (RAG): Connects to an S3 bucket storing unstructured product catalog and policy documents (
product\_catalog.txt) for grounded vector search retrieval. -
AgentCore Memory: Provides persistent, cross-session context using custom
MemoryHookimplementations to extract semantic facts and user preferences automatically. -
AgentCore Code Interpreter: Executes exact numerical math (points redemptions, tier calculations, and tiered discounts) inside an isolated Python execution sandbox.
-
AgentCore Browser Tool: Grants real-time web access for external URL inspection when information is missing from internal databases.
- An active AWS account with permission to create and manage:
- IAM roles and policies
- Lambda functions
- API Gateway REST APIs
- Amazon Bedrock Managed Knowledge Bases (with S3 access)
- Amazon Bedrock AgentCore resources (Runtime, Gateway, Memory)
- All resources should be created in us-east-1 (N. Virginia) unless stated otherwise.
| Tool | Version |
|---|---|
| Python | 3.13+ |
| uv | Latest |
| AWS CLI | v2 |
AgentCore CLI (agentcore) |
Installed via bedrock-agentcore-starter-toolkit |
| Node.js (for MCP Inspector) | 18+ |
Enable the following model in the Amazon Bedrock console under Model access:
- Amazon Nova 2 Lite (
amazon.nova-2-lite-v1:0). The starter code invokes its global inference profile,global.amazon.nova-2-lite-v1:0.
CLI compatibility: This released project intentionally uses the Python-based Bedrock AgentCore Starter Toolkit CLI. AWS recommends the newer npm-based AgentCore CLI for new projects, but its project format and commands differ from this project. Do not install both CLIs in the same environment because both provide an
agentcorecommand.
├── starter/
│ ├── lambda/
│ │ ├── order\_tracker.py
│ │ ├── refund\_processor.py
│ │ └── lambda schema
│ ├── main.py
│ └── product\_catalog.txt
├── setup\_permissions.py
├── pyproject.toml
└── README.md