Node Inputs

  • file name (text): It is the name you want to give to the file you are creating. You don’t need to add the file extension, just a name you can identify it with. For example, if you’re naming a letter, just write ‘letter’.

  • file type (enum): The file format you want to create. Options include:

    • .pdf: A Portable Document Format, commonly used for documents that look the same on any device.
    • .docx: A Microsoft Word document format, often used for text documents that require rich formatting.
    • .txt: A plain text file, which contains unformatted text.
    • .csv: A Comma-Separated Values file, used for spreadsheets or as a simple database.
  • file contents (text): The actual content or text that you want to put inside your file. For example, the body of a letter or the data for a spreadsheet.

Node Output

  • generated file name (text): This is the full name of the file that was created, including its format extension.

Node Functionality

The “Generate File” node takes the text you provide and turns it into a digital file in one of several common formats (.pdf, .docx, .txt, .csv). Whether it is creating a PDF document from a draft letter, putting together a Word document, saving simple notes as a TXT file, or organizing data into a CSV format, this node does it all behind the scenes. Just tell it what you want the file to be named, what type it should be, and what the content is—the node handles the rest.

When To Use

Use this node whenever you need to create a digital document. It could be for drafting formal documents, creating reports, saving notes, or putting together data tables. This node is particularly useful when these tasks are repetitive, and automating them can save you a significant amount of time. For instance, you might use this node if you’re automatically generating receipts for transactions, creating personalized letters or emails, or preparing data files for analysis.