WorkflowGoogle DriveOpen

Line Save File to Google Drive and Log File's URL

Triggered by a webhook. Connects Code, Condition, Google Drive, Google Sheets, HTTP request, Webhook. Workflow Entry & Configuration This section initializes the workflow by listening to incoming requests from the LINE Messaging API and retrieving configuration details from Google Sheets. It merges the event data with the config, then determines initial folder information (such as whether to store

Front matter
name: Line Save File to Google Drive and Log File's URL
description: Triggered by a webhook. Connects Code, Condition, Google Drive, Google Sheets, HTTP request, Webhook. ## Workflow Entry & Configuration This section initializes the workflow by listening to incoming requests from the LINE Messaging API and retrieving configuration details from Google Sheets. It merges the event data with the config, then determines initial folder information (such as whether to store files by date or file type). Nodes in this group: * **LINE Webhook Listener** Receives POST requests (file messages) from LINE. * **Get Config** Reads configuration data (parent folder, allowed
category: Automation
kind: Workflow
software: Code|Condition|Google Drive|Google Sheets|HTTP request|Webhook

Line Save File to Google Drive and Log File's URL

Triggered by a webhook. Connects Code, Condition, Google Drive, Google Sheets, HTTP request, Webhook. ## Workflow Entry & Configuration This section initializes the workflow by listening to incoming requests from the LINE Messaging API and retrieving configuration details from Google Sheets. It merges the event data with the config, then determines initial folder information (such as whether to store files by date or file type). Nodes in this group:

  • LINE Webhook Listener

Receives POST requests (file messages) from LINE.

  • Get Config

Reads configuration data (parent folder, allowed

Steps

  • Get Config (googleSheets)
  • Create Date Folder (googleDrive)
  • Set Date Folder ID (code)
  • Create File Type Folder (googleDrive)
  • Upload File to Google Drive (googleDrive)
  • Determine Folder Info (code)
  • Search Date Folder (googleDrive)
  • Merge Event and Config Data (merge)
  • Check Existing Date Folder (if)
  • Check Existing File Type Folder (if)
  • Merge Final Parent Folder Data (merge)
  • Search File Type Folder (googleDrive)
  • Set File Type Folder ID (code)
  • Configure Final Parent Folder ID (code)
  • Process Event and Config Data (code)
  • Get File Binary Content (httpRequest)
  • Log File Details to Google Sheet (googleSheets)
  • Check Reply Enabled Flag (if)
  • Check if Store by Date is Enabled (if)
  • Check if Store by File Type is Enabled (if)
  • LINE Webhook Listener (webhook)
  • Send LINE Reply Message (httpRequest)
  • Validate File Type (code)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note2 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1924_Code_Webhook_Export_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.