# Save & organize LINE message files in Google Drive with Sheets: n8n workflow

> Started by another system calling it, and works across Google Drive and Google Sheets. 23 steps, 5 branches: large, and worth reading before you trust it...

Source: https://millionrounds.com/workflow/save-and-organize-line-message-files-in-google-drive-with-sh (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Save & organize LINE message files in Google Drive with Sheets

Started by another system calling it, and works across Google Drive and Google Sheets. 23 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsave-and-organize-line-message-files-in-google-drive-with-sh)

**23 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 13 Service 9

The steps in the order they run, from what starts it.

- 1 **LINE Webhook Listener** Webhook *Starts it*
- 2 **Merge Event and Config Data** Merge *Logic*
- 3 **Get Config** Google Sheets *Service*
- 4 **Process Event and Config Data** Code *Logic*
- 5 **Determine Folder Info** Code *Logic*
- 6 **Search Date Folder** Google Drive *Service*
- 7 **Check Existing Date Folder** If *Logic*
- 8 **Set Date Folder ID** Code *Logic*
- 9 **Check if Store by Date is Enabled** If *Logic*
- 10 **Search File Type Folder** Google Drive *Service*
- 11 **Merge Final Parent Folder Data** Merge *Logic*
- 12 **Create Date Folder** Google Drive *Service*
- 13 **Check Existing File Type Folder** If *Logic*
- 14 **Configure Final Parent Folder ID** Code *Logic*
- 15 **Set File Type Folder ID** Code *Logic*
- 16 **Check if Store by File Type is Enabled** If *Logic*
- 17 **Get File Binary Content** Http Request *Service*
- 18 **Create File Type Folder** Google Drive *Service*
- 19 **Validate File Type** Code *Logic*
- 20 **Upload File to Google Drive** Google Drive *Service*
- 21 **Log File Details to Google Sheet** Google Sheets *Service*
- 22 **Check Reply Enabled Flag** If *Logic*
- 23 **Send LINE Reply Message** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 23, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsave-and-organize-line-message-files-in-google-drive-with-sh)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Chat with Supabase** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/chat-with-supabase)
- [**Extract timesheet data with Mistral and Gmail** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/extract-timesheet-data-with-mistral-and-gmail)
- [**Process documents & build semantic search with OpenAI** 23 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/process-documents-and-build-semantic-search-with-openai)
- [**Process documents with Google Drive and OpenAI** 23 steps · calls a model · Google Drive, Supabase vectors](https://millionrounds.com/workflow/process-documents-with-google-drive-and-openai)
- [**Send prioritized AI news from Apify to Slack with DeepL** 23 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/send-prioritized-ai-news-from-apify-to-slack-with-deepl)
- [**Automate document ingestion & RAG system with Google Drive** 24 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-document-ingestion-and-rag-system-with-google-drive)
