Skip to content

Coordinator

The Coordinator component is an advanced orchestration node that coordinates multiple specialized sub-agents. It analyzes task complexity, plans execution, routes to appropriate sub-agents, and synthesizes their results into a unified response.

Use the Coordinator when a single query requires:

  • Data from multiple sources or agents (e.g., semantic search + SQL metrics)
  • Multi-step analysis where results of one step inform the next
  • Parallel execution of independent sub-tasks

When a query reaches the Coordinator component, it runs through five phases:

The agent evaluates the query against available sub-agent capabilities and classifies it into one of three levels:

LevelBehavior
LOWSingle sub-agent is sufficient — simple, well-scoped query
MEDIUMTwo sub-agents in sequence (e.g. find assets via API, then fetch metrics via DB)
HIGHMultiple sub-agents in parallel — complex, multi-dimensional queries

Routes the query to the appropriate sub-agents using the configured strategy (capability_based, load_balanced, or priority_based). Sub-agent descriptions are critical here — clear, accurate descriptions directly influence routing accuracy.

Builds a structured multi-phase plan with assigned agents, phase dependencies, and success criteria.

Executes each phase, passing context-aware queries to sub-agents. The Coordinator component copies the full conversation history to every sub-agent so that follow-up questions and ambiguous inputs resolve correctly.

Aggregates outputs from all sub-agents, extracts key insights, and produces a final unified response. For queries returning structured data from multiple sources, results are merged and de-duplicated before being returned to the user.


PatternDescriptionUse Case
SequentialPhases execute one after another; each can use prior outputsRetrieval → Processing → Reporting
ParallelMultiple agents run simultaneouslyMarket research + Competitive analysis + Financial data
PipelineResults stream between agents in real-timeLive ingestion → Processing → Visualization
ConditionalBranching logic based on intermediate resultsIF error THEN retry ELSE continue

ParameterTypeDefaultDescription
ModelstringLanguage model for orchestration decisions
System PromptstringPre-configured orchestration instructions — do not modify
Connected Sub-Agentsarray[]Sub-agents this component can coordinate
Agent Selection Strategystringcapability_basedHow sub-agents are selected: capability_based, load_balanced, or priority_based
Coordination Strategystringsequentialsequential, parallel, pipeline, or conditional
Parallel ExecutionbooleantrueAllow sub-agents to run in parallel when phases are independent
Failure Handlingstringretry_oncefail_fast, retry_once, retry_with_fallback, or continue_partial
Enable ReflectionbooleantrueReflect on results for quality improvement
Max Execution Timenumber1800Maximum execution time in seconds
Sub-Agent Timeoutnumber300Timeout per sub-agent in seconds
Temperaturenumber0.1Controls randomness in orchestration decisions
Thinking Budgetnumber10000Maximum tokens for thinking steps

StrategyBehavior
fail_fastStop on first error — use when partial results are unacceptable
retry_onceRetry failed sub-agent once with exponential backoff
retry_with_fallbackRetry, then route to an alternative sub-agent
continue_partialContinue despite failures and synthesize successful results only

  1. Add the Coordinator component to your canvas.

  2. Connect your specialized sub-agents as downstream components.

  3. Set the coordination strategy appropriate for your workflow (sequential for dependent tasks, parallel for independent ones).

  4. Connect the Coordinator output to an Interact component to return results to the user.


  • Keep sub-agents focused — each sub-agent should have a single, clear purpose
  • Write accurate sub-agent descriptions — the Coordinator uses them to route queries correctly
  • Avoid deep nesting — coordinate sub-agents from a Coordinator, not from other Coordinators
  • Use parallel execution when phases have no dependencies to improve response time
  • Set appropriate timeouts — balance responsiveness with task complexity

Sub-agents not receiving conversation history

  • Symptom: Follow-up questions fail; sub-agents lack context.
  • Solution: Verify history is being copied to the external canvas before sub-agent execution.

LLM token limit exceeded

  • Symptom: Query reformulation fails with a token limit error.
  • Solution: Reduce the context size passed to the reformulation step or adjust the truncation token limit.

Sub-agent timeout

  • Symptom: TimeoutError during sub-agent execution.
  • Solution: Increase sub_agent_timeout in the Coordinator configuration, or optimize the sub-agent’s performance.

Incorrect routing

  • Symptom: Queries are sent to the wrong sub-agent.
  • Solution: Review and improve sub-agent descriptions — they are the primary signal used for routing decisions.