📁 Automatically save & organize LINE message files in Google Drive with Sheets logging

4,759 views · 📁 File Management

Description

Overview

This workflow automatically saves files received via LINE Messaging API into Google Drive and logs the file details into a Google Sheet. It checks the file type against allowed types, organizes files into date-based folders and (optionally) file type–specific subfolders, and sends a reply message back to the LINE user with the file URL or an error message if the file type is not permitted.

Who is this for?

Developers & IT Administrators: Looking to integrate LINE with Google Drive and Sheets for automated file management. Businesses & Marketing Teams: That want to automatically archive media files and documents received from users via LINE. Anyone Interested in No-Code Automation: Users who want to leverage n8n’s capabilities without heavy coding.

What Problem Does This Workflow Solve?

Automated File Organization: Files received from LINE are automatically checked for allowed file types, then stored in a structured folder hierarchy in Google Drive (by date and/or file type). Data Logging: Each file upload is recorded in a Google Sheet, providing an audit trail with file names, upload dates, URLs, and types. Instant Feedback: Users receive an immediate reply via LINE confirming the file upload, or an error message if the file type is not allowed.

What This Workflow Does

1. Receives Incoming Requests:

2. Configuration Loading:

Data Merging & Processing:

4. Folder Search & Creation:

5. File Retrieval and Validation:

6. File Upload and Logging:

7. User Feedback:

Setup Instructions

1. Google Sheets Setup:

For an example of the required format, check this Google Sheets template: Google Sheet Template

2. Google Drive Credentials:

3. LINE Messaging API:

4. n8n Workflow Import:

5. Test the Workflow:

How to Customize This Workflow

🔗 Nodes Used

Google Sheets, HTTP Request, Webhook, Google Drive

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup