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

# End

> Define the final output content of a workflow

Use the End node to define the final output content of a workflow. Every workflow requires at least one End node to output the result of its complete execution.

The End node is a termination point in the flow; no further nodes can be added after it. In a workflow application, results are only output when execution reaches an End node. If the flow contains conditional branches, you need to define multiple End nodes.

The End node must declare one or more output variables, which can reference the output variables of any upstream node.

<Info>
  End nodes are only available in Workflows. Chatflows use the [Answer](/en/2.5.x/use/nodes/answer) node instead.
</Info>

## Scenarios

In the [long article generation example](/en/2.5.x/use/nodes/iteration#long-article-generation-example), the variable `Output` declared by the End node is the output of the upstream Code node. This means the workflow ends after the Code node completes execution and outputs the Code node's result.

<Frame>
  ![End node long story generation example](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/a103792790447c1725c1da1176334cae.png)
</Frame>

**Single-path execution:**

<Frame>
  ![Single-path execution example](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/9e43961344d318e09af8d64464d81774.png)
</Frame>

**Multi-path execution:**

<Frame>
  ![Multi-path execution example](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/3cb3f5fea376265bede0a4ac5bcc1ddc.png)
</Frame>
