Skip to main content

Google Drive Node

The Google Drive node provides integration with Google Drive and Google Sheets in SkyStudio workflows. You can read and search files, manage folders, and perform spreadsheet operations.


🎬 Click to watch the video →

Connection Setup and Management

To use the Google Drive node, you must first create a Google account connection. Unlike Jira and Confluence, Google Drive uses the OAuth 2.0 authentication method.

Adding a New Connection

  1. Go to Application Connections from the left menu in SkyStudio.
  2. Click Google Drive.
  3. Make sure OAuth 2.0 is selected as the Connection Method, which is the default and recommended option.
  4. Enter a name for this connection in the Connection Name field. This field is required.
  5. Click the Authorize with Google button.
FieldDescriptionExample
Connection NameThe name you want to give this connectionCompany Google Drive
Connection MethodAuthentication typeOAuth 2.0 recommended

Connection Methods

OAuth 2.0 Recommended
Authorization is performed through your Google account in the browser. When the backend OAuth URL is configured, it opens with a single click. This is the safest and easiest method.

API Key / Advanced
You can manually enter credentials in JSON format. Use this method if you want to use your own Google Cloud OAuth client.

Authorization Steps

  1. Click the Authorize with Google button.
  2. Select your account in the Google sign-in window that opens.
  3. Approve the permissions requested by SkyStudio.
  4. Once authorization is successful, the connection is saved automatically.

Note: During authorization, Google will request permissions for Drive and Sheets access. Approve all requested permissions so your workflows can run properly.

Assigning the Connection to the Node

After dragging the Google Drive node onto the canvas, select the connection you created from the Application Connections dropdown in the right panel.


Operations

The Google Drive node provides 13 operations:

OperationCategoryDescription
List FilesFeaturedLists files and folders in a specific folder
Search FileFeaturedSearches files in Drive using a search query
Google Drive AI AssistantFeaturedQueries Drive files using natural language
Get Spreadsheet RowsFeaturedRetrieves row data from Google Sheets
Read File ContentFeaturedReads the content of a file, with an AI analysis option
Ask FileFeaturedAsks a natural language question about a file
Get File InformationStandardRetrieves file metadata
Create FolderStandardCreates a new folder in Drive
Spreadsheet InformationStandardRetrieves metadata about Google Sheets
Add RowStandardAdds a new row to Google Sheets
Update CellStandardUpdates cell values in Google Sheets
Clear CellsStandardClears cells in Google Sheets
Create SpreadsheetStandardCreates a new Google Sheets file

List Files

Lists all files and subfolders in a specific folder. If no Folder ID is provided, the root directory of Drive is listed.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Folder IDNoDrive ID of the folder to list. If left empty, the root directory is used
Page SizeNoNumber of files to retrieve per page

How to Find the Folder ID

Open the folder in Google Drive. The last segment in the URL is the Folder ID.

Example:

https://drive.google.com/drive/folders/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs

ID:

1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs

Search File

Searches files using Google Drive search syntax. You can filter by name, content, MIME type, and other criteria.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Search QueryYesDrive search query
Page SizeNoNumber of results to retrieve per page

Search Query Examples

PurposeQuery
Search by namename contains 'report'
Find a specific typemimeType = 'application/pdf'
Search inside a folder'FOLDER_ID' in parents
Starred filesstarred = true
Recently modifiedmodifiedTime > '2024-01-01'

Google Drive AI Assistant

Queries your Drive files using natural language. It is used to interpret file contents and extract information.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
QueryYesNatural language question or task
System PromptNoInstruction that customizes AI behavior

Usage Example

Query: "Find and summarize the meeting notes shared last month"

System Prompt: "Look only at files in the 'Meeting Notes' folder. Respond in Turkish."


Get Spreadsheet Rows

Retrieves rows from a specific range in Google Sheets in JSON format.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Spreadsheet IDYesDrive ID of the Google Sheets file
RangeNoCell range to read, such as Sheet1!A1:D100
First Row is HeaderNoWhether the first row is used as the header row

How to Find the Spreadsheet ID

The part between /d/ and /edit in the Google Sheets URL is the Spreadsheet ID.

Example:

https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs/edit

ID:

1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs

Range Format

  • Entire sheet: Sheet1 or Sayfa1
  • Specific range: Sheet1!A1:D50
  • Entire column A: Sheet1!A:A
  • First 10 rows: Sheet1!1:10

Read File Content

Reads the content of a file in Google Drive. Depending on the read method, it can return raw text, AI analysis, or structured data.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
File IDYesDrive ID of the file to read
Read MethodNoReading method, such as raw or analyze
After ReadingNoAction to perform after reading
AI Prompt if analyzingNoInstruction to use for AI analysis
Response LanguageNoResponse language

Supported File Types

Google Docs, Google Sheets, Google Slides, PDF, TXT, DOCX, and other text-based files can be read.


Ask File

Allows you to ask a natural language question about a Drive file. The file content is automatically loaded and processed with AI.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
File IDYesDrive ID of the file to query
QuestionYesNatural language question to ask about the file
Response LanguageNoResponse language

Usage Example

File ID: 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs

Question: "What are the main findings in this report? List them as bullet points."

Response Language: Turkish


Get File Information

Retrieves metadata such as file name, size, creation date, and MIME type. It does not read the file content.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
File IDYesDrive ID of the file whose metadata will be retrieved

Example Output

{
"id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs",
"name": "Q4 Sales Report.pdf",
"mimeType": "application/pdf",
"size": "245760",
"createdTime": "2024-10-01T09:00:00.000Z",
"modifiedTime": "2024-11-15T14:30:00.000Z",
"webViewLink": "https://drive.google.com/file/d/..."
}

Create Folder

Creates a new folder in Google Drive. Optionally, it can be created inside an existing folder.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Folder NameYesName of the folder to create
Parent Folder IDNoDrive ID of the parent folder. If left empty, the root directory is used

Spreadsheet Information

Retrieves structural metadata about a Google Sheets file, such as sheet names and row/column counts.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Spreadsheet IDYesID of the Sheets file whose information will be retrieved

Add Row

Adds one or more new rows to an existing Google Sheets sheet.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Spreadsheet IDYesID of the target Sheets file
Sheet NameYesName of the sheet where rows will be added, such as Sheet1
Rows (JSON)YesRow data to add, in JSON array format

Rows Format

[
{
"Name": "Ayşe",
"Surname": "Kaya",
"Department": "Marketing"
},
{
"Name": "Mehmet",
"Surname": "Demir",
"Department": "Engineering"
}
]

Update Cell

Updates cell values in a specific range in Google Sheets.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Spreadsheet IDYesID of the target Sheets file
RangeYesCell range to update, such as Sheet1!B2:C3
Values (2D JSON Array)YesValues to write, in 2D array format

Values Format

[
["New Value 1", "New Value 2"],
["New Value 3", "New Value 4"]
]

Clear Cells

Clears cell contents in a specific range in Google Sheets. Formatting is preserved.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Spreadsheet IDYesID of the target Sheets file
RangeYesCell range to clear, such as Sheet1!A2:Z1000

Note: This operation only clears cell contents and preserves cell formatting, such as colors and fonts.


Create Spreadsheet

Creates a new Google Sheets file. You can define the initial sheet names.

Parameters

ParameterRequiredDescription
ConnectionYesThe Google Drive connection to use
Spreadsheet TitleYesName of the Sheets file to create
Sheet Names CSVNoComma-separated sheet names, such as January,February,March

Example Output

{
"spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs",
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/...",
"title": "2025 Sales Tracking Sheet"
}

Quick Start Examples

Example 1: Document Q&A Assistant

A workflow where the user can ask questions about any document in Drive:

Text Input (File ID) → Ask File → Text Output

Ask File settings:

  • File ID: {{input.file_id}}
  • Question: {{input.question}}
  • Response Language: Turkish

Example 2: Automatic Report Collection

A workflow that finds all PDF reports in a specific folder and summarizes their contents:

Search File → Loop → Read File Content → LLM (summarize) → Add Row

Search File settings:

  • Search Query: 'FOLDER_ID' in parents and mimeType = 'application/pdf'

Read File Content settings:

  • Read Method: analyze
  • AI Prompt: "Summarize the main findings of this report in 3 bullet points"

Example 3: Save Form Data to Sheets

A workflow that automatically writes form data received through a webhook to Google Sheets:

Webhook → Add Row (Google Sheets)

Add Row settings:

  • Spreadsheet ID: 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs
  • Sheet Name: Applications
  • Rows (JSON): [{"Name": "{{webhook.name}}", "Email": "{{webhook.email}}", "Date": "{{now}}"}]

Example 4: Creating Folder Structure

A workflow that automatically creates a standard folder structure for a new project:

Text Input (Project Name) → Create Folder (Main) → Create Folder (Sub1) → Create Folder (Sub2)

First Create Folder settings:

  • Folder Name: {{input.project_name}}
  • Parent Folder ID: PROJECTS_FOLDER_ID

Common Errors

ErrorPossible CauseSolution
401 UnauthorizedOAuth token has expiredReauthorize with Google to refresh the connection
403 ForbiddenNo permission to access the fileCheck sharing settings in Google Drive
404 File not foundInvalid File ID or Spreadsheet IDCopy the ID again from the Drive URL
Invalid rangeIncorrect Range formatMake sure you use the Sheet1!A1:D10 format
Quota exceededDaily Google API limit exceededAdd delay between requests or try again the next day
Token has been expiredOAuth authorization has expiredRefresh the connection from Application Connections

Notes

  • File ID and Spreadsheet ID refer to the same concept. Every Google Sheets file is also a Drive file.
  • Google Drive API has daily request limits. For large data operations, consider Page Size and request intervals.
  • Ask File and Read File Content (AI analysis) operations may take longer for large files.
  • Binary files outside Google Workspace, such as images and videos, may not be supported for content reading.