Skip to content
RING
Launch Studio

Workflow schema

A workflow is one JSON document with the schema id ring.workflow/1. The Studio writes it, Export downloads it, Import reads it, and the server validates it again before every run. Unknown keys are rejected at every level.

Shape

{
  "schema": "ring.workflow/1",
  "id": "wf_k3n8x0q2a7bd",
  "name": "Research Brief",
  "description": "Reads the pages you list and assembles a cited brief.",
  "budget": { "maxUsd": 0.5 },
  "steps": [
    {
      "id": "s_urls",
      "skill": "text_input",
      "label": "Source URLs",
      "config": { "value": "https://example.org/a", "required": true, "hint": "" },
      "inputs": {}
    },
    {
      "id": "s_read",
      "skill": "url_reader",
      "label": "Read sources",
      "config": { "maxUrls": 5, "maxCharsPerPage": 12000 },
      "inputs": { "urls": { "kind": "ref", "step": "s_urls", "output": "text" } }
    }
  ]
}
FieldTypeRules
schemastringExactly ring.workflow/1.
idstring3 to 48 letters, digits, dashes or underscores.
namestring1 to 80 characters.
descriptionstringUp to 400 characters.
budget.maxUsdnumber0 to 25. The most a run may count against AI calls.
stepsarrayUp to 12 steps. Order is execution order.

A step:

FieldTypeRules
idstringUnique within the workflow.
skillstringA skill id: text_input, url_reader, feed_reader, dedupe, token_reader, summarizer, extractor, condition_gate, coverage_check, report_formatter.
labelstringUp to 60 characters.
configobjectThe skill's settings. Validated by that skill's own schema; missing keys take their defaults.
inputsobjectOne binding per input port.

A binding is one of:

{ "kind": "ref", "step": "s_read", "output": "documents" }
{ "kind": "literal", "value": "typed text" }

Why it is an ordered list

Version one runs steps one after another. A reference may only point at a step that appears earlier in the list. That single rule makes every workflow acyclic by construction, so there is no graph to analyse and no cycle to detect at run time. Branching is expressed with Condition Gates that stop the workflow or skip the following steps.

A definition cannot carry code. Skills are chosen by id from a fixed registry, settings are plain values checked against a schema, and a gate's optional path is a property lookup, never an expression.

Validation

validateDefinition reports errors and warnings. A workflow with errors can still be saved as a draft and exported; it cannot run or be published.

Errors:

  • no steps, more than 12 steps, duplicate step ids
  • an unknown skill, or a planned skill that cannot run yet
  • settings that do not match the skill's schema (unknown keys, out-of-range values)
  • a required input that is not mapped, or a typed value where only a mapping is allowed
  • a reference to a missing step or output, or to a step that runs later
  • incompatible types between an output and the input it feeds
  • a required Text Input that is empty
  • typed-in text that adds up to more than 60,000 characters
  • a budget below 0 or above 25, or a budget of 0 with AI steps
  • a step whose provider is not available on this server (only when validating against a server)

Warnings: no Final Report Formatter, or a gate set to skip more steps than follow it.

Limits

LimitValue
Steps per workflow12
One typed value20,000 characters
All typed text of a workflow60,000 characters
Definition size200 KB
Pages or feeds per retrieval step5
Bytes read per page or feed1.5 MB
Time per fetched page12 seconds
Redirects followed4
Maximum budget25 USD

Versions

Running or publishing a workflow freezes its definition as a version: an immutable copy, identified by a hash of its canonical JSON and numbered per workflow. A run keeps the version it executed, and a listing points at exactly one version. Editing a draft never changes a version.