# File creator

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FWcpiNlnk2lfMtlSMCNWn%2Fimage.png?alt=media&#x26;token=5f8b5053-bf50-43e9-a51a-31cceb35cb2a" alt=""><figcaption></figcaption></figure>

## Description <a href="#description" id="description"></a>

The **File Creator** node lets you quickly generate a new file in your chosen format. You can manually input text or pull in data from previous nodes, making it easy to turn workflow outputs into shareable documents.

**Field and Function:**

1. **File type\***
   * Select the type of file you want to create.
   * Supported formats include:

* Document:
  * .docx (Microsoft Word 2007 and later)
  * .pdf (Portable Document Format)
  * .txt (Plain Text)
* Spreadsheets:
  * xlsx (Microsoft Excel)
  * csv (Comma-Separated Values)
* Others:
  * .json (JavaScript Object Notation)
  * .html (HyperText Markup Language)
  * .md (Markdown)

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FncDKC7La9DJITAXSFguu%2Fimage.png?alt=media&#x26;token=ea3f4947-c2c9-4ad6-bfe0-8f65273aec6d" alt=""><figcaption></figcaption></figure>

2. **File name**\*

* Enter the desired name of the file (without extension).
* The correct extension is added automatically based on **File type**.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2Fm07WP5PRNbJbTIkIkztz%2Fimage.png?alt=media&#x26;token=9594b225-01da-4a8b-aee8-3a5870b25ae9" alt=""><figcaption></figcaption></figure>

3. **Content\***

* Define the content inside the file.
* Options:
  * Type text manually.
  * Use `@` to reference outputs from previous nodes (e.g., AI-generated text, API response, or spreadsheet data).

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FPf01NCPtcozWdGigOmnC%2Fimage.png?alt=media&#x26;token=95077ad0-3adb-4861-9966-23624ce16d94" alt=""><figcaption></figcaption></figure>

## Example <a href="#description" id="description"></a>

1. Set up "File Creator" node:
   1. File type = .docx
   2. File name = creator file
   3. Content = refer to the output of node "OpenAI"

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2Fpm1PhQUhiI1vLFQERUTp%2Fimage.png?alt=media&#x26;token=84ae25e8-70b6-4d8f-9629-bf7428d41c59" alt=""><figcaption></figcaption></figure>

2. After executing the flow

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FZVZtoXMH4HsatN05Ri7m%2Fimage.png?alt=media&#x26;token=e574a3c5-463f-4eab-8f15-8f3a15534555" alt=""><figcaption></figcaption></figure>

3. At the "Output node", you can download the file

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FQAm5SwphQJpmKu71iJtk%2Fimage.png?alt=media&#x26;token=5d186531-de5f-40c0-9580-59d105466809" alt=""><figcaption></figcaption></figure>
