# Sub Flow

Source: https://help.channelautomation.com/flow-builder/sub-flow

- [1 Create Sub Flow](#create-sub-flow)
- [2 Move Steps to Sub Flow](#move-steps-to-sub-flow)
- [3 Call Sub Flow](#call-sub-flow)
 

---

Same as "Canvas", "Sub Flow" can also help with step organization. "Canvas" organizes steps in a specific subflow while "Sub Flow" organizes steps in the whole chatbot/flow.

## Create Sub Flow

![](https://cdn.eniston.com/bases/b65dacaf-ae39-4733-871d-f10cfe13378f/attachments/inked6c1873a1-d2ef-44da-8e20-4190d09dc608_1677773509.jpg)

Go "Flows" from the sidebar, click "+ New Sub Flow", choose a flow type, give a name and save.

| **Flow Type** | **Description** |
|---|---|
| Normal Subflow | Varies in channels, basic subflow |
| Workflow | work at the backend without influencing the front end task |
| Function Flow | perform repetitive tasks |

![](https://cdn.eniston.com/bases/b65dacaf-ae39-4733-871d-f10cfe13378f/attachments/ddd77801-1d73-4021-9a03-ecc53b9c0801_1677773607.png)

Click on the subflow to enter and start editing it. For more operations, click on the 3-dots icon. The **Sub Flow Ns** is a unique subflow ID in the chatbot.

Folders are used to organize subflows.

## Move Steps to Sub Flow

To move a step or multiple steps to another subflow, select the steps first, then you can either

- use the **Move to Subflow** button in the editing pannel, or
- copy and paste them
 

To select multiple steps, hold the **Shift** key, click and drag to cover the steps.

![](https://cdn.eniston.com/bases/b65dacaf-ae39-4733-871d-f10cfe13378f/attachments/07f9a85f-9a0f-4d8b-ae15-3e1364935805_1677773798.png)

Alternatively, hold **ctrl** key and click steps one by one:

![](blob:https://uchat-com-au.atlassian.net/3f627b80-ad31-4718-8310-82740d552900#media-blob-url=true&id=00567b55-2b50-46c5-9eec-d095c768e5dc&collection=contentId-670171211&contextId=670171211&mimeType=image%2Fpng&name=image-20220705-235659.png&size=83621&height=890&width=1649&alt=)

![](https://cdn.eniston.com/bases/b65dacaf-ae39-4733-871d-f10cfe13378f/attachments/3f627b80-ad31-4718-8310-82740d552900_1677773836.png)

 

After selecting multiple steps, editing panel shows. "Select sub flow", then click "Move to sub flow".

 

Note - You will need to select at least 2 steps to create a canvas or move them to other sub flows. So if you have only 1 step to move or put in a canvas, try adding a temporary step to help and discard it after that.

![](https://cdn.eniston.com/bases/b65dacaf-ae39-4733-871d-f10cfe13378f/attachments/43ea6c86-611f-4ad1-af3b-86f4f1564413_1677773880.png)

 

Note - If you find yourself unable to click "Move to sub flow" after choosing a sub flow, perhaps you included the green **Start Step** in your selection. Because the green start point of any subflow can't be moved to other subflows. You can solve this issue by de-selecting the green start point.

To copy and paste, use **Ctrl + C** to copy the selected steps, then go to the destination subflow, use **Ctrl + V** to paste there.

 

## Call Sub Flow

After creating subflows, you can then call a subflow via:

- Goto Step
- Keyword
- Sequence
- Broadcast
- Facebook Widget
- Comment Growth Tool
- Triggers
- Live Chat
- Menu Items
- Inbound Webhooks
- API call
 
 

 

 
