Skip to main content

Download File

Download a file from OpenAI file storage to your local filesystem.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. Default: false.
warning

This node requires your own OpenAI API key. It does NOT work with Robomotion AI Credits.

Inputs

  • Connection Id - Connection identifier from Connect node.
  • File ID - OpenAI file ID to download.

Outputs

  • File Path - Local path where the file was downloaded.
  • File Object - File metadata from OpenAI.

How It Works

Downloads a file from OpenAI to local storage:

  1. Validates connection and file ID
  2. Retrieves file metadata
  3. Downloads file content
  4. Saves to temporary directory
  5. Returns local file path

Usage Example

Input:
- File ID: "file-abc123"

Output:
- File Path: "/tmp/knowledge_base.pdf"
- File Object: {
id: "file-abc123",
filename: "knowledge_base.pdf",
...
}

Tips

  • Files are saved to temp directory - move to permanent location if needed
  • Use with Retrieve File Metadata to check size before downloading
  • Original filename is preserved when possible

Common Errors

"File ID cannot be empty"

  • Provide a valid file identifier

"Failed to create file" / "Failed to write file"

  • Check disk space and write permissions