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
- Create a Custom Flow:
- Follow the webhook integration guide (opens in a new tab).
- Configure webhooks as trigger events.
- Define custom actions for incoming webhook data.
- Use Pre-built Templates:
- Start with a webhook template (opens in a new tab).
- Customize the template as needed.
Step 2: Configure Node in Lamatic
- Add the Google Drive node to your flow.
- Provide necessary credentials and folder details.
- Schedule the flow using a Cron expression for regular execution.
Configuration Reference
Batch Trigger: Scheduled
Parameter | Description | Required | Example |
---|---|---|---|
Name | Display name for the node. | âś… | Google Drive |
Credentials | Google authentication details required to connect to the Drive folder. | âś… | my-google-drive-credentials |
Folder | The folder from which files will be fetched. | âś… | https://drive.google.com/drive/folders/{folder-id} |
Sync Mode | Specify either incremental (process new/updated files only) or full-refresh (reprocess all files). | âś… | incremental |
Sync Schedule | Frequency 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
Problem | Solution |
---|---|
Invalid Credentials | Verify that the correct Google Drive credentials are provided. |
Folder Not Found | Ensure the folder URL is accurate and accessible. |
Sync Not Working | Check the Cron expression for correctness. |
File Types Unsupported | Confirm 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.