The text to file node allows you to convert text into a file with a file type of your choice.

Node Inputs

  1. Text to convert to file: The text you want to convert into a file.
    • Type: Text
  2. File Type: The type of file you want to create.
    • Type: Dropdown

Node Outputs

  1. File: The converted file
    • Type: File
    • Example usage: {{text_to_file_0.file}}
  2. File Type: The type of file you created.
    • Type: Text
    • Example usage: {{text_to_file_0.file_type}}

Example

The below example shows a pipeline that takes a text and converts it into a file.

  1. Text Node: Contains the text Hello, how are you doing?
  2. Text to File Node: Converts the text into a file.
    • Text to convert to file: {{text_0.text}}
    • File Type: PDF
  3. Output: The converted file
    • Output: {{text_to_file_0.file}}