Overview
Enable your agents to manage files and folders through Google Drive. Upload, download, organize, and share files, create folders, and streamline your document management workflows with AI-powered automation.Prerequisites
Before using the Google Drive integration, ensure you have:- A CrewAI AMP account with an active subscription
- A Google account with Google Drive access
- Connected your Google account through the Integrations page
Setting Up Google Drive Integration
1. Connect Your Google Account
- Navigate to CrewAI AMP Integrations
- Find Google Drive in the Authentication Integrations section
- Click Connect and complete the OAuth flow
- Grant the necessary permissions for file and folder management
- Copy your Enterprise Token from Integration Settings
2. Install Required Package
Available Actions
google_drive/get_file
google_drive/get_file
Description: Get a file by ID from Google Drive.Parameters:
file_id
(string, required): The ID of the file to retrieve.
google_drive/list_files
google_drive/list_files
Description: List files in Google Drive.Parameters:
q
(string, optional): Query string to filter files (example: โname contains โreportโโ).page_size
(integer, optional): Maximum number of files to return (default: 100, max: 1000).page_token
(string, optional): Token for retrieving the next page of results.order_by
(string, optional): Sort order (example: โnameโ, โcreatedTime descโ, โmodifiedTimeโ).spaces
(string, optional): Comma-separated list of spaces to query (drive, appDataFolder, photos).
google_drive/upload_file
google_drive/upload_file
Description: Upload a file to Google Drive.Parameters:
name
(string, required): Name of the file to create.content
(string, required): Content of the file to upload.mime_type
(string, optional): MIME type of the file (example: โtext/plainโ, โapplication/pdfโ).parent_folder_id
(string, optional): ID of the parent folder where the file should be created.description
(string, optional): Description of the file.
google_drive/download_file
google_drive/download_file
Description: Download a file from Google Drive.Parameters:
file_id
(string, required): The ID of the file to download.mime_type
(string, optional): MIME type for export (required for Google Workspace documents).
google_drive/create_folder
google_drive/create_folder
Description: Create a new folder in Google Drive.Parameters:
name
(string, required): Name of the folder to create.parent_folder_id
(string, optional): ID of the parent folder where the new folder should be created.description
(string, optional): Description of the folder.
google_drive/delete_file
google_drive/delete_file
Description: Delete a file from Google Drive.Parameters:
file_id
(string, required): The ID of the file to delete.
google_drive/share_file
google_drive/share_file
google_drive/update_file
google_drive/update_file
Description: Update an existing file in Google Drive.Parameters:
file_id
(string, required): The ID of the file to update.name
(string, optional): New name for the file.content
(string, optional): New content for the file.mime_type
(string, optional): New MIME type for the file.description
(string, optional): New description for the file.add_parents
(string, optional): Comma-separated list of parent folder IDs to add.remove_parents
(string, optional): Comma-separated list of parent folder IDs to remove.