Skip to main content

Description

Subgraphs are reusable components that can be referenced in larger workflows. They allow you to define common patterns once and use them multiple times, improving maintainability and reducing duplication.

Creating Subgraphs

Define subgraphs at the same level as the main graph with their own inputs, outputs, and nodes:

Using Subgraphs

Reference subgraphs using the subgraph: prefix in the type field:

Subgraph Reference Syntax

Features

Example: Multiple Subgraph Calls