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

# Sub Flows

> Run another flow as a reusable subroutine

You can compose flows by calling one from another. Instead of duplicating the same lookup, branch, or message sequence across multiple graphs, build it once as a flow and invoke it wherever you need it.

The called flow runs as a subroutine. Variables you pass in are available inside it, and variables it sets come back to the caller when it finishes. A flow cannot call itself. If you need to repeat a process, have a parent flow call the repeatable flow, rather than having the flow invoke itself.

Invoke a flow with the [Run Sub Flow](https://docs.vatel.ai/configure/editor/sub-flow.md) node. It is available on the main conversation flow and inside any other flow. The node page covers which graph it runs, the variables you pass in, and what comes back when the sub flow finishes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.