Requirements for Proper Functionality
To ensure smooth operation:- Header Row: The first row of your spreadsheet must serve as the header row.
- Unique Header Names: Each column header must have a unique name. This allows the block to identify which column to update.
Example Header Row
Name | Phone | Submission Date | |
---|---|---|---|
Alice | alice@example.com | 123-4567 | 08/01/2025 |
Bob | bob@example.com | 08/01/2025 |
Adding a Submission Date to a Row
To add a submission date to a row:- Create a new variable with the value
Now
. This variable will store the current date and time. - Use the Sheets block to update the
Submission Date
column using theNow
variable.
Advanced Concepts
API Limitations
The Google Sheets API has the following rate limits:- 60 Read Requests per Minute
- 60 Write Requests per Minute
Recommendation: Minimize the number of Sheets blocks used in your Agent. If working with multiple sheets, aggregate the data into a single sheet first and interact with that aggregated sheet.
Troubleshooting
If the Sheets block fails to insert or update a row, follow these steps:- Check the Logs: Ensure the block executed as expected.
- Validate Headers: Confirm that your spreadsheet’s headers are properly defined and unique.
- Review API Limits: Verify that you have not exceeded Google’s API rate limits.