> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemmodeler/flowcharts/sub-flowchart.md).

# Sub-flowchart

![](/files/FDE7gU5UWOHxnGlKqOSM)

A sub-flowchart makes it possible to use a flowchart in a flowchart. When the sub-flowchart node in a flowchart is reached, the flowchart that is defined as sub-flowchart will start. Any flowchart can be used as a sub-flowchart. This allows you to create and use flowcharts as reusable functions that can be used in multiple other flowcharts.

When you drag and drop a flowchart node from the toolbar to the canvas, WEM shows a popup window that allowes you to select an existing flowchart to be added as a sub-flowchart. It is also possible to drag and drop a flowchart directly from the flowchart tab to the canvas.

### Properties

A sub-flowchart node has no properties. The property panel on the right does provide some information on the name of the flowchart and which exits it contains.

Sub-flowcharts can have multiple exits. Every End node in a (sub-)flowchart is also an exit of that (sub-)flowchart.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wem.io/platform/wemmodeler/flowcharts/sub-flowchart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
