Skip to main content
Enable Agno agents to read, create, update and duplicate Google Sheets.

Prerequisites

  • To use a service account for access to Google Sheets, provide the absolute path to the service account file either using the service_account_path arg in the GoogleSheetsTools constructor or specify the GOOGLE_SERVICE_ACCOUNT_FILE environment variable.
  • Add the complete auth URL as an authorised redirect URIs for the Client ID in the Google Cloud Console. For example, to use Localhost and port 8080, specify: http://localhost:8080/flowName=GeneralOAuthFlow and pass the oauth_port to Google Sheets Toolkit.

Run the Example

For details, see Google Sheets cookbook.