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

# Edges

> Connect workflow nodes to define execution paths

Edges connect nodes in your workflow, defining the execution path from one step to another. Each edge has a source node, target node, and label.

## Edge labels

* **Default label**: "next" - used by most nodes
* **Custom labels**: Required for decide nodes to match condition labels
* **Unique labels**: Each outgoing edge from a node must have a unique label

## Node-specific edges

For function-mode DecideNodes, the condition labels are automatically provided to your function in the `available_edges` array, ensuring your function knows which edges can be taken.

## Validation rules

* Source and target node identifiers must exist in the workflow definition
* Exactly one Start node must be present and have at least one outgoing edge
* Node identifiers must be unique across the workflow
* Workflow must include at least one node
* Decide node edge labels must match condition labels exactly in both AI and function modes (otherwise execution cannot route)
