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
/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:-
Start your Conductor dev server:
-
Visit the docs:
-
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.
- 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).
- Build trigger for static site generation
- CLI trigger for manual generation
- Cron trigger for scheduled updates
- Multiple output format support
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:
OpenAPI Generation
The docs agent automatically generates OpenAPI 3.1.0 specifications by introspecting your agents and ensembles.Generated Endpoints
Ensemble Execution:Folder-Based Organization
The OpenAPI spec automatically organizes endpoints by folder structure:Security Schemes
Two authentication methods are documented:Example OpenAPI Output
UI Options
The docs agent supports 5 different OpenAPI UI renderers. Configure via theui config option:
Stoplight Elements (Default)
Modern, clean UI with sidebar navigation.- Sidebar navigation
- Interactive try-it console
- Code samples in multiple languages
- Responsive design
@stoplight/elements
Redoc
Documentation-focused renderer with beautiful typography.- Three-column layout
- Deep linking
- Search functionality
- Print-friendly
cdn.redoc.ly/redoc
Swagger UI
Classic, battle-tested API explorer.- Interactive API testing
- Authorization support
- Model schema viewer
- Request validation
unpkg.com/swagger-ui-dist
Scalar
Modern, minimalist UI with dark mode.- Beautiful design
- Dark mode support
- Fast rendering
- Code generation
cdn.jsdelivr.net/npm/@scalar/api-reference
RapiDoc
Lightweight, customizable renderer.- Highly customizable
- Three render styles
- Theme support
- Small bundle size
unpkg.com/rapidoc
Customization
Change UI Renderer
Edit theserve.yaml ensemble:
Customize Theme
Hide Navigation Items
Change Base Path
Add Custom Pages
Create markdown files and pass them to the agent:Customize Agent Metadata
The docs agent reads schemas from your agent YAML files:Brand Your Docs
Disable Caching
Authentication
By default, docs are public. To add authentication:Advanced Usage
Build-Time Generation
Generate static OpenAPI specs during build: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: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
404 on agent/ensemble pages
Agent/ensemble names must match exactly:Related Resources
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

