> 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/studio/nodes/action-nodes/diaflow-drive.md).

# Diaflow Drive

Diaflow Drive allows users to save or get files and metadata from the Diaflow Drive.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FsKfu0lK7iGx2IbqLxpah%2Fimage.png?alt=media&amp;token=a10f2e71-cab9-49a6-a89d-6e3ce45df5d3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FUwvQ3vT3hS61CtjDIONC%2Fimage.png?alt=media&amp;token=b51dfb06-1eac-44ea-9252-50b96c3f7a1c" alt=""><figcaption></figcaption></figure>

## Description

**What it does:** Diaflow Drive is a robust storage solution that enables users to save and retrieve files and metadata. By leveraging Diaflow Drive, users can securely store a wide variety of file types, ensuring their data is always accessible when needed. This platform not only supports file storage but also allows for comprehensive metadata management, providing a structured and efficient way to handle information.&#x20;

The Diaflow Drive component has the identifier of drive-**X**, where **X** represents the instance number of the Diaflow Drive component.

**When to use it?**

* **Saving outputs**: Imagine your workflow generates a report. You can use the Diaflow Drive node to automatically save that report file to your Diaflow Drive, keeping everything organized.
* **Using files as inputs**: Let's say you have a CSV file in Diaflow Drive with a list of products. You can use the Diaflow Drive node to load that file into your workflow and then process the product data.
* **Managing files within your automation:** If your workflow needs to keep track of files, update them, or use them in different steps, Diaflow Drive node is essential for managing those files directly within your automation flow.

## Component settings

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FKPmGF8UbokCPwYZ9LD17%2Fimage.png?alt=media&amp;token=8db29e64-03c2-4987-9602-73d735e2c05c" alt=""><figcaption></figcaption></figure>

| Parameter Name | Description                                                                                                                                                                                                   |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action         | <p>Refers to the action to be performed on the drive. </p><p>There are 4 possibilities.</p><ul><li>Save file </li><li>Get file URL</li><li>Retrieve file metadata</li><li>Retrieve folder metadata </li></ul> |
| Folder         | Select the exact location to perform an action.                                                                                                                                                               |
| File data      | <p>Only available if you select "Save file".<br></p><p>The file will be pushed into the drive.</p>                                                                                                            |
| From           | <p>Only available if you select "Get file" or "Get file metadata". </p><p>The target file/folder to get files.</p>                                                                                            |
| Select file    | <p>Only available if you select "Get file URL" or "Retrieve file metadata". <br></p><p>Clicking to view or select a file</p>                                                                                  |

## Advanced configurations

This Diaflow Drive component has no advanced configurations.

## Use case

Here is a simple use case of the Diaflow Drive component, where the Diaflow Drive component is used to save an input file, which is a PDF, into Diaflow's drive.

**Input**:

* Action = "Save File"
* Folder = "/root"
* File data = Refer to the URL Link of the node before

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FxxBLNXrLWhNojM0Cty9w%2Fimage.png?alt=media&amp;token=f2cee17d-6d64-4df5-9216-4ef562dcb325" alt=""><figcaption></figcaption></figure>

**Output**:

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FT9fngsqkasjFIAcPFRTm%2Fimage.png?alt=media&amp;token=9c9f2e7a-ba1b-4c75-91b7-8ae4d56570fd" alt=""><figcaption></figcaption></figure>

At the Diaflow Drive page, when the user reloads the page, they will view the file&#x20;

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FkRVkvFihruYKuj0b4ztd%2Fimage.png?alt=media&amp;token=54d79a72-0e67-4310-9bbf-f3cfa0921fbf" alt=""><figcaption></figcaption></figure>
