Actions20
- Assistant Actions
- Embedding Actions
- File Actions
- Report Actions
- Text Actions
- Thread Actions
Overview
This node enables interaction with the OpenAI Analytics API, specifically supporting multiple resources and operations related to OpenAI services. For the File resource with the Download File operation, it allows users to download the content of a file stored in their OpenAI account.
Typical use cases include:
- Retrieving files previously uploaded to OpenAI for further processing or analysis.
- Automating workflows that require fetching file contents from OpenAI storage.
- Integrating file downloads into larger automation pipelines where OpenAI files are inputs or outputs.
For example, a user might upload training data or fine-tuning files to OpenAI and later use this node to download those files automatically as part of a data pipeline.
Properties
Name | Meaning |
---|---|
Authentication | Choose which credentials to use: either dedicated OpenAI Analytics API credentials or existing OpenAI API credentials. |
File Selection Method | Method to select the file to download: - Specify by ID (enter file ID directly) - Select from List (choose from a list of available files) |
Output
The node outputs the downloaded file content in the json
output field. The exact structure depends on the underlying OpenAI API response but generally includes metadata about the file and its content.
If the file is binary, the node will handle the binary data accordingly (e.g., storing it in a binary property), enabling downstream nodes to process or save the file.
Dependencies
- Requires valid OpenAI API credentials, either through dedicated OpenAI Analytics API credentials or standard OpenAI API credentials.
- The node uses the official OpenAI SDK internally to communicate with the OpenAI API.
- Proper configuration of credentials in n8n is necessary before using this node.
Troubleshooting
- Invalid Credentials Error: If the node cannot authenticate, ensure that the provided API key credential is correct and has permissions to access files.
- File Not Found: When specifying a file ID, verify that the ID exists and belongs to your OpenAI account.
- Empty or No Files Listed: If selecting from the list shows no files, confirm that files have been uploaded to OpenAI and that the API key has access to them.
- Network or API Errors: Check network connectivity and OpenAI service status if requests fail unexpectedly.
- Binary Data Handling: If the file is binary and not handled correctly downstream, ensure the binary property name is set properly and that subsequent nodes support binary data.
Links and References
Note: This summary is based solely on static code analysis of the provided source and property definitions without runtime execution.