Ctrl AI

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:

  1. Go to Workflows > New
  2. Describe what the workflow should accomplish
  3. The AI finds matching units and chains them by typed I/O
  4. Review the proposed DAG and adjust as needed
  5. Save the workflow

Manual Composition

  1. Go to Workflows > New
  2. Select units from your library
  3. Define the execution order
  4. The composition engine validates type compatibility between units
  5. Save the workflow

How Composition Works

The composition engine uses forward-chaining to build a directed acyclic graph (DAG):

  1. Start with the query's typed variables as initial inputs
  2. Find all units whose input types match available variables
  3. Fire matching units, adding their outputs to the available variable pool
  4. 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.

On this page