Skip to main content
Starter Kit - Ships with your template. You own it - modify freely.

Overview

The documentation feature provides a complete, self-hosted documentation system for your Conductor project. It automatically generates:
  • Landing page - Overview with project statistics
  • Agent documentation - Browse all agents with schemas and examples
  • Ensemble documentation - Explore workflows with triggers and flow steps
  • OpenAPI specification - Auto-generated API reference from your agents and ensembles
  • Interactive API viewer - Choose from 5 different UI renderers
  • Custom markdown pages - Add your own documentation pages
All documentation is served at /docs and updates automatically as you add or modify agents and ensembles.

Key Features

  • Zero configuration required - works out of the box
  • Multiple OpenAPI UI options (Stoplight, Redoc, Swagger, Scalar, RapiDoc)
  • Build-time generation for static deployments
  • CLI commands for docs generation
  • Customizable themes and branding
  • Folder-based API organization

Quick Start

The documentation system is pre-configured and ready to use:
  1. Start your Conductor dev server:
  2. Visit the docs:
  3. Explore the sections:
    • /docs - Landing page with overview
    • /docs/agents - List of all agents
    • /docs/agents/{name} - Agent detail pages
    • /docs/ensembles - List of all ensembles
    • /docs/ensembles/{name} - Ensemble detail pages
    • /docs/api - Interactive OpenAPI viewer
    • /docs/openapi.json - OpenAPI spec (JSON)
    • /docs/openapi.yaml - OpenAPI spec (YAML)

Ensembles

The documentation feature consists of two ensembles:

Serve Ensemble

File: ensembles/system/docs/serve.yaml Serves documentation pages via HTTP. Handles all /docs/* routes.
Key Features:
  • Multi-path HTTP trigger for all documentation routes
  • Conditional output blocks for HTML, JSON, YAML
  • Caching headers for performance
  • Public access (no authentication required)

Generate Ensemble

File: ensembles/system/docs/generate.yaml Generates static documentation artifacts (OpenAPI specs, HTML pages).
Key Features:
  • Build trigger for static site generation
  • CLI trigger for manual generation
  • Cron trigger for scheduled updates
  • Multiple output format support
Usage Examples:

Agent Reference

Docs Agent

File: agents/system/docs/docs.ts The core documentation generation agent. Handles all rendering and OpenAPI generation logic. Operation: code Actions: Input Schema:
Output Schema:
Configuration:
Default Configuration:

OpenAPI Generation

The docs agent automatically generates OpenAPI 3.1.0 specifications by introspecting your agents and ensembles.

Generated Endpoints

Ensemble Execution:
Agent Execution:
Discovery:

Folder-Based Organization

The OpenAPI spec automatically organizes endpoints by folder structure:
This creates a clean sidebar structure in the API viewer.

Security Schemes

Two authentication methods are documented:

Example OpenAPI Output

UI Options

The docs agent supports 5 different OpenAPI UI renderers. Configure via the ui config option:

Stoplight Elements (Default)

Modern, clean UI with sidebar navigation.
Features:
  • Sidebar navigation
  • Interactive try-it console
  • Code samples in multiple languages
  • Responsive design
CDN: @stoplight/elements

Redoc

Documentation-focused renderer with beautiful typography.
Features:
  • Three-column layout
  • Deep linking
  • Search functionality
  • Print-friendly
CDN: cdn.redoc.ly/redoc

Swagger UI

Classic, battle-tested API explorer.
Features:
  • Interactive API testing
  • Authorization support
  • Model schema viewer
  • Request validation
CDN: unpkg.com/swagger-ui-dist

Scalar

Modern, minimalist UI with dark mode.
Features:
  • Beautiful design
  • Dark mode support
  • Fast rendering
  • Code generation
CDN: cdn.jsdelivr.net/npm/@scalar/api-reference

RapiDoc

Lightweight, customizable renderer.
Features:
  • Highly customizable
  • Three render styles
  • Theme support
  • Small bundle size
CDN: unpkg.com/rapidoc

Customization

Change UI Renderer

Edit the serve.yaml ensemble:

Customize Theme

Hide Navigation Items

Change Base Path

Then update the trigger paths:

Add Custom Pages

Create markdown files and pass them to the agent:
Page Format:

Customize Agent Metadata

The docs agent reads schemas from your agent YAML files:

Brand Your Docs

Disable Caching

Or adjust TTL:

Authentication

By default, docs are public. To add authentication:

Advanced Usage

Build-Time Generation

Generate static OpenAPI specs during build:
Then serve the static file:

Scheduled Regeneration

Enable the cron trigger for periodic updates:

Export OpenAPI Spec

Programmatic Access

Integrate with External Tools

Use the generated OpenAPI spec with:
  • Postman - Import collections
  • Insomnia - API testing
  • API Gateway - Validation rules
  • Code Generators - Client SDKs
  • Mock Servers - Testing

Custom Agent Implementation

Fork the docs agent for custom logic:

Troubleshooting

Docs not loading

Check that the ensemble is valid:
Verify the trigger is registered:

OpenAPI spec is empty

Ensure agents have proper schemas:

UI not rendering

Check browser console for CDN errors. The UIs load from external CDNs:
  • Stoplight: unpkg.com/@stoplight/elements
  • Redoc: cdn.redoc.ly/redoc
  • Swagger: unpkg.com/swagger-ui-dist
  • Scalar: cdn.jsdelivr.net/npm/@scalar/api-reference
  • RapiDoc: unpkg.com/rapidoc
Ensure your environment can reach these CDNs.

404 on agent/ensemble pages

Agent/ensemble names must match exactly:
Check agent registration:

Redirects

URL shortening and redirect management

Health Check

System health monitoring endpoint

HTTP Operation

Making external HTTP requests

Storage Operation

KV and R2 storage access