Docs
Google Drive

Google Drive Node Documentation

The Google Drive node in Lamatic automates fetching and synchronizing files from Google Drive. It supports various file types, including Google Docs, Slides, Word Documents, PDFs, and text files. This node enables regular file synchronization to support vectorization and indexing for Retrieval-Augmented Generation (RAG) flows.


Features

âś… Key Functionalities

  • Batch Trigger: Automates file fetching and synchronization on a schedule.
  • File Type Support: Handles Google Docs, Slides, Word Documents, PDFs, and text files.

âś… Benefits

  • Streamlines file collection from Google Drive.
  • Prepares files for vectorization and indexing to enhance RAG flows.

Prerequisites

Before setting up the Google Drive node, ensure you have the following:

  • Google Drive credentials for accessing the desired folder.
  • The target folder URL from Google Drive.
  • An understanding of Cron expressions for scheduling flows.

Installation

Step 1: Set Up Lamatic Flow

  1. Create a Custom Flow:
  2. Use Pre-built Templates:

Step 2: Configure Node in Lamatic

  1. Add the Google Drive node to your flow.
  2. Provide necessary credentials and folder details.
  3. Schedule the flow using a Cron expression for regular execution.

Configuration Reference

Batch Trigger: Scheduled

ParameterDescriptionRequiredExample
NameDisplay name for the node.âś…Google Drive
CredentialsGoogle authentication details required to connect to the Drive folder.âś…my-google-drive-credentials
FolderThe folder from which files will be fetched.âś…https://drive.google.com/drive/folders/{folder-id}
Sync ModeSpecify either incremental (process new/updated files only) or full-refresh (reprocess all files).âś…incremental
Sync ScheduleFrequency for running the flow, specified using a Cron expression.âś…0 0 05 1/1 * ? * UTC

Low-Code Example

{
  "triggerNode": {
    "nodeId": "triggerNode_1",
    "nodeType": "googleDriveNode",
    "nodeName": "Google Drive",
    "values": {
      "syncMode": "incremental_append",
      "folderUrl": "https://drive.google.com/drive/folders/{your-folder-id}",
      "credentials": "{your-google-drive-credentials}",
      "cronExpression": "0 0 05 1/1 * ? * UTC"
    }
  }
}

Troubleshooting

Common Issues

ProblemSolution
Invalid CredentialsVerify that the correct Google Drive credentials are provided.
Folder Not FoundEnsure the folder URL is accurate and accessible.
Sync Not WorkingCheck the Cron expression for correctness.
File Types UnsupportedConfirm that the files in the folder are of supported types (Google Docs, PDFs, etc.).

Debugging

  • Check Lamatic Flow logs for error details.
  • Verify Google Drive API access permissions.
  • Test the folder URL to ensure it’s valid and accessible.

Was this page useful?

Questions? We're here to help

Subscribe to updates