Skip to main content
The Component Call node runs a component: a group of nodes defined once and called from any workflow. It passes values in as inputs and writes the component’s outputs to places you choose. The component runs in its own scope and sees only the inputs you pass.

Parameters

component

A bare {{expr}} in input_mappings keeps its type, so an array stays an array.

Examples

Call a local component with a credential

USER is a credential input, so its value is the vault alias USER.

Call a workspace component pinned to a version

The workflow lists the workspace component in component_imports:

A local component definition

Local components live in the workflow’s local_components. A component has a Start, an End, its nodes and edges, and optional input_schema and output_schema:
The call maps the output back: "output_mappings": { "recipes": "context.recipes" }.

Reading inputs and writing outputs

Inside a component:
  • Read an input with {{context.component_inputs.<name>}}.
  • Read a credential input with {{$lookup(context.inputs, context.component_inputs.<name>).USER_NAME}}.
  • Write an output with a Transform SET to context.component_outputs.<name>.
Data written anywhere else inside the component stays inside it and is discarded when the call returns.

Declaring inputs

A component’s input_schema is a JSON Schema object. Mark an input that takes a vault alias with "x-cc-type": "credential", and list required inputs in required:

Notes

  • A component cannot call itself, directly or through another component.
  • A credential cannot be returned as an output or passed as a plain value. A component can only type it into a page.
  • A call that cannot run fails with SERVER-E0007 and a reason in the error details.
  • A call node has no selector, no run_if, and no execution type.