n8n-nodes-gemini-file-manager
v0.1.0
Published
n8n node for managing files with Google Gemini Files API - batch upload, list, and manage files for AI workflows
Maintainers
Readme
n8n-nodes-gemini-file-manager
This is an n8n community node that allows you to manage files with the Google Gemini Files API. It enables batch uploading, listing, and managing files for use with Gemini AI models in your n8n workflows.
Features
- Upload Files: Upload individual files to Gemini Files API from binary data or URLs
- Batch Upload: Upload multiple files at once for efficient processing
- List Files: Retrieve a list of all uploaded files with metadata
- Get File Info: Get detailed metadata about specific files
- Delete Files: Remove individual or multiple files from Gemini
- Storage Integration: (Planned) Upload files directly from Google Cloud Storage
Installation
Community Node (Recommended)
- Go to Settings > Community Nodes
- Select Install a community node
- Enter
n8n-nodes-gemini-file-manager - Click Install
Manual Installation
npm install n8n-nodes-gemini-file-managerPrerequisites
You'll need a Google Gemini API key:
- Go to Google AI Studio
- Create or select a project
- Generate an API key
- Add the API key to your n8n credentials
Credentials
This node uses the Gemini API credentials type. When setting up:
- In n8n, go to Credentials > New
- Search for "Gemini API"
- Enter your API key
- Save the credentials
Usage
Upload a Single File
- Add the Gemini File Manager node to your workflow
- Select File as the resource
- Select Upload as the operation
- Configure the input type (Binary or URL)
- Connect your file source and execute
Batch Upload Multiple Files
- Select Batch as the resource
- Select Upload Multiple as the operation
- Specify comma-separated binary property names
- Execute to upload all files in parallel
Using Files with Gemini AI
After uploading files, you'll receive file URIs (e.g., files/abc-123) that can be used as references in Gemini AI model calls for multimodal processing.
File Limitations
- File Size: Maximum 2GB per file
- Storage: Up to 20GB total per project
- Expiry: Files are automatically deleted after 48 hours
- Supported Types: Audio, video, images, documents (PDF, etc.)
Node Reference
Resources
- File: Operations on individual files
- Batch: Operations on multiple files
Operations
File Resource
- Upload: Upload a single file
- List: List all uploaded files
- Get: Get file metadata
- Delete: Delete a file
Batch Resource
- Upload Multiple: Upload multiple files at once
- Delete Multiple: Delete multiple files
- Upload from Storage: (Planned) Upload from cloud storage
Examples
Example: Process Documents with AI
- Upload multiple PDF documents using batch upload
- Use the returned file URIs in a Gemini AI node
- Ask questions about the documents' content
Example: Media Analysis
- Upload images or videos
- Pass file references to Gemini for analysis
- Extract insights, descriptions, or transcriptions
Support
For issues and feature requests, please visit the GitHub repository.
License
MIT
