Overview
Enable your agents to manage spreadsheet data through Google Sheets. Read rows, create new entries, update existing data, and streamline your data management workflows with AI-powered automation. Perfect for data tracking, reporting, and collaborative data management.Prerequisites
Before using the Google Sheets integration, ensure you have:- A CrewAI Enterprise account with an active subscription
- A Google account with Google Sheets access
- Connected your Google account through the Integrations page
- Spreadsheets with proper column headers for data operations
Setting Up Google Sheets Integration
1. Connect Your Google Account
- Navigate to CrewAI Enterprise Integrations
- Find Google Sheets in the Authentication Integrations section
- Click Connect and complete the OAuth flow
- Grant the necessary permissions for spreadsheet access
- Copy your Enterprise Token from Account Settings
2. Install Required Package
Available Actions
GOOGLE_SHEETS_GET_ROW
GOOGLE_SHEETS_GET_ROW
Description: Get rows from a Google Sheets spreadsheet.Parameters:
spreadsheetId
(string, required): Spreadsheet - Use Connect Portal Workflow Settings to allow users to select a spreadsheet. Defaults to using the first worksheet in the selected spreadsheet.limit
(string, optional): Limit rows - Limit the maximum number of rows to return.
GOOGLE_SHEETS_CREATE_ROW
GOOGLE_SHEETS_CREATE_ROW
Description: Create a new row in a Google Sheets spreadsheet.Parameters:
spreadsheetId
(string, required): Spreadsheet - Use Connect Portal Workflow Settings to allow users to select a spreadsheet. Defaults to using the first worksheet in the selected spreadsheet..worksheet
(string, required): Worksheet - Your worksheet must have column headers.additionalFields
(object, required): Fields - Include fields to create this row with, as an object with keys of Column Names. Use Connect Portal Workflow Settings to allow users to select a Column Mapping.
GOOGLE_SHEETS_UPDATE_ROW
GOOGLE_SHEETS_UPDATE_ROW
Description: Update existing rows in a Google Sheets spreadsheet.Parameters:
spreadsheetId
(string, required): Spreadsheet - Use Connect Portal Workflow Settings to allow users to select a spreadsheet. Defaults to using the first worksheet in the selected spreadsheet.worksheet
(string, required): Worksheet - Your worksheet must have column headers.filterFormula
(object, optional): A filter in disjunctive normal form - OR of AND groups of single conditions to identify which rows to update.Available operators:$stringContains
,$stringDoesNotContain
,$stringExactlyMatches
,$stringDoesNotExactlyMatch
,$stringStartsWith
,$stringDoesNotStartWith
,$stringEndsWith
,$stringDoesNotEndWith
,$numberGreaterThan
,$numberLessThan
,$numberEquals
,$numberDoesNotEqual
,$dateTimeAfter
,$dateTimeBefore
,$dateTimeEquals
,$booleanTrue
,$booleanFalse
,$exists
,$doesNotExist
additionalFields
(object, required): Fields - Include fields to update, as an object with keys of Column Names. Use Connect Portal Workflow Settings to allow users to select a Column Mapping.
Usage Examples
Basic Google Sheets Agent Setup
Filtering Specific Google Sheets Tools
Data Analysis and Reporting
Automated Data Updates
Complex Data Management Workflow
Troubleshooting
Common Issues
Permission Errors- Ensure your Google account has edit access to the target spreadsheets
- Verify that the OAuth connection includes required scopes for Google Sheets API
- Check that spreadsheets are shared with the authenticated account
- Ensure worksheets have proper column headers before creating or updating rows
- Verify that column names in
additionalFields
match the actual column headers - Check that the specified worksheet exists in the spreadsheet
- Ensure data values match the expected format for each column
- Use proper date formats for date columns (ISO format recommended)
- Verify that numeric values are properly formatted for number columns
- Ensure filter formulas follow the correct JSON structure for disjunctive normal form
- Use valid field names that match actual column headers
- Test simple filters before building complex multi-condition queries
- Verify that operator types match the data types in the columns
- Be mindful of row limits when using
GOOGLE_SHEETS_GET_ROW
- Consider pagination for large datasets
- Use specific filters to reduce the amount of data processed
- Ensure filter conditions properly identify the intended rows for updates
- Test filter conditions with small datasets before large updates
- Verify that all required fields are included in update operations
Getting Help
Need Help?
Contact our support team for assistance with Google Sheets integration setup or troubleshooting.