Line Save File to Google Drive and Log File's URL
This workflow automatically receives file messages from LINE, saves the files to a specified folder in Google Drive, and records the file details in Google Sheets. It achieves orderly and secure file management through dynamic classification and file type verification. Additionally, it supports automatic replies to users regarding the upload results, enhancing communication efficiency and user experience. This workflow is suitable for both businesses and individuals to efficiently manage files and maintain upload logs.

Workflow Name
Line Save File to Google Drive and Log File's URL
Key Features and Highlights
This workflow receives file messages from the LINE Messaging API, automatically saves the files to a specified folder in Google Drive, and logs detailed file information (such as file name, type, upload time, and access URL) into Google Sheets. It supports automatic classification of files by date and file type based on configuration, and can optionally send automatic replies to users regarding upload results, enhancing file management automation and user interaction experience.
Core Problems Addressed
- Automates processing of file messages from LINE, eliminating the need for manual downloading and categorization.
- Dynamically creates or selects corresponding Google Drive folders based on date and file type for orderly file management.
- Logs file records in Google Sheets for easy subsequent querying and statistics.
- Validates uploaded file types to ensure security and compliance.
- Optional automatic reply feature provides timely feedback to users, improving communication efficiency.
Use Cases
- Enterprises or individuals receiving files from customers or team members via LINE who need automatic cloud archiving.
- Managing large volumes of files by date and type to maintain a clean and organized file system.
- Centralized management of file upload records via Google Sheets for convenient reporting and auditing.
- Enforcing file type restrictions to ensure uploaded content meets standards.
- Automatically replying with upload status to enhance customer or user experience.
Main Workflow Steps
- Listen to LINE Messages: Receive file messages sent via LINE through a webhook.
- Retrieve Configuration: Read storage paths, allowed file types, and classification rules from Google Sheets.
- Data Merging and Processing: Combine event data and configuration to determine the target folder name (date folder and file type folder) for file storage.
- Folder Lookup and Creation:
- Check if the corresponding date folder exists per configuration; create it if absent.
- Similarly handle the file type folder.
- File Type Validation: Verify if the uploaded file’s type is within the allowed list.
- Fetch File Content: Use the LINE API to obtain the file’s binary data.
- Upload File: Upload the file to the designated folder in Google Drive.
- Log Record: Append file information and access link to Google Sheets.
- Automatic Reply (optional): Based on configuration, send success or failure messages back to the LINE user.
Involved Systems and Services
- LINE Messaging API: Receiving file messages and sending reply messages.
- Google Drive: File storage and folder management.
- Google Sheets: Storing configuration data and logging uploaded file records.
- n8n Automation Platform: Orchestrating the entire workflow logic and node scheduling.
Target Users and Value
- Enterprise operations teams, customer service teams, and content managers who want to simplify file collection and archiving through automation.
- Individuals or organizations needing efficient management of multimedia files received via LINE channels.
- Technical users aiming to improve file processing efficiency and reduce human errors using low-code automation tools.
- Businesses pursuing orderly file management and transparent upload records to enhance collaboration and auditing capabilities.
- Service providers seeking to provide instant feedback on file processing status to boost customer satisfaction.
By integrating LINE, Google Drive, and Google Sheets, this workflow delivers a comprehensive solution for automated file storage and management, significantly enhancing automation levels and user interaction efficiency in file handling.