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

# Generate File

### **Overview:**

The `Generate File` block is a powerful tool that allows users to convert provided text into various digital file formats, ensuring flexibility and convenience for diverse documentation needs.

<Check>**Supported file types include** .pdf, .csv, .txt, .md, and .docx</Check>

***

### Inputs & Outputs

| I/O | Feature | Type | Simple Explanation |
| - | - | - | - |
| input | `file_name` | string | Specify the name of the file you wish to create (excluding the extension). |
| input | `file_type` | selector | Choose the desired format for your generated file from these options: `.pdf`, `.docx`, `.txt`, `.csv`, `.md`. |
| input | `file_contents` | string | Provide the text content that should be included in your generated file. |
| output | `generated_file_name` | string | The complete name of the created file along with its format extension. |

***

### Use Cases

Consider how this block can enhance productivity across various scenarios:

* **Drafting Formal Documents:** Streamline your process for creating official documents in formats like DOCX or PDF to meet specific organizational standards.
* **Creating Reports:** Efficiently generate professional-quality reports in PDF or DOCX formats tailored for presentations or collaborative sharing.
* **Saving Notes:** Quickly transform important notes into TXT files, providing an organized references tool accessible anytime.
* **Organizing Data Tables:** Simplify data analysis by converting structured data into CSV format which can easily integrate with other analytical tools.

In summary, whenever there's a requirement to generate files from textual content in different formats, the `Generate File` block is an invaluable resource!


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.