Skip to main content

Download File

Creates a file download link in chat interfaces, allowing users to download files.

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. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • File Path - The full path to the file that will be made available for download.

How It Works

The Download File node creates a download link for a file in chat interfaces. When executed, the node:

  1. Validates the file path and checks if the file exists
  2. Creates a temporary download link for the file
  3. Displays a download button or link in the chat interface
  4. Allows users to download the file through the chat interface

Requirements

  • A valid file path to an existing file
  • Proper file system permissions to access the file
  • A chat interface or messaging platform that supports file downloads

Error Handling

The node will return specific errors in the following cases:

  • Invalid or non-existent file path
  • File access permissions issues
  • Communication errors with the messaging platform
  • File size limitations exceeded

Usage Notes

  • The file must exist at the specified path when the node executes
  • The file name displayed in the chat interface is extracted from the file path
  • File size is automatically detected and displayed
  • Users can download the file directly through the chat interface
  • The node is useful for sharing files with users during conversations
  • Large files may take longer to process and make available for download