← Back to Dashboard

Organization Chart

Visual hierarchy of all agents — reporting structure, status indicators, and interactive tree layout on a zoomable canvas.

Table of Contents

Overview

Non-technical summary: This page shows your AI agents organized like a company org chart — who reports to whom, who's online, and who's busy. Hover over any agent to see their details, and drag/zoom to explore large teams.

The Organization Chart renders a top-down tree layout of all agents in your organization. Each agent is a card node showing name, role, state, and activity badges. Edges (SVG curved paths) connect agents to their managers, forming a visual reporting hierarchy.

Key features:

How It Works

  1. Fetch data — Two API calls: /hierarchy/org-chart for hierarchy data, and /agents for avatars and metadata.
  2. Build tree — Agents are grouped by managerId. Agents without a manager (or with an unresolvable manager) become root nodes.
  3. External managers — Agents with managerType: 'external' are grouped under synthetic purple nodes representing human managers.
  4. Compute layout — A recursive algorithm calculates subtree widths, then positions nodes top-down with even spacing (220×72px nodes, 40px horizontal gap, 80px vertical gap).
  5. Render — SVG cubic Bézier curves for edges, HTML div cards for nodes, all on a zoomable/pannable canvas.
  6. Auto-fit — On first render, the canvas auto-zooms to fit all nodes in view.

Key Concepts

Agent States

StateColorMeaning
RunningGreenAgent is active and processing
StoppedGrayAgent is not running
ErrorRedAgent encountered an error
PausedAmberAgent is temporarily paused
DeployingCyanAgent is being deployed
ExternalPurpleHuman/external manager node

Manager Types

Canvas Interactions

ActionEffect
Hover on a nodeHighlights the full chain (ancestors + descendants), dims everything else. Shows detail tooltip.
Scroll wheelZoom in/out (15%–300%)
Click + drag backgroundPan the canvas
Fit buttonAuto-zoom to fit all nodes
Refresh buttonReload hierarchy data

Node Cards

Each agent node (220×72px) displays:

Summary Metrics

Below the toolbar, a compact metrics bar shows:

Hover Tooltip

Hovering over any node shows a fixed-position tooltip with:

External Managers

When agents have managerType: 'external' with a managerName and/or managerEmail, the system creates synthetic purple nodes representing human managers. These nodes:

Tip: External manager nodes let you visualize the complete reporting structure including human oversight, not just the AI-to-AI hierarchy.

Configuration & Setup

Setting Up the Hierarchy

The org chart automatically reflects agent configurations. To create hierarchy:

  1. Set managerId on agent config to point to another agent's ID for internal reporting
  2. Or set managerType: 'external' with externalManagerName and externalManagerEmail for human managers
  3. Agents without a manager appear as root nodes

Agent Avatars

Avatars are resolved from (in priority order):

  1. config.identity.avatar
  2. config.avatar
  3. config.persona.avatar

If none is set, a colored circle with the first letter of the agent's name is shown.

API Reference

EndpointMethodDescription
/hierarchy/org-chartGETFull hierarchy with nodes (agentId, name, role, state, managerId, subordinates, etc.)
/agentsGETAgent list with config (for avatar resolution)

Org Chart Node Fields

FieldTypeDescription
agentIdstringUnique agent identifier
namestringDisplay name
rolestringAgent role description
statestringrunning, stopped, error, paused, deploying
managerIdstring?ID of parent agent
managerTypestringinternal, external, or none
subordinateCountnumberNumber of direct reports
isManagerbooleanWhether this agent manages others
activeTasksnumberCurrent active tasks
errorsTodaynumberErrors in the last 24h
clockedInbooleanWorkforce clock status

Best Practices

Troubleshooting

IssueSolution
Chart shows "No Organization Hierarchy Yet"Add agents and set managerId to create reporting relationships. If agents exist but hierarchy endpoint returns null, the chart falls back to a flat list from /agents.
All agents at root levelNo managerId set on any agent. Configure manager relationships in agent settings.
External manager not showingSet managerType: 'external' with externalManagerName on the agent config. The email is optional but helps deduplicate.
Avatars not showingSet config.identity.avatar to a valid image URL on the agent.
Canvas blank after loadingClick "Fit" to auto-zoom. The nodes may be outside the visible area.
Nodes overlappingThe tree layout should prevent this. If it happens, check for circular manager references (Agent A manages B, B manages A).
AgenticMail Enterprise Documentation Report an issue