Skip to main content

File Writer

Seamlessly write files to cloud storage providers with configurable paths and bucket names.

What is the File Writer?

The File Writer is a powerful utility node in Nocodo that allows users to write files to specified cloud storage providers such as AWS S3. It offers detailed configurations for file paths and bucket names, making it easy to manage file storage in the cloud.

How to use it?

  1. Add the File Writer node: Drag and drop the File Writer node into your workflow from the node library.
  2. Configure Input Parameters/Anchors:
    • Storage Provider: Select the cloud storage provider where you want to store your file. The available options include:
      • AWS S3
    • File Path: Enter the file path where the file will be stored in the cloud. This path should follow the conventions of the selected storage provider.
    • Bucket Name: Enter the name of the storage bucket where the file will be stored. Ensure the bucket exists and the provided name matches exactly.

Required AWS IAM Roles and Permissions

To successfully use the File Writer node with AWS S3, ensure that the AWS IAM user has the following permissions:

  • s3:PutObject
  • s3:GetObject
  • s3:ListBucket

Example Task: File Writer with Text-to-Speech

Objective: Create your own Audiobook

Step-by-Step Setup

  1. Add and Configure Text-to-Speech:

    • Drag the Text-to-Speech node into your workflow.
    • Configure the TTS node:
      • Model Name: Select from available options like OpenAI TTS 1, OpenAI TTS 1 HD, or ElevenLabs models.
      • Credentials: Choose appropriate credentials based on your selected model.
      • Voice: Choose a voice (options vary by model - e.g., for OpenAI: Alloy, Echo, Nova).
      • Text Input: Connect your text input that you want to convert to speech.
  2. Connect Text-to-Speech to File Writer:

    • Link the audio output from the Text-to-Speech node to the file input anchor of the File Writer node.
  3. Configure File Writer:

    • Set the Storage Provider to AWS S3.
    • Enter the File Path, e.g., speech_output/alice-ch1.mp3.
    • Enter the Bucket Name, e.g., my-audio-bucket.

Useful Resources

By following these detailed steps and utilizing the resources provided, you will be able to seamlessly write files to your specified cloud storage using the File Writer node in nocodo.