Overview

Cloud storage service for file backup, sharing, and collaboration. Through Langdock’s integration, you can access and manage Google Drive directly from your conversations.
Authentication: OAuth
Category: Google Workspace
Availability: All workspace plans

Available Actions

Download File

googledrive.downloadFile
Downloads the contents of a file from Google Drive based on its file id Requires Confirmation: No Parameters:
  • itemId (TEXT, Required): The unique identifier of the file you want to download from Google Drive
Output: Returns the file content as a downloadable file

Get Current User

googledrive.getCurrentUser
Retrieves information about the currently logged-in Google Drive user Requires Confirmation: No Parameters: None Output: Returns user information including:
  • id: User ID
  • email: User email address
  • name: User display name
  • picture: User profile picture URL
  • verified_email: Whether the email is verified

Search Files

googledrive.searchFiles
Searches through files in your Google Drive using simple text queries Requires Confirmation: No Parameters:
  • query (TEXT, Optional): A query string for filtering the file results. If no query string is passed, it returns the most recent files. This searches through the full text and the titles of the files
Output: Returns an array of files matching the search criteria

Get Folder

googledrive.getFolder
Searches for folders in Google Drive by name Requires Confirmation: No Parameters:
  • folderName (TEXT, Required): Search term used to find folders that contain this text in their names. For example, you can search for ‘Projects’, ‘Marketing’, or ‘Documents’ to find folders with those terms in their names
Output: Returns an array of folders with the following structure:
  • id: Folder ID
  • name: Folder name
  • mimeType: Folder MIME type (application/vnd.google-apps.folder)
  • parents: Array of parent folder IDs
  • createdTime: Creation timestamp
  • modifiedTime: Last modification timestamp
  • webViewLink: Link to view the folder in Google Drive

Search Files (Advanced)

googledrive.searchFilesAdvanced
Searches through the available files in your Google Drive with advanced filtering options Requires Confirmation: No Parameters:
  • pageToken (TEXT, Optional): The token for continuing a previous list request on the next page. This should be set to the value of ‘nextPageToken’ from the previous response
    • query (TEXT, Optional): A query string for filtering the file results. If user asks to get recent files without a specific search query, leave this field empty.
    • orderBy (TEXT, Optional): A comma-separated list of sort keys. Valid keys are: createdTime: When the file was created. folder: The folder ID. This field is sorted using alphabetical ordering. modifiedByMeTime: The last time the file was modified by the user. modifiedTime: The last time the file was modified by anyone. name: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. name_natural: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. quotaBytesUsed: The number of storage quota bytes used by the file. recency: The most recent timestamp from the file’s date-time fields. sharedWithMeTime: When the file was shared with the user, if applicable. starred: Whether the user has starred the file. viewedByMeTime: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the ‘desc’ modifier. Example usage: folder,modifiedTime desc,name
    • folderId (TEXT, Optional): Unique identifier of the folder in which you want to search.
Output: Returns search results with the following structure:
  • files: Array of file objects containing:
    • id: File ID
    • name: File name
    • mimeType: File MIME type
    • createdTime: Creation timestamp
    • modifiedTime: Last modification timestamp
    • size: File size in bytes
    • webViewLink: Link to view the file
    • owners: Array of owner information
    • parents: Array of parent folder IDs
  • nextPageToken: Token for pagination (if more results available)

Download Google Drive File

googledrive.downloadGoogleDriveFile
Downloads the contents of a file from Google Drive based on its file id Requires Confirmation: No Parameters:
  • itemId (TEXT, Required): The unique identifier of the file you want to download from Google Drive.
Output: Returns the file content as a downloadable file

List Files in Folder

googledrive.listFilesinFolder
Lists all files in a Google Drive folder including subfolders, limited to the first 200 files Requires Confirmation: No Parameters:
  • folderId (TEXT, Required): The unique identifier of the Google Drive folder to list files from. This will include files from the folder and all its subfolders
Output: Returns an array of files in the folder with their details

Upload File

googledrive.uploadFile
Upload a file to Google Drive with optional folder destination Requires Confirmation: No Parameters:
  • file (FILE, Required): The file to upload to Google Drive
    • folderId (TEXT, Optional): The ID of the folder where you want to upload the file. If not provided, the file will be uploaded to the root of your Google Drive
    • fileName (TEXT, Optional): Optional custom name for the file. If not provided, the original filename will be used
Output: Returns the uploaded file information including:
  • id: File ID
  • name: File name
  • mimeType: File MIME type
  • size: File size in bytes
  • webViewLink: Link to view the file
  • createdTime: Upload timestamp

Triggers


New File

googledrive.newFile
Triggers when new files are added to Google Drive Requires Confirmation: No Parameters:
  • folderIds (TEXT, Optional): Comma-separated list of folder IDs to monitor for new files
Output: Returns information about newly added files

Updated File

googledrive.updatedFile
Triggers when files are updated in Google Drive Requires Confirmation: No Parameters:
  • fileIds (TEXT, Optional): Comma-separated list of file IDs to monitor for updates
    • folderIds (TEXT, Optional): Comma-separated list of folder IDs to monitor for updates
Output: Returns information about updated files

New Folder

googledrive.newFolder
Triggers when new folders are added to Google Drive Requires Confirmation: No Parameters:
  • parentFolderId (TEXT, Optional): Comma-separated list of parent folder IDs to monitor for new folders
Output: Returns information about newly created folders

Common Use Cases

Data Management

Manage and organize your Google Drive data

Automation

Automate workflows with Google Drive

Reporting

Generate insights and reports

Integration

Connect Google Drive with other tools

Best Practices

Getting Started:
  1. Enable the Google Drive integration in your workspace settings
  2. Authenticate using OAuth
  3. Test the connection with a simple read operation
  4. Explore available actions for your use case
Important Considerations:
  • Ensure proper authentication credentials
  • Respect rate limits and API quotas
  • Review data privacy settings
  • Test operations in a safe environment first

Troubleshooting

IssueSolution
Authentication failedVerify your OAuth credentials
Rate limit exceededReduce request frequency
Data not foundCheck permissions and data availability
Connection timeoutVerify network connectivity

Support

For additional help with the Google Drive integration, contact support@langdock.com