Org Chart Builder
The Org Chart Builder provides a visual interface for designing agent hierarchies and team structures.
Overview
Agent hierarchies define:
- Parent-child relationships between agents
- Escalation paths
- Team memberships
- Reporting structures
Using the Org Chart
Viewing the Hierarchy
- Open Studio from the top bar
- Select the Org Chart tab
- View the visual tree of agents
Adding Agents to Hierarchy
- Click on an agent node
- Select "Add Child Agent"
- Choose from existing agents or create new
Setting Parent Relationships
// Set an agent's parent
await client.agents.update('agent-child', {
parentAgentId: 'agent-parent'
});
Removing from Hierarchy
// Remove parent relationship
await client.agents.update('agent-child', {
parentAgentId: null
});
Hierarchy Levels
CEO Agent (Top Level)
├── Department Head A
│ ├── Team Lead 1
│ │ ├── Agent 1.1
│ │ └── Agent 1.2
│ └── Team Lead 2
│ └── Agent 2.1
└── Department Head B
└── Team Lead 3
Team Structures
Agents can belong to teams independently of hierarchy:
// Add agent to team
await client.teams.addMember('team-123', {
agentId: 'agent-456',
role: 'member'
});
Best Practices
- Keep hierarchies shallow: 3-4 levels maximum
- Clear escalation paths: Each agent should know its parent
- Team overlap: Agents can be in multiple teams
- Document relationships: Add notes explaining why agents are connected
Next: Learn about Prompt Engineering for configuring agent behavior.