Skip to content

Orchestrator Core Functions

The Stavily Orchestrator serves as the central nervous system of the platform, coordinating all automation activities through a set of core functions. These functions work together to provide a reliable, scalable, and secure automation platform.

Workflow Management

Orchestrates workflow lifecycle from creation to execution, including validation, scheduling, and state management.

Agent Fleet Management

Manages agent lifecycle, health monitoring, load balancing, and fleet-wide status reporting.

Plugin Registry & Distribution

Maintains centralized plugin repository with version management and secure distribution to agents.

  • Public API for agent communication
  • Private API for dashboard access
  • Authentication and authorization
  • Rate limiting and traffic management
graph TD
    A[Trigger Event] --> B[Event Processing]
    B --> C[Workflow Management]
    C --> D[Agent Fleet Service]
    D --> E[Select Available Agent]
    E --> F[Send Instruction via API]
    F --> G[Agent Executes Plugin]
    G --> H[Report Result]
    H --> I[Audit & Compliance Logging]
    I --> J[Workflow State Update]

    style B fill:#e1f5fe
    style C fill:#e1f5fe
    style D fill:#e1f5fe
    style I fill:#e1f5fe

The Orchestrator acts as the central coordinator, ensuring seamless workflow execution from trigger to completion.

sequenceDiagram
    participant Agent
    participant Orchestrator as Orchestrator

    Agent->>Orchestrator: Heartbeat
    Orchestrator->>Orchestrator: Process Health Data
    Orchestrator-->>Agent: Confirmation

    Note over Orchestrator: Central monitoring hub

The Orchestrator maintains constant awareness of agent health, enabling proactive management and issue resolution.

  • Fast API response times
  • Support for thousands of concurrent workflows
  • Frequent agent heartbeat monitoring
  • Quick plugin distribution
  • Comprehensive audit log retention

The Orchestrator integrates with multiple external systems:

  • Agents via secure API endpoints
  • Frontend dashboard through private API
  • Plugin repositories
  • External services via webhooks
  • Monitoring systems
  • Multi-layer authentication
  • Data encryption
  • High availability with failover
  • Compliance automation
  • Continuous monitoring and alerting