> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/workflow-builder/nodes/outputs-apps/file-output.md).

# File output

File output lets your app return a file from an earlier node for users to download.

Use it when the final result should be a document, spreadsheet, PDF, or other file.

<figure><img src="/files/M2WkPO5bMPWHAeFqlHjj" alt=""><figcaption></figcaption></figure>

### Before you start

Choose a field from an earlier node that returns a file.

<figure><img src="/files/PbY0N6gJVQG2NzPNaQln" alt="" width="375"><figcaption></figcaption></figure>

### How to set it up

1. In the **Output** node, click **+ Add**.
2. Select a file field from the list of earlier nodes.
3. Click **Ok**.
4. Choose **File** as the output type.
5. Enter a clear **Title**.
6. Click **Ok** and test the flow.

<figure><img src="/files/QTugGRTjtZZXv3rzQvH6" alt="" width="375"><figcaption></figcaption></figure>

### Settings

| Setting     | What it does                                                                    |
| ----------- | ------------------------------------------------------------------------------- |
| Output type | Sets how the selected field is shown in the app. Choose **File** for file data. |
| Title       | The label shown above the file, such as `Monthly report` or `Exported file`.    |

### Good business uses

* Deliver a generated report.
* Return an exported spreadsheet.
* Share a finished document for download.

### Next steps

* Go back to [Outputs (Apps)](/workflow-builder/nodes/outputs-apps.md).
* Create downloadable files with [File creator](/workflow-builder/nodes/built-in-tools/file-creator.md).
* Export spreadsheet results with [Spreadsheet Creator](/workflow-builder/nodes/built-in-tools/spreadsheet-creator.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.diaflow.io/workflow-builder/nodes/outputs-apps/file-output.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
