Line File Auto-Saver to Google Drive with Dynamic Folder Management
detail.loadingPreview
This n8n workflow automatically saves files received via Line Messaging API to Google Drive, organizing them into dynamic folders based on date and file type. It logs the file's URL to Google Sheets and can optionally reply to the sender with the shared link.
About This Workflow
Streamline your Line file management with this robust n8n workflow. Designed for efficiency, it intelligently categorizes and stores files sent through Line directly into your Google Drive. Leveraging a configurable Google Sheet, you can define base folders and opt for automatic subfolder creation by date (e.g., "20240726") and file type (e.g., "image", "video"). This ensures a highly organized file structure, saving you valuable time on manual sorting. After upload, the workflow captures the shared file link, logs it to a Google Sheet for easy tracking, and can even send a confirmation reply back to the Line user.
Key Features
- Automated Line File Storage: Instantly save all incoming Line files directly to your Google Drive.
- Dynamic Folder Creation: Automatically creates date-based and/or file-type-based subfolders for superior organization.
- Centralized Configuration: Manage all settings (parent folder, storage preferences) easily via a Google Sheet.
- File URL Logging: Keeps a detailed log of uploaded files and their shared Google Drive URLs in Google Sheets.
- Line Reply Integration: Optionally sends a confirmation message with the shared file link back to the Line sender.
How To Use
- Google Sheets Configuration: Create a new Google Sheet (e.g., named
config) with columns forParent Folder ID,Store by Date(TRUE/FALSE),Store by File Type(TRUE/FALSE), and optionallyCurrentDate. Obtain the ID of your desired base Google Drive folder and enter it in theParent Folder IDcell. Configure theGet Confignode to point to this Google Sheet and the correct range (e.g.,config!A1:H2). - Google Drive Credentials: Set up Google Drive OAuth2 API credentials in n8n for all Google Drive nodes (
Search Date Folder,Create Date Folder,Create File Type Folder,Upload File to Google Drive,Get Shared Link). Ensure the account has permissions to create/read folders and files in your designated parent folder. - Line Messaging API Trigger: Start the workflow with a Line Messaging API Trigger node configured to listen for file/media messages.
- Google Sheets Logging: Configure the
Log File URLnode (inferred) to point to your desired Google Sheet for logging file metadata and URLs. - Line Reply (Optional): Set up the
Reply to LINEnode (inferred) with your Line credentials and the desired message template, including the shared file URL. - Activate Workflow: Save and activate the workflow to start automatically processing Line file uploads.
Apps Used
Workflow JSON
{
"id": "8bb53ab7-1e7c-4b78-a390-98c2e22a858a",
"name": "Line File Auto-Saver to Google Drive with Dynamic Folder Management",
"nodes": 6,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 8bb53ab7-1e7c...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.