All workshops
NATS 2026 Workshop

Building AI Agents on NATS

Resources

Most agent frameworks ask you to adopt a new runtime, a new transport, and a new way of thinking about how agents find and talk to each other. The Synadia Agent Protocol for NATS takes the opposite approach: it’s a thin contract layered over pure NATS. Add it, and any AI agent becomes a microservice on the bus — connected, discoverable, addressable, and observable for free — while everything underneath stays plain NATS. Your existing client libraries, the CLI, your infrastructure, JetStream — all of it works unchanged.

In this hands-on RethinkConn workshop, Mario and René from Synadia (hosted by Andrew) build agents from the ground up, live, on a shared bus that dozens of attendees join in real time. You start with a bare echo agent and, step by step, turn it into something that reasons with an LLM, calls tools, scales horizontally, remembers across restarts, and even discovers and interviews other agents — all without leaving NATS.

What you’ll learn

The contract that makes an agent a first-class citizen on NATS. How a simple subject convention (agents.<verb>.<type>.<owner>.<session>) plus a three-step streaming request-reply pattern — acknowledge, stream tokens, finish — gives you discovery, addressing, status, and heartbeats with no extra infrastructure. You’ll see the same agent show up instantly in nats micro list and in a live UI.

How little code it takes to build a real agent. Starting from an echo agent that’s just a few lines, you’ll watch it grow: wire in an LLM (OpenRouter or a local model via Ollama), add a system prompt, then give it a conversation history that persists within a session.

Tools as decoupled NATS requests — the pattern unique to NATS. Instead of a tool being a local function, a tool call becomes a NATS request. That means the agent and the thing executing the tool can live on opposite sides of the world. You’ll build a calculator tool, then scale it into a load-balanced fleet using queue groups, and use request-many to poll an entire room of responders at once.

Agents that remember. Back an agent with a JetStream KV bucket so its memory survives a restart — and watch the writes land in the bucket live as the agent learns your name, your city, and your favorite color.

Agents that talk to agents. Point a coding agent at the protocol spec and it picks up the patterns on its own — you’ll see a reporter agent discover every persona on the network and interview them, an early, improvised take on agent-to-agent communication.

Where this is heading. A candid roadmap discussion covering durable execution (through a collaboration with Resonate) for long-running tasks and reliable tool calls, cryptographic agent-to-agent identity, end-to-end encryption so even a subscriber to the prompt subject can’t eavesdrop, full observability and auditing, and expanded language support (Python and Go alongside TypeScript).

Who it’s for

Engineers building agentic systems who don’t want to bolt on yet another transport or service mesh — especially teams already running NATS, or anyone who needs agents and tools to span the network, scale horizontally, and stay observable and durable by default.

Follow along

The agents SDK and a companion labs repo — with self-study versions of every exercise in both TypeScript and Python — are public. You’ll need git, Node 20+/npm or Python with uv, and the NATS CLI. Drop wishlist items and questions on the repo issues, or find the team in the NATS Slack.

Synadia Education

Go deeper with NATS training

Take your skills further with our live, instructor-led courses delivered by our experts to your team of developers or operators.

Cancel