Composing Workflows
Compose units into auditable workflows using the canvas or AI assistant.
Workflows are named, versioned compositions of units that form complete auditable processes.
Creating a Workflow
AI-Assisted Composition
The fastest way to create a workflow:
- Go to Workflows > New
- Describe what the workflow should accomplish
- The AI finds matching units and chains them by typed I/O
- Review the proposed DAG and adjust as needed
- Save the workflow
Manual Composition
- Go to Workflows > New
- Select units from your library
- Define the execution order
- The composition engine validates type compatibility between units
- Save the workflow
How Composition Works
The composition engine uses forward-chaining to build a directed acyclic graph (DAG):
- Start with the query's typed variables as initial inputs
- Find all units whose input types match available variables
- Fire matching units, adding their outputs to the available variable pool
- Repeat until no more units can fire or all desired outputs are produced
The engine also considers:
- Trigger conditions — keyword matching to filter relevance
- Jurisdiction filtering — universal units + jurisdiction-specific units
- Domain hints — prefer same-domain units (but cross-domain is allowed)
Workflow Fast-Path
When an active workflow exists that covers ≥80% of a query's needs, the inference engine uses it directly instead of open composition. This is faster and more predictable for known processes.
Versioning
Every edit to a workflow creates a new version. Previous versions are preserved in the audit trail.