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

# Flow

> Call another flow from inside your own

<div
  style={{
position: "relative",
paddingBottom: "70.58823529411764%",
height: 0,
}}
>
  <iframe
    src="https://www.loom.com/embed/379d561fd982489b8cd200051dbc350d?sid=8c739f33-28eb-4d51-9f0e-a20805306e2b"
    frameborder="0"
    webkitallowfullscreen
    mozallowfullscreen
    allowfullscreen
    style={{
  position: "absolute",
  top: 0,
  left: 0,
  width: "100%",
  height: "100%",
}}
  />
</div>

## What does it do?

Flows let you call another flow from inside your own. This can be useful for breaking up your WordApp into smaller,
composable parts, or for reusing common patterns across multiple WordApps. Flows also give you deeper control over
the context window, as the contents produced in intermediate steps of a subflow are not visible to the AI model of the
parent flow.

<img src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/nodes/flow/flow-editor.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=4f268742074e3ac2a1c103e05dac268a" alt="Flows in the Editor" width="2974" height="1086" data-path="images/nodes/flow/flow-editor.png" />

## How do I use it?

To create a flow, type `/flow` in the editor, and hit `Enter`. You'll be prompted to select which flow you want to call
from your existing flows, and then to provide the inputs for that flow.

<Frame>
  <img src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/nodes/flow/flow-sidebar.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=1788da1fb44501f87406b11068a8a17c" alt="Flows in the Sidebar" width="1486" height="1920" data-path="images/nodes/flow/flow-sidebar.png" />
</Frame>

### Options

When you create a flow, you'll see a number of options in the sidebar. Here's what they mean:

#### Flow

The flow you want to call. You can select from any of the flows in the current project.

#### Inputs

The inputs you want to pass to the flow. These can be any of the [inputs](/nodes/input) available in the current flow,
or a [@mentions](/nodes/mention) from the current flow.

### Outputs

Flows output all the variables generated by the flow. These can be referenced in the parent flow using a
[@mention](/nodes/mention) with the name of the flow, followed by a dot and the name of the variable.
