Google Sheets
Read ranges, append rows, update and clear cells, find and upsert rows by header (OAuth or service account)
Beta v0.1.0 Node.js 11 actions
About
A Graphrt plugin for the official Google Sheets API v4. Use a spreadsheet as a shared data sink for workflows: read ranges, append rows, overwrite or clear cells, and treat a sheet with a header row as a small table (find rows, upsert by key). Every operation is a workflow node and an agent tool.
What it can do
- Spreadsheets: metadata and sheet list, create a spreadsheet, add a sheet (tab)
- Values: read one range or many, append rows (USER_ENTERED or RAW, INSERT_ROWS or OVERWRITE), update a range, clear a range
- Records: find_rows (header row + simple filters, done in the plugin) and upsert_row (match by a key column, update only the given cells, or append)
- api_request: any other Sheets API endpoint, restricted to sheets.googleapis.com
- Auth: OAuth refresh token, service account key file, or a ready access token. Tokens are fetched and cached by the plugin.
- Sheet names are always quoted for you (My Sheet becomes 'My Sheet', Jon's becomes 'Jon''s')
- Writes that may already have happened (append, create, upsert) are never retried, the error says how to check. clear_range is idempotent, so its failures are retryable
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Get Google spreadsheet
google-sheets.get_spreadsheet - Create Google spreadsheet
google-sheets.create_spreadsheet - Add sheet to Google spreadsheet
google-sheets.add_sheet - Read Google Sheets range
google-sheets.read_range - Read several Google Sheets ranges
google-sheets.batch_read - Append rows to Google Sheet
google-sheets.append_rows - Update Google Sheets range
google-sheets.update_range - Clear Google Sheets range
google-sheets.clear_range - Find rows in Google Sheet
google-sheets.find_rows - Upsert row in Google Sheet
google-sheets.upsert_row
Show all 11 actions
- Google Sheets API request
google-sheets.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
GOOGLE_REFRESH_TOKENOAuth refresh token for a Google account (authorize with access_type=offline and the spreadsheets scope) -
GOOGLE_CLIENT_IDOAuth client id that issued the refresh token -
GOOGLE_CLIENT_SECRETOAuth client secret -
GOOGLE_SERVICE_ACCOUNT_JSONPath to a service account JSON key file -
GOOGLE_ACCESS_TOKENA ready OAuth access token (expires after about an hour), e.g. from gcloud auth print-access-token -
GOOGLE_SHEETS_TOOL_TOKEN_SOURCE
How to use it
In Graphrt Desktop
- Open Plugins and search for Google Sheets.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install google-sheets workflow.yaml
- id: log
type: google-sheets.append_rows
spreadsheet_id: "1AbC..."
sheet: "Orders 2026"
rows: [["{{#start.order_id#}}", "{{#start.customer#}}", "new"]]
- id: mark_paid
type: google-sheets.upsert_row
spreadsheet_id: "1AbC..."
sheet: "Orders 2026"
key_column: "Order ID"
record: { "Order ID": "{{#start.order_id#}}", "Status": "paid" }