Skip to main content

Overview

Processes are execution orchestration patterns in OrbitAI that determine how tasks are assigned to agents and in what order they execute. The process type fundamentally shapes how work flows through your agent system, from simple sequential chains to complex hierarchical coordination.

Sequential

Tasks execute one after another in order

Hierarchical

Manager coordinates and delegates tasks

Flow-Based

Dependency-driven execution with parallelization

Context Flow

Information flows between tasks

Dynamic Assignment

Intelligent agent selection per task

Error Handling

Configurable failure strategies

Key Characteristics

Processes provide predictable execution patterns with well-defined task ordering and agent assignment strategies.
Each process type manages how context and results flow between tasks, enabling tasks to build upon previous outputs.
Processes determine how multiple agents work together, from simple turn-taking to sophisticated delegation patterns.
Different process types offer different scalability characteristics, from simple sequential execution to complex parallel workflows.

Process Types

OrbitAI supports multiple process types, each suited for different workflow patterns:

Sequential Process

The simplest and most common process type where tasks execute one after another.
Sequential Process executes tasks in a strict linear order, with each task completing before the next begins.
Execution Flow:
Sequential is the default process type and works well for most workflows where tasks have clear dependencies.

Hierarchical Process

Advanced process type where a manager agent coordinates and delegates tasks to worker agents.
Hierarchical Process introduces a manager-worker pattern where a designated manager agent:
  • Analyzes the overall workflow
  • Decides task assignment strategies
  • Delegates tasks to appropriate worker agents
  • Coordinates execution and monitors progress
Execution Flow:
Hierarchical process requires a manager agent with allowDelegation: true configured.

Flow-Based Process

Advanced dependency-driven execution with support for parallel task execution.
Flow-Based Process uses a TaskFlow structure to define complex workflows with:
  • Explicit task dependencies
  • Parallel execution where possible
  • Topological sorting for optimal ordering
  • Conditional execution
  • Failure handling strategies
Execution Flow:

Task Dependencies and Processes

How Processes Affect Task Execution

Sequential Process Behavior

Task Dependencies:
  • Tasks execute in array order
  • Each task waits for previous to complete
  • Context automatically includes all previous outputs
Agent Assignment:
Context Flow:
Failure Handling:
  • If any task fails, entire workflow stops
  • No subsequent tasks execute
  • Error propagates to orbit result

Context Interpolation

All process types support context variable interpolation:
Reference previous task outputs in descriptions:
Variable Format:
  • {task_0_output} - First task’s output
  • {task_1_output} - Second task’s output
  • {task_N_output} - Nth task’s output
Task indices are 0-based, matching array indexing in Swift.
Use orbit-level inputs in any task:
Tasks automatically receive agent context:

Best Practices

Process Selection

Use Sequential For

Simple Linear Workflows
  • Clear dependencies
  • Each step builds on previous
  • Easy to understand and debug

Use Hierarchical For

Complex Coordination
  • Many agents with different skills
  • Dynamic task assignment needed
  • Quality validation required
  • Load balancing important

Use Flow-Based For

Parallel Opportunities
  • Independent tasks can run simultaneously
  • Complex dependency graphs
  • Performance critical workflows
  • Build systems and pipelines

Consider Hybrid

Nested Workflows
  • Sequential top-level
  • Hierarchical within phases
  • Flow-based for parallelizable sections
Break complex workflows into smaller orbits and chain them.

Context Management

1

Explicit Context References

Always declare context dependencies:
Without explicit context declaration, the task may not have access to previous outputs in hierarchical and flow-based processes.
2

Minimize Context Size

Keep context concise for better performance:
3

Structure Outputs

Use structured outputs for easier downstream processing:

Performance Optimization

Maximize parallel execution opportunities:
Reuse agents efficiently:
Set appropriate concurrency limits:
Configure appropriate failure handling:

Error Handling

Troubleshooting

Symptoms: Tasks run in unexpected sequenceCauses:
  • Using hierarchical process (manager decides order)
  • Missing dependency declarations in flow-based
  • Context references without proper dependencies
Solutions:
Symptoms: {task_N_output} appears literally in outputCauses:
  • Missing context declaration
  • Wrong task index
  • Task not executed yet (dependency issue)
Solutions:
Symptoms: Manager doesn’t assign tasks to workersCauses:
  • Manager missing allowDelegation: true
  • Manager lacks delegation tools
  • Poor manager context/prompting
Solutions:
Symptoms: “Circular dependency detected” errorCauses:
  • Task A depends on Task B depends on Task A
  • Indirect circular dependencies through multiple tasks
Solutions:
Symptoms: Flow-based not faster than sequentialCauses:
  • Too many dependencies (tasks can’t parallelize)
  • Low maxConcurrentTasks setting
  • API rate limits
  • Tasks too small (overhead > benefit)
Solutions:
Symptoms: Token limit errors with many tasksCauses:
  • Accumulating context from all previous tasks
  • Large task outputs
  • Many tasks in workflow
Solutions:

Process Comparison

Decision Matrix

When to Use Each

Sequential

Choose when:
  • Tasks have clear linear flow
  • Each step builds on previous
  • Simplicity is important
  • Debugging ease matters
  • Team is learning OrbitAI
Examples:
  • Content creation
  • Report generation
  • Data processing chains

Hierarchical

Choose when:
  • Many specialized agents
  • Dynamic task assignment needed
  • Quality validation required
  • Load balancing important
  • Complex coordination
  • Agent expertise varies greatly
Examples:
  • Software development projects
  • Customer support routing
  • Research coordination

Flow-Based

Choose when:
  • Independent tasks exist
  • Performance is critical
  • Complex dependencies
  • Parallel execution possible
  • Building pipelines
  • Need fine control
Examples:
  • ETL pipelines
  • Build systems
  • Test suites
  • Data aggregation

Next Steps

Tasks

Learn about task configuration

Agents

Configure agents for processes

Orbits

Create complete workflows

Examples

See process examples
For additional support, consult the GitHub Discussions or check the Issue Tracker.