diff --git a/docs/nodes/nodes-library/core-nodes/ExecuteCommand/README.md b/docs/nodes/nodes-library/core-nodes/ExecuteCommand/README.md index 624dde011..c26124f81 100644 --- a/docs/nodes/nodes-library/core-nodes/ExecuteCommand/README.md +++ b/docs/nodes/nodes-library/core-nodes/ExecuteCommand/README.md @@ -11,6 +11,8 @@ The Execute Command node is used to run shell commands on the host machine that 2. This node will execute the command in the default shell of the host machine. For example, this will be PowerShell on Windows and zsh on macOS. ::: +## Node Reference + The Execute Command node has two properties: 1. *Execute Once* toggle: This is a boolean field that is used to specify whether you want the node to execute only once, or once for every item it receives an input. 2. *Command* field: This is a text field that is used to specify the command that will be executed on the host machine. diff --git a/docs/nodes/nodes-library/core-nodes/ExecuteWorkflow/README.md b/docs/nodes/nodes-library/core-nodes/ExecuteWorkflow/README.md new file mode 100644 index 000000000..c08180d6c --- /dev/null +++ b/docs/nodes/nodes-library/core-nodes/ExecuteWorkflow/README.md @@ -0,0 +1,45 @@ +--- +permalink: /nodes/n8n-nodes-base.executeWorkflow +--- + +# Execute Workflow + +The Execute Workflow node is used to run a different workflow on the host machine that runs n8n. + +## Node Reference + +The Execute Workflow node has two properties: +- ***Source***: This field is used to specify from where to get the workflow's information. + - Database + - Local File + - Parameter + - URL +- ***Workflow***: This field contains information about the workflow, such as the workflow ID, URL, or a file. + + +## Example Usage + +This workflow allows you to execute another workflow on the host machine using the Execute Workflow node. You can also find the [workflow](https://n8n.io/workflows/588) on n8n.io. This example usage workflow would use the following nodes. +- [Start](../../core-nodes/Start/README.md) +- [Execute Workflow]() + +The final workflow should look like the following image. + +![A workflow with the Execute Workflow node](./workflow.png) + +### 1. Start node + +The start node exists by default when you create a new workflow. + +### 2. Execute Workflow node + +1. Enter the ID of the workflow that you want to execute in the ***Workflow ID*** field. You can find instructions on how to obtain the ID of a workflow in the FAQs below. +2. Click on ***Execute Node*** to run the workflow. + + +## FAQs + +### How do I find the workflow ID? + +1. Open the workflow for which you want to get the workflow ID. +2. Copy the number after `workflow/` in your URL and paste that in the ***Workflow ID*** field. diff --git a/docs/nodes/nodes-library/core-nodes/ExecuteWorkflow/workflow.png b/docs/nodes/nodes-library/core-nodes/ExecuteWorkflow/workflow.png new file mode 100644 index 000000000..ce445d2b5 Binary files /dev/null and b/docs/nodes/nodes-library/core-nodes/ExecuteWorkflow/workflow.png differ