Ai4
Telemetry across 32,000 real-world triage runs shows monolithic multi-tool agents balloon latency and token overhead by evaluating every tool schema on each turn, whereas deterministic workflows of specialized domain models prevent context poisoning and slash compute costs.
AI-assisted summary of Multi-Agent Orchestration with Elastic Workflows and Agent Builder With Elasticsearch — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published by Ai4 on YouTube in August 2026, this presentation features Tristan Ma, Manager of Solutions Architecture at Elasticsearch. According to the page description, the session explores how to scale multi-agent intelligence without ballooning costs or latency by combining Elastic Workflows, Agent Builder, Liquid Agent patterns, and granular token tracking.
## TL;DR Tristan Ma outlines why coordinating modular, specialized AI agents through deterministic workflows consistently outperforms single monolithic 'super agents' in production environments. Using an incident triage and root cause analysis demo, he illustrates how Elastic serves as both a contextual grounding layer and an OpenTelemetry trace repository. By adopting declarative YAML workflows, Liquid templating to pre-filter payloads, and indexed trace logging, teams can empirically optimize performance—including selectively switching from Claude Sonnet to Haiku to slash latency while maintaining diagnostic accuracy.
## Atmosphere & style The presentation is pragmatic, engineering-focused, and refreshingly empirical, stripping away generative AI hype in favor of hard telemetry and real-world system architecture. Tristan delivers his insights with accessible clarity and relatable industry humor, engaging the audience with live console walkthroughs and candid observations about customer trust in LLMs. The talk feels like an insider masterclass in observability and cost control, empowering practitioners to move past proof-of-concept guesswork into rigorous production tuning.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=4s) Enterprise automation is evolving from single-turn RAG to multi-agent architectures that mirror human team collaboration across specialized domains. - [02:02](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=122s) Deterministic AI workflows provide auditable, repeatable rails for standard runbooks, while autonomous agents excel at open-ended, exploratory problem-solving. - [02:02](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=122s) Coordinating modular, specialized agents consistently outperforms monolithic 'super agents' by preventing context poisoning and lowering token costs during production scaling. - [04:33](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=273s) Elasticsearch functions simultaneously as the contextual grounding source and the OpenTelemetry (OTel) trace store for end-to-end agent observability. - [04:33](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=273s) Assigning sub-agents domain-specific biases (infrastructure, application telemetry, search) prevents noisy context from overwhelming LLMs before evidence synthesis. - [09:05](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=545s) Declarative YAML orchestration allows both human engineers and LLM workflow builders to reliably construct, inspect, and modify multi-step agent chains. - [09:05](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=545s) Enterprise adoption requires embedding direct, clickable links to raw telemetry and logs in LLM outputs to allow subject matter experts to verify findings independently. - [11:26](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=686s) Applying Liquid templating natively in Elasticsearch extracts only necessary fields from JSON payloads, eliminating redundant MCP roundtrips and slashing token consumption. - [11:26](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=686s) Strategically swapping heavy frontier models for lighter models like Claude Haiku in targeted agent steps achieves a 15% latency reduction and lowers inference costs. - [13:28](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=808s) Telemetry from over 32,000 internal triage iterations reveals that loading single agents with 14+ tools creates massive per-turn token overhead compared to deterministic workflows. - [16:11](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=971s) Native MCP endpoints with version control and import/export capabilities enable teams to systematically track and update tool schemas as tools evolve. - [18:24](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=1104s) Granular execution trace logging allows teams to empirically evaluate model trade-offs and assess whether lighter models provide sufficient fidelity for downstream agent chains.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=4s) The Evolution of AI Automation: From Rules and RAG to Agentic Systems
Opening with a quick show of hands across the audience to gauge familiarity with the ELK stack, Tristan Ma introduces Elastic as not only an open-source full-text search engine, but a robust analytics platform powering search, observability, and security. Given Elastic's wide operational footprint across thousands of enterprise environments, the team has had a front-row seat to how organizations are adopting artificial intelligence. Beyond the natural enthusiasm present at an AI conference, Tristan acknowledges the intense executive and board-level mandate leaders face to embed AI directly into core business workflows.
This corporate appetite reflects a broader maturation in how industry approaches automation. Early enterprise automation relied on strict, rule-based systems: you defined a rigid logical process, executed it, and hoped it held together, frequently wishing "if only it could be smarter" or "if only it could just catch that small nuance." The industry then advanced into Retrieval-Augmented Generation (RAG). RAG established a reliable production architecture that combined LLM reasoning with enterprise data grounding, allowing systems to provide cited, verifiable answers without requiring models to be trained directly on private data.
Yet, single-turn RAG has distinct limitations when addressing complex, multifaceted enterprise challenges. Real-world troubleshooting rarely mirrors a single query to a single individual; instead, humans naturally consult multiple colleagues across different teams, each offering distinct perspectives and specialized domain expertise. To replicate that dynamic in software, the industry has transitioned into agentic AI, prompting an architectural distinction between structured workflows and autonomous agents.
[02:02](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=122s) AI Workflows vs. AI Agents: Super Agents vs. Specialized Domain Experts
Tristan distinguishes between an AI workflow and an autonomous AI agent, noting that while both utilize agentic capabilities, they serve fundamentally different operational purposes: - **AI Workflows (Deterministic Paths):** Designed for known procedures and standard operating runbooks. The LLM reasons through pre-defined stages sequentially, providing strict rails, deterministic execution, and end-to-end auditability, trackability, and logging. - **AI Agents (Exploratory Reasoning):** Equipped with diverse tools and skills to reason independently. These agents are ideal for open-ended problem exploration where the exact path or destination cannot be predetermined, though tracing their exact decision path can prove more complex.
```mermaid flowchart TD accTitle: AI Workflows vs Autonomous AI Agents subgraph Workflow ["AI Workflow (Deterministic Rails)"] W1["Standard Runbook Step 1"] --> W2["LLM Guided Step 2"] W2 --> W3["Auditable Output & Logs"] end subgraph Agent ["Autonomous AI Agent (Exploratory)"] A1["User Goal / Query"] --> A2["LLM Tool Selection & Reasoning"] A2 --> A3["Dynamic Tool Execution"] A3 --> A2 end ```
Beyond workflows versus agents lies a critical architectural debate: should organizations deploy a single, monolithic "super agent" equipped with dozens of tools, or coordinate a fleet of modular, specialized agents? Tristan emphasizes that this distinction becomes paramount on "Day 2"—when systems move past internal proof-of-concept demos and scale into production environments where latency and inference costs multiply. Based on Elastic's internal testing—including data from their InfoSec security team analyzing over 32,000 real-world conversations—specialized agents consistently outperform single super agents, delivering superior answer accuracy while significantly reducing overall token consumption and context poisoning.
[04:33](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=273s) Architecture of a Specialist Multi-Agent System on Elastic
To demonstrate this specialist philosophy, Tristan presents an incident triage and root cause analysis (RCA) architecture built entirely on Elasticsearch. In this system, Elasticsearch serves a dual purpose: acting as the contextual grounding source (knowledge base and logs) and functioning as the OpenTelemetry (OTel) telemetry store for deep system observability.
```mermaid flowchart TD accTitle: Multi-Agent RCA Architecture on Elastic subgraph Coordination ["Triage & Routing"] A["Triage Agent (Atlas)"] end subgraph DomainAgents ["Biased Domain Specialists"] P["Pulse (Infrastructure)"] L["Lens (Application Telemetry)"] S["Scout (Search & Relevance)"] end subgraph SynthesisLayer ["Synthesis & Incident Management"] SYN["RCA Synthesizer Agent"] REP["RCA Reporter Agent"] KIB["Kibana Case Management"] end subgraph StorageLayer ["Elasticsearch Core Platform"] ES[("Elasticsearch: Grounding Data & OTel Store")] end
A --> P & L & S P & L & S --> SYN SYN --> REP REP --> KIB P & L & S -. Grounding & Telemetry Lookups.-> ES SYN -. Telemetry & Trace Logging.-> ES ```
The multi-agent workflow operates through specialized stages: - **Atlas (Triage Agent):** Receives the incoming incident or alert and coordinates delegated tasks out to specialized sub-agents. - **Specialist Sub-Agents (Pulse, Lens, Scout):** Each sub-agent is intentionally given domain-specific instructions and strong bias toward its respective area (Pulse for infrastructure, Lens for application logs/telemetry, Scout for search relevance). This domain isolation prevents "context poisoning," ensuring individual LLMs remain focused without being overwhelmed by noisy, irrelevant telemetry. - **RCA Synthesizer:** Aggregates findings and evidence submitted exclusively by the specialist agents, acting as an impartial judge to determine the true root cause based on domain inputs. - **RCA Reporter & Case Logging:** Compiles a finalized investigation report and automatically logs it directly into a Kibana Observability case (or external case management platform) for trackable post-incident review.
The agents are configured using Elastic Agent Builder via API or UI, integrating system instructions, custom capabilities, and an "RCA on Rails" workflow definition while streaming live OTel execution traces back into Elasticsearch.
[07:37](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=457s) Live Investigation: Diagnosing a Complex 15% Conversion Drop
Tristan demonstrates the architecture in action by presenting the system with a realistic, multifaceted production incident: *"Search conversion dropped 15% overnight—is this a relevance problem (i.e., are my search results bad) or is this an infrastructure problem?"*
Single-agent systems and traditional RAG pipelines often struggle with questions spanning multiple distinct failure modes. As the live run executes: - The **Pulse** infrastructure agent inspects its specialized metrics and flags an initial signal pointing toward a potential Redis connection pool exhaustion. However, isolated on its own, it cannot verify whether that resource constraint directly caused the top-line conversion drop or if search relevance degraded independently. - The **Atlas** triage agent and the overarching Elastic Workflow orchestrate concurrent investigations across the remaining domain agents. - Within the Kibana interface, operators can watch the agent execution steps live, inspecting the exact inputs, prompt instructions, system references, and raw outputs generated by each specialist throughout the workflow.
- **Observed Scenario:** An overnight 15% drop in search conversion evaluated across infrastructure health vs. relevance degradation. - **Infrastructure Signal Detected:** Redis connection pool exhaustion identified by the Pulse sub-agent. - **Platform Inspection:** Full multi-agent execution visible within the Elastic Agent Builder and Kibana Workflow console, tracking discrete agent IDs, tool parameters, and intermediate reasoning steps.
[09:05](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=545s) Declarative Workflows, Full Auditability, and Root Cause Synthesis
As the execution progresses, the backend synthesizes a complete Root Cause Analysis (RCA). Every stage of the execution chain—the user prompts, intermediate agent thoughts, tool inputs, and raw outputs—is automatically written into an Elasticsearch index. Because this data is indexed natively, teams can query execution runs independently and even have an LLM run secondary meta-analyses over past execution traces to inspect chains and evaluate system performance.
```mermaid flowchart TD accTitle: Multi-Agent RCA Workflow Architecture in Elastic
subgraph Trigger ["1. Trigger & Parsing"] A["Incoming Alert / APM Error"] --> B["Declarative YAML Workflow"] B --> C["Specialized Pre-LLM Filters"] end
subgraph Execution ["2. Grounding & Liquid Templating"] C --> D["Elasticsearch Native Query"] D --> E["Liquid Templating (Field Extraction)"] E --> F["Specialized LLM Agent (Sonnet / Haiku)"] end
subgraph Observability ["3. Audit & Verification"] F --> G["Workflow Execution Index"] G --> H["Grounded RCA Output + Deep Links"] H --> I["Human SME / Security Analyst"] end ```
The orchestration layer relies entirely on declarative YAML workflows. Tristan explains that this was a deliberate architectural decision because "LLMs love YAML. Who knows why? But it's very structured. It kind of knows how to write it." This structure allows both engineers and LLM workflow-builder skills to generate and modify multi-step chains reliably. When the sample execution finishes, the system successfully pinpoints that what looked like a relevance failure is actually two distinct incidents driven by an underlying infrastructure error. Crucially, the final synthesis includes direct, clickable links into Elastic APM inventory and log views. This raw provenance is essential for enterprise adoption, as Tristan notes from customer feedback:
> "What we're finding in our conversation with customers is most of our customers do not trust the LLM output by itself, right? Quick show of hands... We trust it, but it's like, yeah, is that right? It's much better for us to be able to go through if we want to have a subject matter expert if we need to go in and actually check the raw evidence."
- Workflows can be triggered automatically ahead of time for alert triaging, establishing an investigative path and gathering raw evidence before an analyst even opens the ticket. - Full trace auditability in Elasticsearch indexes allows organizations to inspect inputs, outputs, and agent transitions over time.
---
[11:26](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=686s) Performance Tuning: Liquid Templating and Model Switching
Having full visibility into execution traces transforms agent performance optimization from guesswork into an empirical science. When an RCA run takes two minutes, teams need verifiable levers to reduce latency without sacrificing output quality. Two primary optimization techniques address this: Liquid templating and model switching.
Liquid templating takes advantage of Elasticsearch acting as the grounding layer. Instead of forcing an LLM to parse and filter through an entire raw JSON payload, Liquid templates extract only the exact fields required before passing context to the model. Because the data is called and formatted natively within Elastic, it eliminates unnecessary Model Context Protocol (MCP) roundtrips, slashes context window bloat, and materially reduces latency.
Model switching provides a complementary optimization path. By swapping Anthropic's Claude 3.5 Sonnet with Claude 3 Haiku for specific specialized agent steps, the system achieves a 15% latency reduction alongside lower token costs. However, because both runs are indexed side-by-side in Elastic, teams can perform nuanced comparative evaluations between Sonnet and Haiku to determine whether slight variations in the generated answers remain acceptable for production environments.
---
[13:28](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=808s) Real-World Lessons from InfoSec: Monolithic Agents vs. Deterministic Specialized Workflows
Elastic's internal Information Security team serves as "Customer Zero" for these multi-agent capabilities. With roughly 3,000 employees company-wide, Elastic does not maintain a massive global security operations center, requiring the security team to rely heavily on automation. Over the course of running more than 32,000 triage iterations, the team analyzed their workflow telemetry to resolve persistent reliability and cost bottlenecks.
| Metric / Dimension | Monolithic Multi-Tool Agent | Specialized Deterministic Workflow | |:--- |:--- |:--- | | **Tool Configuration** | Single agent loaded with ~14 general tools | Dedicated agents restricted to specific tasks | | **Context Overhead** | Evaluates all 14 tool definitions on every turn | Passes only relevant parameters to targeted steps | | **Token Consumption** | High baseline token cost before any action | Minimal, targeted token usage per step | | **Best Used For** | Exploratory open-ended research & dev prototyping | High-volume alert triage & deterministic production flows |
Tristan emphasizes the core operational takeaway: "You can only fix what you can see." Loading a single generalist agent with 14 tools forces the model to evaluate every tool definition on every single turn before taking action, creating immense token overhead and latency penalties. For high-volume alert triaging where processes are well-understood, routing events through deterministic, specialized agent workflows slashes costs while preserving fidelity.
- The architecture remains fully open and supports the Agent2Agent (A2A) protocol, allowing external tools and agents to integrate without vendor lock-in. - Advanced implementations can branch out into asynchronous workflows when an agent needs to diverge from a linear chain to explore an investigative lead.
---
[16:11](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=971s) Audience Q&A: Deterministic Workflows, MCP Versioning, and Model Output Quality
During the closing question-and-answer session, attendees dig into practical architectural trade-offs:
1. **Independent Specialist Agents vs. Monolithic "Deep" Agents:** An audience member asks whether Elastic advocates for a suite of independent agents or a single deep agent overseeing everything. Tristan clarifies that for high-volume operational tasks like alert triage, deterministic workflows with specialized agents are far more effective at cutting out noise and controlling token budgets. However, Elastic also supports asynchronous workflows where agents can fork off into non-linear, exploratory sub-tasks when needed. 2. **Managing MCP Tool Drift and Schema Changes:** Another attendee asks how to manage tool definitions when underlying MCP tools change over time. Tristan explains that Elastic provides native MCP endpoints equipped with version control and import/export capabilities so teams can track, rename, and update tool schemas methodically. 3. **Evaluating Model Swaps (Sonnet vs. Haiku):** A participant asks whether Haiku actually reproduced Sonnet's output quality during the 15% latency improvement tests. Tristan confirms that while Haiku ran noticeably faster and cheaper, differences in the responses did appear, underlining why continuous indexed trace logging is critical for measuring acceptable quality thresholds.
[18:24](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=1104s) Evaluating Model Trade-Offs: Claude Sonnet vs. Claude Haiku in Multi-Agent Workflows
Evaluating model performance step-by-step revealed that while the depth and level of supporting evidence differed between models, the underlying conclusion remained identical. Sonnet brought richer supporting detail, whereas Haiku arrived at the exact same conclusion and correctly flagged the issue as a "high risk" rather than a "critical risk." Having granular auditability shifts the engineering debate away from abstract assumptions about model capabilities toward empirical proof: asking "it's faster and it's cheaper—is that answer good enough?" rather than asserting outright whether Haiku or Sonnet can handle a specific task.
```mermaid flowchart TD accTitle: Single-Step vs Downstream Chaining Trade-off subgraph StepEvaluation["Single Step: RCA Synthesizer"] Haiku["Claude Haiku<br/>Faster & Cheaper<br/>Same Conclusion, Less Depth"] Sonnet["Claude Sonnet<br/>Higher Cost & Latency<br/>Richer Detail & Evidence"] end
subgraph DownstreamImpact["Downstream Agent Chain"] NextStep["Next Agent Input / Output"] FinalOutcome["Subsequent Pipeline Quality"] end
Haiku -->|"Sufficient single step?"| NextStep Sonnet -->|"Better context?"| NextStep NextStep --> FinalOutcome ```
Haiku demonstrated surprisingly strong capability in the role of the root cause analysis (RCA) synthesizer—a stage where intuition might suggest a heavier, more advanced frontier model is strictly required. For that specific synthesis task, a lighter model produced the same core outcome with slightly less depth, giving system architects and auditors the flexibility to decide what level of detail is acceptable. However, evaluating quality in isolation at a single step does not tell the whole story; richer output from one agent might provide higher-quality context into the next step of the pipeline, potentially compounding downstream accuracy across subsequent agents. Because the workflow logs every input and output at each hop, teams maintain the full audit trail needed to investigate these chained effects across the entire lifecycle.
- **Outcome Parity:** Haiku matched Sonnet's core risk classification (flagging the issue as high risk rather than critical), differing primarily in the amount of depth and granular evidence provided. - **RCA Synthesizer Viability:** Lighter, cost-efficient models like Haiku proved fully capable of handling complex synthesis tasks previously assumed to require heavier models. - **Pipeline-Wide Evaluation:** While single-step verification confirmed Haiku was sufficient for that standalone phase, full multi-agent evaluation requires analyzing how output fidelity cascades into subsequent downstream agent inputs. - **Full Traceability:** Complete historical records of inputs and outputs for every workflow stage allow teams to audit and fine-tune model selection across each node of the multi-agent chain.
## Notable quotes > [00:04](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=4s) if only it could be smarter — Tristan Ma
> [00:04](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=4s) if only it could just catch that small nuance. — Tristan Ma
> [07:37](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=457s) Search conversion dropped 15% overnight—is this a relevance problem (i.e., are my search results bad) or is this an infrastructure problem? — Tristan Ma
> [09:05](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=545s) LLMs love YAML. Who knows why? But it's very structured. It kind of knows how to write it. — Tristan Ma
> [09:05](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=545s) What we're finding in our conversation with customers is most of our customers do not trust the LLM output by itself, right? — Tristan Ma
> [09:05](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=545s) We trust it, but it's like, yeah, is that right? It's much better for us to be able to go through if we want to have a subject matter expert if we need to go in and actually check the raw evidence. — Tristan Ma
> [13:28](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=808s) You can only fix what you can see. — Tristan Ma
> [18:24](https://www.youtube.com/watch?v=wJrKm_Rz75Y&t=1104s) it's faster and it's cheaper—is that answer good enough? — Tristan Ma
## Mentioned Tristan Ma, Elastic, Elasticsearch, ELK stack, Elastic Agent Builder, Elastic Workflows, Kibana, Kibana Observability, Elastic APM, OpenTelemetry (OTel), Anthropic, Claude 3.5 Sonnet, Claude 3 Haiku, Redis, Model Context Protocol (MCP), Agent2Agent (A2A) protocol, Liquid, YAML
## Video description Tristan Ma - Manager, Solutions Architecture, Elasticsearch
How do you scale multi-agent intelligence without ballooning latency or costs? We built a system on Elastic using specialist agents coordinated through Workflows and Agent Builder.. We refined performance by adopting "Liquid Agent" patterns—offloading lookups to Workflows to slash token usage—and using a "measure-don’t-guess" methodology to cut latency. We also implemented granular token usage tracking within workflow indexes to enable deep historical analysis. Join us to learn how these strategies can optimize your own agent deployments for superior efficiency and observability.
[Source](https://www.youtube.com/watch?v=wJrKm_Rz75Y)