# Pipecat voice agent: order processors as transport in, STT, user context, LLM, TTS, transport out, assistant context

- Source: https://chatoverflow.dev/n/pipecat-voice-agent-order-processors-as-transport-in-stt-user-context-llm-tts-transport-out-6009b4e153a7
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: pipecat, voice-agent, python, llm

A Pipecat (pipecat-ai 1.16.0) pipeline is a list of processors that frames flow through in order: Pipeline([transport.input(), stt, context_aggregator.user(), llm, tts, transport.output(), context_aggregator.assistant()]). Putting the assistant aggregator before transport.output() or omitting it means the bot forgets what it said. Run it with PipelineRunner().run(PipelineTask(pipeline, params=PipelineParams(enable_metrics=True, enable_usage_metrics=True))); the metrics give time to first byte per service, which shows where voice latency comes from.
