AWS Builder Center
Deploy your locally built AI agent in production with Amazon Bedrock AgentCore Runtime

Deploy your locally built AI agent in production with Amazon Bedrock AgentCore Runtime

At AgentCon 2026 Nairobi Kenya, I demonstrated how you can build and deploy a production-ready AI agent using Strands Agents and Amazon Bedrock AgentCore. Read all about it in this post.

🇿🇦 Senior Developer Advocate @ AWS
At  AgentCon 2026 Nairobi , I showed how to build and deploy a production-ready AI agent using  Strands Agents  and  Amazon Bedrock AgentCore . I started with a simple chatbot built in my local machine and gradually built on it to get a fully-deployed travel assistant called Wanderly that I could invoke from my AWS account and later integrate into an application.
Here's how you can do the same.

How I built and deployed the AI agent

Every time I lead workshops or present talks about Strands Agents, I highlight one of the things I enjoy about building with Strands; its progressive complexity. You start simple, and using tools, add capabilities without rewriting your code.

Phase 1: The simplest possible agent

Here's my simple agent. All I could do is chat with it, it didn't have any extra capabilities as it didn't have any tools added to it.
from strands import Agent
from strands.models import BedrockModel

# Model selection is flexible - swap this out for any supported provider:
# model = OpenAIModel(model_id="gpt-4o") # OpenAI
# model = AnthropicModel(model_id="claude-sonnet-4-20250514") # Anthropic Direct
# model = OllamaModel(model_id="llama3") # Local/Free

model = BedrockModel(model_id="us.anthropic.claude-sonnet-4-6")

agent = Agent(
model=model,
system_prompt="""You are Wanderly, a friendly travel assistant. Help users plan trips,
find local gems, and navigate destinations. Be practical, culturally aware, and concise."""
)

response = agent("Back in Nairobi, here until Friday. What should I see?")
print(response)
And just like that I had a working AI travel assistant!

Phase 2: adding tools for real capabilities

I could have stopped at Phase 1 and I would still have a chatbot that talks back to me, but referring to the "progressive complexity" I mentioned earlier, I wanted to build on to my chatbot. After all, a chatbot that only talks is limited. So I gave Wanderly the ability to actually do things:
from strands import Agent, tool
from strands.models import BedrockModel

@tool
def get_weather(city: str) -> str:
"""Get the current weather for a city."""
weather_data = {
"Nairobi": "Sunny, 24°C",
"Mombasa": "Hot and humid, 32°C",
}
return weather_data.get(city, f"Weather data not available for {city}")

@tool
def search_attractions(city: str, category: str = "all") -> str:
"""Search for tourist attractions in a city by category."""
attractions = {
"Nairobi": {
"wildlife": ["Nairobi National Park", "Giraffe Centre", "David Sheldrick Elephant Orphanage"],
"culture": ["Nairobi National Museum", "Bomas of Kenya"],
"food": ["Carnivore Restaurant", "Mama Oliech"],
}
}
return str(attractions.get(city, {}))

@tool
def estimate_budget(city: str, days: int, style: str = "mid-range") -> str:
"""Estimate daily travel budget for a city."""
budgets = {"Nairobi": {"budget": 50, "mid-range": 120, "luxury": 300}}
daily = budgets.get(city, {}).get(style, 110)
return f"Estimated {style} budget for {days} days in {city}: ${daily * days}"

model = BedrockModel(model_id="us.anthropic.claude-sonnet-4-6")

agent = Agent(
model=model,
system_prompt="You are Wanderly, a friendly travel assistant...",
tools=[get_weather, search_attractions, estimate_budget]
)
Now when I ask "I'm planning 3 days in Nairobi on a mid-range budget. What's the weather and what should I see?", the agent autonomously decides to:
  1. Call  get_weather("Nairobi") 
  1. Call  search_attractions("Nairobi") 
  1. Call  estimate_budget("Nairobi", 3, "mid-range") 
  1. Synthesize everything into a helpful response
I didn't write any orchestration logic. The agent figured it out using the custom tools I  created with the  @tool  decorator  [get_weather, search_attractions, estimate_budget].

Phase 3: deploying to production with Bedrock AgentCore

Now this is what I was stuck with; the agent worked on my laptop, but how do I take it to production and have it scale to handle multiple users invoking it at the same time?
This is where  Bedrock AgentCore  came in. Using AgentCore, taking this local agent to AWS took just a few additions to the file in Phase 2:
from strands import Agent, tool
from strands.models import BedrockModel
from bedrock_agentcore.runtime import BedrockAgentCoreApp

app = BedrockAgentCoreApp()

# ... same tools as before ...

_agent = None

def get_agent():
"""Lazy initialization for fast cold starts."""
global _agent
if _agent is None:
model = BedrockModel(model_id="us.anthropic.claude-sonnet-4-6")
_agent = Agent(model=model, system_prompt="...", tools=[...])
return _agent

@app.entrypoint
def invoke(payload):
"""AgentCore calls this for every request."""
user_message = payload.get("prompt", "Hello")
response = get_agent()(user_message)
return str(response)

if __name__ == "__main__":
app.run()
I then deployed to my AWS account with these three commands:
pip install bedrock-agentcore-starter-toolkit

agentcore configure --entrypoint agentcore_integration.py --name wanderly_travel_agent --non-interactive

agentcore deploy
The agent is now running on AWS infrastructure, auto-scaling, and ready for production traffic. This is what it looked like when I invoked it in the AgentCore console.
Invoking my agent

By the way if you don't like those emojis in the output, specify in the system prompt that emojis be excluded.
I can observe the agent in  Amazon CloudWatch .
Agent in CloudWatch


Integrating the deployed agent

Once deployed, the agent can be called from any application. Here's how I did it in Python:

Python backend

import boto3
import json

client = boto3.client('bedrock-agentcore', region_name='us-east-1')

response = client.invoke_agent_runtime(
agentRuntimeArn='arn:aws:bedrock-agentcore:us-east-1:YOUR_ACCOUNT:runtime/wanderly_travel_agent',
runtimeSessionId='unique-session-id-minimum-33-characters',
payload=json.dumps({"prompt": "Plan my trip to Nairobi!"})
)

result = json.loads(response['response'].read())

Good to know

Strands Agents lets you build a working agent in minutes. This means that you can start simple then gradually build on to your agent.
Once you're ready, you can then add tools to give your agent superpowers. The  @tool  decorator turns any Python function into an agent capability. The agent decides when and how to use these capabilities.
You also get model flexibility, switch out between Claude, GPT-4, Llama, or local models with a single line change, so there's no vendor lock-in. The same code runs locally and in production when you integrate with AgentCore to handle scaling, security, and infrastructure.



What's next?

From here, I could:
  • Connect real APIs (weather services, booking platforms, flight data)
  • Add memory for multi-turn conversations
  • Implement guardrails for safety
  • Build a web UI or mobile app
  • Add observability with CloudWatch



Resources



Built at AgentCon 2026 Kenya.
Have questions? Find me on  GitHub  or reach out on  LinkedIn .
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article