You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an example, imagine you have an Execute Workflow node in **Workflow A**. The Execute Workflow node calls another workflow called **Workflow B**:
1
+
As an example, imagine you have an Execute Sub-workflow node in **Workflow A**. The Execute Sub-workflow node calls another workflow called **Workflow B**:
2
2
3
-
1. The Execute Workflow node passes the data to the Execute Workflow Trigger node of **Workflow B**.
4
-
2. The last node of **Workflow B** sends the data back to the Execute Workflow node in **Workflow A**.
3
+
1. The Execute Sub-workflow node passes the data to the Execute Sub-workflow Trigger node (titled "When executed by another node" in the canvas) of **Workflow B**.
4
+
2. The last node of **Workflow B** sends the data back to the Execute Sub-workflow node in **Workflow A**.
Copy file name to clipboardExpand all lines: _snippets/flow-logic/subworkflow-usage.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@
4
4
1. Create a new workflow.
5
5
6
6
/// note | Create sub-workflows from existing workflows
7
-
You can optionally create a sub-workflow directly from an existing parent workflow using the [Execute Workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) node. In the node, select the **Database** and **From list** options and select **Create a sub-workflow** in the list.
7
+
You can optionally create a sub-workflow directly from an existing parent workflow using the [Execute Sub-workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) node. In the node, select the **Database** and **From list** options and select **Create a sub-workflow** in the list.
8
8
///
9
9
10
10
1.**Optional**: configure which workflows can call the sub-workflow:
11
11
1. Select the **Options** <span class="inline-image">{.off-glb}</span> menu > **Settings**. n8n opens the **Workflow settings** modal.
12
12
1. Change the **This workflow can be called by** setting. Refer to [Workflow settings](/workflows/settings/) for more information on configuring your workflows.
13
-
1. Add the **Execute Workflow Trigger** node.
13
+
1. Add the **Execute Sub-workflow**trigger node (if you are searching under trigger nodes, this is also titled **When Executed by Another Workflow**).
14
14
1. Set the **Input data mode** to choose how you will define the sub-workflow's input data:
15
15
* **Define using fields below**: Choose this mode to define individual input names and data types that the calling workflow needs to provide.
16
16
* **Define using JSON example**: Choose this mode to provide an example JSON object that demonstrates the expected input items and their types.
@@ -26,7 +26,7 @@ This requires the ability to [load data from previous executions](/workflows/exe
26
26
27
27
If you want to load data into your sub-workflow to use while building it:
28
28
29
-
1. Create the sub-workflow and add the **Execute Workflow Trigger**.
29
+
1. Create the sub-workflow and add the **Execute Sub-workflow Trigger**.
30
30
1. Set the node's **Input data mode** to **Accept all data** or define the input items using fields or JSON if they're already known.
31
31
1. In the sub-workflow [settings](/workflows/settings/), set **Save successful production executions** to **Save**.
32
32
1. Skip ahead to setting up the parent workflow, and run it.
@@ -40,8 +40,8 @@ You can now pin example data in the trigger node, enabling you to work with real
40
40
### Call the sub-workflow
41
41
42
42
1. Open the workflow where you want to call the sub-workflow.
43
-
1. Add the **Execute Workflow** node.
44
-
1. In the **Execute Workflow** node, set the sub-workflow you want to call. You can choose to call the workflow by ID, load a workflow from a local file, add workflow JSON as a parameter in the node, or target a workflow by URL.
43
+
1. Add the **Execute Sub-workflow** node.
44
+
1. In the **Execute Sub-workflow** node, set the sub-workflow you want to call. You can choose to call the workflow by ID, load a workflow from a local file, add workflow JSON as a parameter in the node, or target a workflow by URL.
45
45
46
46
/// note | Find your workflow ID
47
47
Your sub-workflow's ID is the alphanumeric string at the end of its URL.
@@ -52,4 +52,4 @@ You can now pin example data in the trigger node, enabling you to work with real
52
52
53
53
When your workflow executes, it will send data to the sub-workflow, and run it.
54
54
55
-
You can follow the execution flow from the parent workflow to the sub-workflow by opening the Execute Workflow node and selecting the **View sub-execution** link. Likewise, the sub-workflow's execution contains a link back to the parent workflow's execution to navigate in the other direction.
55
+
You can follow the execution flow from the parent workflow to the sub-workflow by opening the Execute Sub-workflow node and selecting the **View sub-execution** link. Likewise, the sub-workflow's execution contains a link back to the parent workflow's execution to navigate in the other direction.
Copy file name to clipboardExpand all lines: _snippets/integrations/builtin/cluster-nodes/langchain-sub-nodes/workflow-values.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,6 @@ Set values to pass to the workflow you're calling.
3
3
These values appear in the output data of the trigger node in the workflow you call. You can access these values in expressions in the workflow. For example, if you have:
4
4
5
5
***Workflow Values** with a **Name** of `myCustomValue`
6
-
* A workflow with an Execute Workflow Trigger node as its trigger
6
+
* A workflow with an Execute Sub-workflow Trigger node as its trigger
7
7
8
-
The expression to access the value of `myCustomValue` is `{{ $('Execute Workflow Trigger').item.json.myCustomValue }}`.
8
+
The expression to access the value of `myCustomValue` is `{{ $('Execute Sub-workflow Trigger').item.json.myCustomValue }}`.
Copy file name to clipboardExpand all lines: docs/courses/level-one/chapter-5/chapter-5.8.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Access these settings by selecting the three dots in the upper right corner of t
45
45
In the **Workflow Settings** window you can configure the following settings:
46
46
47
47
-[**Error Workflow**](/flow-logic/error-handling/): A workflow to run in case the execution of the current workflow fails.
48
-
-**This workflow can be called by**: Workflows that are allowed to call this workflow using the [Execute Workflow node](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/).
48
+
-**This workflow can be called by**: Workflows that are allowed to call this workflow using the [Execute Sub-workflow node](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/).
49
49
-**Timezone**: The timezone to use in the current workflow. If not set, the global timezone (by default "New York") is used. This setting is particularly important for the [Schedule Trigger node](/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger/), as you want to make sure that the workflow gets executed at the right time.
50
50
-**Save failed production executions**: If the Execution data of the workflow should be saved when it fails. Default is to save.
51
51
-**Save successful production executions**: If the Execution data of the workflow should be saved when it succeeds. Default is to save.
Copy file name to clipboardExpand all lines: docs/flow-logic/subworkflows.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: Call workflows from other workflows, and split large workflows into
6
6
7
7
# Sub-workflows
8
8
9
-
You can call one workflow from another workflow. This allows you to build modular, microservice-like workflows. It can also help if your workflow grows large enough to encounter [memory issues](/hosting/scaling/memory-errors/). Creating sub-workflows uses the [Execute Workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) and [Execute Workflow Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger/) nodes.
9
+
You can call one workflow from another workflow. This allows you to build modular, microservice-like workflows. It can also help if your workflow grows large enough to encounter [memory issues](/hosting/scaling/memory-errors/). Creating sub-workflows uses the [Execute Workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) and [Execute Sub-workflow Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger/) nodes.
description: Documentation for the Execute Workflow node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.
3
+
title: Execute Sub-workflow
4
+
description: Documentation for the Execute Sub-workflow node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.
5
5
contentType: [integration, reference]
6
6
priority: high
7
7
---
8
8
9
-
# Execute Workflow
9
+
# Execute Sub-workflow
10
10
11
-
Use the Execute Workflow node to run a different workflow on the host machine that runs n8n.
11
+
Use the Execute Sub-workflow node to run a different workflow on the host machine that runs n8n.
description: Learn how to use the Execute Workflow Trigger node in n8n. Follow technical documentation to integrate Execute Workflow Trigger node into your workflows.
description: Learn how to use the Execute Sub-workflow Trigger node in n8n. Follow technical documentation to integrate Execute Sub-workflow Trigger node into your workflows.
5
5
contentType: [integration, reference]
6
6
priority: high
7
7
---
8
8
9
-
# Execute Workflow Trigger node
9
+
# Execute Sub-workflow Trigger node
10
10
11
11
Use this node to start a workflow in response to another workflow. It should be the first node in the workflow.
0 commit comments