Skip to content

Examples

Runnable, end-to-end examples to learn from and adapt. Pick one below, open it on GitHub, and run it. Each is self-contained.

LearnPython

Notebook

Create your first agent with system prompts

LearnPython

Run a local Ollama model, reach Azure OpenAI via LiteLLM, and call OpenAI on Amazon Bedrock

LearnPython
Notebook

Stream responses in async/FastAPI apps

LearnPython
Notebook

Add content filtering with Bedrock Guardrails

LearnPython
Notebook

Persist agent memory across sessions

LearnPython
Notebook

Build self-organizing agent teams

LearnPython
Notebook

Create deterministic agent workflows

LearnPython
Notebook

Build reusable plugins that bundle hooks, tools, and state

LearnPython
Notebook

Load specialized instructions on demand with skills

LearnPython
Notebook

Tour the full hook lifecycle and use writable fields to control agent behavior

LearnPython

Build a self-extending, self-modifying, autonomous agent and deploy it (6 steps, AIM308)

LearnPython
Notebook

Get validated, typed Pydantic objects back from agents instead of free-form text

LearnPython

DeployPython

Notebook

Deploy agents as serverless functions

DeployPython
Notebook

Run agents in serverless containers

DeployPython
Notebook

Host agents on purpose-built runtime

DeployPython
Notebook

This tutorial demonstrates how to use the Strands Agents SDK to build and deploy a multi-agent system on Amazon Bedrock AgentCore. You will create three specialized agents, each running in its own managed runtime, that discover and communic

DeployPython

IntegratePython

Amazon Aurora DSQL is a serverless, distributed relational database service optimized for transactional workloads. Aurora DSQL offers virtually unlimited scale and doesn't require you to manage infrastructure. The active-active highly avail

IntegratePython

Amazon Neptune is a fully managed graph database service by Amazon Web Services (AWS). It's designed to store and query billions of relationships with low latency, making it suitable for applications that rely on highly connected datasets.

IntegratePython
Notebook

Supabase is an open-source Firebase alternative providing all the backend services you need to build a product: a PostgreSQL database, authentication, instant APIs, edge functions, realtime subscriptions, and storage. This integration demon

IntegratePython

Example for integrating Strands Agent with Alice WonderFence for adaptive, real-time protection of production AI systems.

IntegratePython

Example for integrating Strands Agent with Meta's Llama Firewall for local model-based input filtering and safety checks.

IntegratePython

Example for integrating Strands Agent with NVIDIA NeMo Guardrails for configurable, rule-based content filtering and conversation flow control.

IntegratePython

Minimal proof-of-concept for a personal dining assistant agent using Zep AI's graph-based memory and the Strands framework.

IntegratePython
Notebook

This integration demonstrates how to use Strands Agents with OpenInference and Arize AI for observability. The example builds a restaurant assistant agent that helps customers with restaurant information and reservations.

IntegratePython

An example Strands agent that helps with searching AWS documentation.

IntegratePython

This sample demonstrates Strands' native support for the Agent-to-Agent (A2A) protocol, showcasing how to create both A2A servers and clients for inter-agent communication.

IntegratePython

A conversational AI agent that demonstrates the full power of Exa's search and content extraction capabilities through a practical research workflow using Strands Agents.

IntegratePython

Amazon Nova Act is an AI model trained to perform actions within a web browser. Nova Act is currently in research preview and can be accesed via the Nova Act SDK on Amazon Nova. Nova Act is an agentic model which can accept natural language

IntegratePython
Notebook

This tutorial is designed for Python developers who want to empower their Strands agents with real-time web access, enabling agents to utilize up-to-date information as context. Live web information is critical for AI agents tasked with per

IntegratePython

The Amazon Nova Sonic model provides real-time, conversational interactions through bidirectional audio streaming, enabling natural, human-like conversational experiences.

IntegratePython

Industry Use CasesPython

Multi-agent swarm system that autonomously generates comprehensive equity research reports with stock analysis, financial metrics, and news sentiment tracking

Industry Use CasesPython

Wealth advisory tool suite with Streamlit UI for client meeting analysis, portfolio performance tracking, and PDF report generation using MCP and Graph patterns

Industry Use CasesPython
Notebook

Three-part workshop teaching Strands agent fundamentals through personal budget analysis and expense tracking

Industry Use CasesPython

WhatsApp for Business integration with multi-agent architecture handling daily promotions, credit card transactions, and payment scheduling

Industry Use CasesPython

Clinical document processing agent that extracts diagnoses, medications, and treatments, enriching them with ICD-10, RxNorm, and SNOMED CT medical codes

Industry Use CasesPython

Airline customer service demonstrating four orchestration patterns (ReAct, REWOO, REWOO-ReAct Hybrid, Reflexion) using GraphBuilder with tau-bench dataset

Industry Use CasesPython

Startup advisory swarm agent for market research, competitive analysis, and campaign copywriting using Perplexity MCP server for web search

Industry Use CasesPython

Multi-modal email assistant with RAG pipeline for document ingestion (audio, video, text) and AI image generation for enterprise communication

Industry Use CasesPython

Productivity assistant using agents-as-tools pattern with calendar management, coding REPL, and web search via Perplexity MCP

Industry Use CasesPython

Self-improving autonomous research agent with hot-reload tool creation, persistent memory, and multi-model support (Bedrock, OpenAI, Ollama)

Industry Use CasesPython

Agile development assistant that converts meeting notes and sprint planning discussions into structured, actionable JIRA tickets

Industry Use CasesPython
Notebook

Restaurant assistant using Amazon Bedrock Knowledge Bases for menu recommendations, table reservations, and customer interaction management

Industry Use CasesPython

Natural language interface for AWS data engineering with Streamlit UI - manage AWS Glue ETL jobs, Athena SQL queries, and EMR clusters via MCP

Industry Use CasesPython

AWS cloud resource management assistant using Model Context Protocol (MCP) for infrastructure operations

Industry Use CasesPython

AWS compliance auditor that checks EC2, S3, IAM, and other resources against security best practices and generates remediation reports

Industry Use CasesPython

Coding companion with Python REPL, shell access, and file editing capabilities for development workflows

Industry Use CasesPython

Multi-agent system for SQLite query optimization with OpenTelemetry observability logging and collaborative agent coordination

Industry Use CasesPython
Notebook

Event-driven Lambda error diagnostics using CDK, EventBridge, and Bedrock Knowledge Base RAG for root cause analysis with confidence scoring

Industry Use CasesPython

Multi-agent SRE incident response system that detects CloudWatch alarms, performs AI-powered root cause analysis, applies Kubernetes/Helm remediations, and posts Slack incident reports

Industry Use CasesPython

Technical Use CasesPython

An agent that picks the best Pokémon for competitive team building. Demonstrates three Strands features working together:

Technical Use CasesPython

An Adaptive Structured RAG agent that converts natural language questions into SQL queries with self-correcting feedback loops. This agent features dual-mode support for both local SQLite databases and AWS Athena, and intelligent error hand

Technical Use CasesPython
Notebook

This project demonstrates a Corrective Retrieval-Augmented Generation (RAG) system built using Strand Agents. The system is designed to identify low relevance responses to users questions responses and automatically refine queries or respon

Technical Use CasesPython
Notebook

This project demonstrates how to build an intelligent RAG system that can route queries between structured and unstructured knowledge bases using Strands Agents.

Technical Use CasesPython

Demonstrates different approaches to controlling AI agent behavior with a librarian agent. Users can chat with the agent, ask questions, and request to renew a book.

Technical Use CasesPython

EvaluatePython

Notebook

This tutorial demonstrates how to systematically compare different language models in production agent systems through A/B testing. Learn to build multiple agent variants, evaluate them on identical tasks, and make data-driven model selecti

EvaluatePython
Notebook

This tutorial introduces the complete toolkit of built-in evaluators provided by Strands Evals. You'll learn how to measure different aspects of agent performance using standardized evaluation metrics, from response quality to tool selectio

EvaluatePython
Notebook

This tutorial teaches you how to create custom evaluators for domain-specific evaluation criteria. You'll learn to design rubrics, extend the base Evaluator class, and implement multi-metric evaluation workflows tailored to your specific re

EvaluatePython
Notebook

This tutorial demonstrates automated test case generation for agent evaluation using the Strands Evals DatasetGenerator API. Learn how to generate diverse, high-quality test datasets and persist them for reuse across evaluation runs.

EvaluatePython
Notebook

This tutorial demonstrates comprehensive evaluation of multi-agent systems where multiple specialized agents collaborate to complete complex tasks. You'll learn to assess individual agent performance, collective system outcomes, and the qua

EvaluatePython
Notebook

This tutorial demonstrates how to use ActorSimulator to evaluate conversational agents through realistic multi-turn interactions. Learn how to create AI-powered user personas, test agents with diverse behaviors, and implement production-rea

EvaluatePython
Notebook

This tutorial demonstrates how to evaluate agent trajectories - the sequences of tool calls, reasoning steps, and decisions agents make to complete tasks. Learn to evaluate not just what agents produce, but how they think and execute.

EvaluatePython

UX DemosPython

A sample demonstrating how to build rich, interactive AI chat experiences using Strands Agents SDK with AG-UI protocol and CopilotKit frontend. The sample app is an AgentCore documentation assistant that helps users learn about Amazon Bedro

UX DemosPython

An order approval system that demonstrates human-in-the-loop workflows using Strands Agents' interrupt/resume pattern. A multi-agent graph evaluates incoming orders — assessing risk factors like customer history, order value, and inventory

UX DemosPython

A lightweight conversational AI agent built with Strands SDK that assists facility managers and building operators with HVAC (Heating, Ventilation, and Air Conditioning) data analytics in physical smart buildings. The agent queries relevant

UX DemosPython

This sample application demonstrates a simple chat assistant built with Strands that has two basic tools available: a calculator and a timer. Once installed into a Slack workspace, the app backend can be run on a development machine in sock

UX DemosPython

A web-based interactive playground for experimenting with the Strands SDK, allowing users to quickly test and prototype AI agents with configurable system prompts, model parameters, and tool selection. The Strands Playground provides the us

UX DemosPython

This app demonstrates how to build and deploy a GenAI agent with a web user interface using Streamlit and AWS CDK. While the demo uses a simple appointment management agent (described in the agent description section), the main focus is on

UX DemosPython

> A demonstration of AI-powered medical triage using structured decision tree navigation

UX DemosPython

> [!IMPORTANT] > ⚡ Enhanced Deployment Option: This solution can also be deployed using Amazon Bedrock AgentCore - Agentic platform to build, deploy and operate agents securely at scale using any framework and model. > > 🔥 Deploy with Amaz

UX DemosPython

EdgePython

An AI-powered control system for Boston Dynamics Spot robots using the Strands framework. Works with any LLM supported by Strands (Claude, GPT-4, Llama, etc.).

EdgePython

LearnTypeScript

DeployTypeScript

Host agents on purpose-built runtime

DeployTypeScript