Skip to main content
Complete reference for ensemble, agent, and component YAML files.
Prefer TypeScript? See the TypeScript API Reference for programmatic ensemble creation with full type safety.

Ensemble Schema

Agent Schema

Component Schema

Trigger Types

Ensembles can be invoked via multiple trigger mechanisms. Each trigger type has specific configuration fields.

HTTP Trigger

Expose ensembles as HTTP endpoints with support for single or multiple paths.

Multi-Path HTTP

Define multiple paths with different methods in a single trigger:

Webhook Trigger

Handle incoming webhooks from external services.

MCP Trigger

Expose ensemble as an MCP (Model Context Protocol) tool for AI agents.

Email Trigger

Route emails to ensembles for processing.

Queue Trigger

Process messages from queues.

Cron Trigger

Schedule ensemble execution at specific times.

Build Trigger (NEW)

Execute ensemble at build time for static generation.
Use Cases:
  • Generate OpenAPI documentation
  • Pre-render static pages
  • Build search indexes
  • Generate sitemap files
CLI Usage:

CLI Trigger (NEW)

Create custom CLI commands for development and operations.
Access Options in Flow:
CLI Usage:
Option Types:
  • string - Text value
  • number - Numeric value
  • boolean - True/false flag
  • array - Multiple values

Expression Syntax

Variable Access

Array Indexing

Nullish Coalescing (??)

Returns the first value that is not null or undefined:

Falsy Coalescing (||)

Returns the first truthy value (catches "", 0, false, null, undefined):

Ternary Conditionals (?:)

Boolean Negation (!)

Conditionals

Filter Chains

Functions

Operator Precedence

When combining operators, they’re evaluated in this order:
  1. Ternary (?:) - evaluated first
  2. Nullish coalescing (??) - null/undefined only
  3. Falsy coalescing (||) - all falsy values
  4. Filters (|) - transformation chains

Operation-Specific Config

think

code

storage

http

tools

email

sms

html

pdf

page

Cache Configuration

Example:

Retry Configuration

State Configuration

Condition Expressions

Output Definitions

Output Format

The format field in the output block controls response serialization and Content-Type headers. This is the recommended approach for non-JSON responses.

Format Types

Simple Format

Format with Extract

Use extract to specify which field from the body should be serialized:

Format Examples

CSV Export:
YAML Config:
iCalendar Event:
RSS Feed:

API Execution Configuration

Control which agents and ensembles can be executed via the Execute API (/api/v1/execute/agent/* and /api/v1/execute/ensemble/*).

Project-Level Configuration

In conductor.config.ts:

Agent/Ensemble-Level Configuration

Use apiExecutable to control individual agent or ensemble access:

Behavior Matrix

When requireExplicit: true, agents/ensembles must explicitly opt-in to API execution. This is recommended for production environments where you want fine-grained control over which workflows are externally accessible.

Examples

Complete Ensemble

Next Steps

TypeScript API

TypeScript API reference

CLI Commands

Command line reference

Operations

Operation details

Starter Kit

Pre-built agents