> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SubgraphNode

> Subgraph node that represents a compiled subgraph. This node allows you to execute another graph as a component within the current graph, enabling modular and reusable graph architectures.

## Input

**Type:** `any`

any - The data type that SubgraphNode accepts as input

## Output

**Type:** `any`

any - The data type that SubgraphNode outputs

## Examples

```typescript theme={"system"}
const subgraphNode = new SubgraphNode({
id: 'intent-processing-subgraph',
parameters: {
confidence_threshold: 0.8,
max_intents: 5,
fallback_enabled: true
}
});
```

## Constructors

* [constructor](#constructor)

## Interfaces

* [SubgraphNodeProps](#subgraphnodeprops)

***

## Constructors

### constructor

```typescript theme={"system"}
new SubgraphNode(props: SubgraphNodeProps): SubgraphNode
```

Creates a new SubgraphNode instance.

#### Parameters

<ParamField body="props" type="SubgraphNodeProps" required>
  Configuration for the subgraph node.
</ParamField>

#### Returns

`SubgraphNode`

## Interfaces

### SubgraphNodeProps

Configuration interface for `SubgraphNode` creation.

#### Properties

**subgraphId**: `string`

ID of the subgraph to reference

**parameters**?: `{ [k: string]: string | number | boolean; }`

Parameters to pass to the subgraph
