---
title: "Subgraph"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/workflows/subgraph/subgraph
markdown: https://docs.nodetool.ai/nodes/nodetool/workflows/subgraph/subgraph.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/workflows/subgraph/subgraph.md
---

# Subgraph

**Type:** `nodetool.workflows.subgraph.Subgraph`

**Namespace:** `nodetool.workflows.subgraph`

## Description

Execute an inline sub-graph as an isolated workflow. Inputs/outputs are derived from inner Input/Output nodes.

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| graph | `dict` |  | `{"nodes":[],"edges":[]}` |

## Outputs

_(none)_

## Related Nodes

Browse other nodes in the [nodetool.workflows.subgraph](./) namespace.
