What you’ll learn
This guide teaches you how to build multi-agent AI systems with Pipecat Subagents. By the end, you’ll understand how to decompose complex applications into specialized agents that coordinate through a shared message bus.Prerequisites: Familiarity with Pipecat’s core
concepts (pipelines, processors, transports) is
recommended. This guide builds on that foundation.
Why Pipecat Subagents?
Pipecat is a powerful real-time framework for building voice and multimodal AI applications. A single pipeline covers many use cases, but as your application grows you may need multiple agents working together. Pipecat Subagents extends Pipecat with distributed multi-agent coordination where each agent runs its own pipeline. Some things you can build:- A customer support system where each specialist runs its own LLM with dedicated tools and context, transferring seamlessly between each other.
- A video game where multiple LLMs independently control different characters, environments, or game mechanics.
- A stock analysis app that dispatches parallel research to multiple worker agents and synthesizes their findings.
- A video or image analysis pipeline where worker agents process media using Pipecat processors and stream updates back.
- An IoT system where remote devices run agents on specialized hardware, reporting status and receiving commands.
Architecture of a voice agent
One of the most common use cases is a voice agent, so let’s use it to illustrate the architecture. In this example, we have three agents: a main agent that owns the transport and two voice agents, each running its own LLM with different instructions and tools.
- The AgentRunner manages the lifecycle of all agents and owns the bus
- The main agent owns the transport and places a
BusBridgeProcessorin its pipeline to route frames to other agents through the bus - Voice agents are bridged to the bus — they receive frames from the bridge and send responses back through it
- Only one agent is active at a time (per bridge) — the active agent gets the frames
- Worker agents receive tasks, process them, and return results
What’s ahead
Each section builds on the previous one:Let's start
Begin with agents and the runner