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

# Pipeline Node

> Run other pipelines within your current pipeline

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/general/pipeline.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=2e4c0876828fe17939006e21c73a0cfc" alt="Pipeline" width="1134" height="476" data-path="images/platform/pipelines/general/pipeline.png" />

The pipeline node allows you to run other pipelines within your current pipeline.
Use a pipeline node when you want to execute an abstracted workflow (sub-pipeline) as part of your current pipeline.

## Node Inputs

1. Pipeline: Select the sub-pipeline to run within your current workflow
2. Pipeline-specific inputs: The inputs corresponding to all input nodes within your selected sub-pipeline
   * Type: Varies based on input nodes in sub-pipeline

<Note>
  The pipeline node uses the most recent **deployed** version of your sub-pipeline. Ensure that your sub-pipeline is deployed before using it in the pipeline node.
</Note>

## Node Outputs

1. Pipeline specific outputs: Outputs corresponding to the output nodes for your selected sub-pipeline
   * Type: Varies based on output nodes in sub-pipeline
   * Example usage: `{{pipeline_0.[output_name]}}`

## Considerations

* Use a pipeline node to execute separately created workflows within your current pipeline. It is especially useful to abstract out complex logic when dealing with large/complex workflows.
* The pipeline node makes the outputs of the sub-pipeline available to use in your current workflow.
* All input nodes in your sub-pipeline will appear as input fields on the pipeline node.

## Example

The below example shows a “Parent Pipeline” calling a sub-pipeline, “Company sub-pipeline”. The sub-pipeline takes in the name of a company, and outputs a short description of the company. \
\
Parent Pipeline

1. Input Node: Allows for the name of a company to be inputted into the pipeline.
2. Pipeline Node: Calls the sub-pipeline
   * Pipeline: `Company Sub Pipeline`
3. Output Node: Display the output of the sub-pipeline
   * Output: `{{pipeline_0.output_0}}`

**Parent Pipeline**

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/general/pipeline-example-sub.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=8e3a640134623ff666ba8fe5ba52e380" alt="Sub-Pipeline" width="1900" height="836" data-path="images/platform/pipelines/general/pipeline-example-sub.png" />

**Sub-Pipeline**

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/general/pipeline-example-parent.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=27caa81c2c8e17394f5b91d41f9ba0b7" alt="Parent Pipeline" width="1900" height="836" data-path="images/platform/pipelines/general/pipeline-example-parent.png" />
