Home

Workflow

A workflow is a directory containing a WORKFLOW.md file with YAML frontmatter and a Markdown body. The pipeline is defined as a Graphviz DOT digraph in the first `dot code block in the body. Additional Markdown content provides human-readable documentation for the workflow.

Workflows are discovered from .stencila/workflows/<name>/WORKFLOW.md. Each node in the DOT graph can reference an agent by name via the agent attribute; agents are resolved from workspace .stencila/agents/ and user-level ~/.config/stencila/agents/. Because workflows are typically shared (committed to a repository as part of a lab), while agents may be personal (user-level agents can encapsulate individual model preferences and provider configuration), this separation allows the same shared workflow to be executed with different agent configurations by different users. Agent definitions provide defaults for model, provider, system instructions, and tools, but explicit node attributes override them.

The DOT graph follows the Attractor specification: a strict subset of digraph syntax with typed attributes for node handlers, edge routing, retry policies, and human-in-the-loop gates.

Properties

The Workflow type has these properties:

NameDescriptionTypeInherited from
idThe identifier for this item.StringEntity
alternateNamesAlternate names (aliases) for the item.String*Thing
descriptionA description of the item.StringThing
identifiersAny kind of identifier for any kind of Thing.(PropertyValue | String)*Thing
imagesImages of the item.ImageObject*Thing
nameThe name of the workflow.String-
urlThe URL of the item.StringThing
workTypeThe type of CreativeWork (e.g. article, book, software application).CreativeWorkTypeCreativeWork
doiThe work's Digital Object Identifier (https://doi.org/).StringCreativeWork
aboutThe subject matter of the content.ThingVariant*CreativeWork
abstractA short description that summarizes a CreativeWork.Block*CreativeWork
authorsThe authors of the CreativeWork.Author*CreativeWork
provenanceA summary of the provenance of the content within the work.ProvenanceCount*CreativeWork
contributorsA secondary contributor to the CreativeWork.Author*CreativeWork
editorsPeople who edited the CreativeWork.Person*CreativeWork
maintainersThe maintainers of the CreativeWork.(Person | Organization)*CreativeWork
commentsComments about this creative work.Comment*CreativeWork
dateCreatedDate/time of creation.DateCreativeWork
dateReceivedDate/time that work was received.DateCreativeWork
dateAcceptedDate/time of acceptance.DateCreativeWork
dateModifiedDate/time of most recent modification.DateCreativeWork
datePublishedDate of first publication.DateCreativeWork
fundersPeople or organizations that funded the CreativeWork.(Person | Organization)*CreativeWork
fundedByGrants that funded the CreativeWork; reverse of fundedItems.(Grant | MonetaryGrant)*CreativeWork
genreGenre of the creative work, broadcast channel or group.String*CreativeWork
keywordsKeywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas.String*CreativeWork
isPartOfAn item or other CreativeWork that this CreativeWork is a part of.CreativeWorkVariantCreativeWork
licensesLicense documents that applies to this content, typically indicated by URL, but may be a CreativeWork itself.(CreativeWorkVariant | String)*CreativeWork
partsElements of the collection which can be a variety of different elements, such as Articles, Datatables, Tables and more.CreativeWorkVariant*CreativeWork
publisherA publisher of the CreativeWork.Person | OrganizationCreativeWork
bibliographyA bibliography of references which may be cited in the work.BibliographyCreativeWork
referencesReferences to other creative works, such as another publication, web page, scholarly article, etc.Reference*CreativeWork
textThe textual content of this creative work.TextCreativeWork
titleThe title of the creative work.Inline*CreativeWork
repositoryURL of the repository where the un-compiled, human readable source of the work is located.StringCreativeWork
pathThe file system path of the source of the work.StringCreativeWork
commitThe commit hash (or similar) of the source of the work.StringCreativeWork
versionThe version of the creative work.String | NumberCreativeWork
whenToUsePositive selection signals describing when this workflow should be used.String*-
whenNotToUseNegative selection signals describing when this workflow should not be used.String*-
frontmatterFrontmatter containing workflow metadata.String-
contentThe content of the workflow (Markdown body containing the DOT pipeline and documentation).Block*-
pipelineThe raw DOT source defining the pipeline digraph.String-
goalA fixed, predetermined high-level goal for the pipeline.String-
goalHintHint text displayed in user interfaces to guide the user to provide a specific goal.String-
overridesCSS-like rules for per-node agent overrides across the pipeline.String-
defaultMaxRetryGlobal retry ceiling for nodes that omit max_retries.Integer-
retryTargetNode ID to jump to if exit is reached with unsatisfied goal gates.String-
fallbackRetryTargetSecondary jump target if retryTarget is missing or invalid.String-
defaultFidelityDefault context fidelity mode for LLM sessions.String-

Related

The Workflow type is related to these types:

Bindings

The Workflow type is represented in:


This documentation was generated from Workflow.yaml by docs_types.rs.

© 2026 Stencila