Datatape
Sources

Google Sheets

Connect a Google Sheets spreadsheet as a source for your Datatape tools.

Google Sheets source

Google Sheets sources let you expose spreadsheet data to AI agents without building an API. Ideal for lookup tables, configuration data, team directories, and lightweight datasets.

Google Sheets source connection form

Connection fields

FieldRequiredDescription
Spreadsheet URLYesThe full URL of your Google Sheets spreadsheet
https://docs.google.com/spreadsheets/d/1AbCdEfGhIjKlMnOpQrStUvWxYz/edit

Datatape extracts the spreadsheet ID from the URL automatically.

Sharing requirements

The spreadsheet must be accessible to Datatape. You have two options:

  1. Open the spreadsheet in Google Sheets
  2. Click Share
  3. Under General access, select Anyone with the link
  4. Set the role to Viewer

Viewer access is sufficient. Datatape only reads data from sheets — it never writes or modifies cells.

Share the spreadsheet with the Datatape service account email address:

  1. Open the spreadsheet in Google Sheets
  2. Click Share
  3. Add datatape@your-project.iam.gserviceaccount.com as a Viewer

This keeps the spreadsheet private while granting Datatape read access.

If you change the sharing settings after connecting the source, Datatape will lose access and tool executions will fail. Re-test the connection if you modify sharing.

Writing tools for Sheets data

When you create a tool backed by a Google Sheets source, you query the data using SQL-like syntax. Datatape maps sheets to tables and columns to fields.

-- Query the first sheet
SELECT * FROM Sheet1 WHERE region = '{{ region }}'

-- Query a named sheet
SELECT name, email FROM "Team Directory" WHERE department = '{{ dept }}'

Sheet names with spaces or special characters must be quoted with double quotes in your SQL templates.

Limitations

LimitationDetail
SizeBest for spreadsheets under 10,000 rows. Larger sheets may cause slow tool responses.
Data typesAll values are treated as strings. Use type casting in your SQL if needed.
Real-time syncData is read at query time. There is no caching — each tool call fetches fresh data.
Write accessNot supported. Datatape is read-only.
Multiple sheetsEach sheet in the spreadsheet is available as a separate table.
FormulasDatatape reads computed values, not the underlying formulas.

Common connection issues

SymptomLikely causeFix
Spreadsheet not foundURL is incorrect or sheet was deletedVerify the spreadsheet URL
Permission deniedSharing settings do not include DatatapeEnable link sharing or share with the service account
Sheet is emptyThe target sheet has no dataAdd headers and at least one row of data
Column not foundColumn name mismatchColumn names come from the first row (headers). Check for typos or extra spaces.

Testing the connection

Click Test connection before saving. Datatape verifies that it can read the spreadsheet metadata and list available sheets.

Source row showing a green 'Connected' badge after a successful test

Security notes

  • Spreadsheet URLs are encrypted at rest
  • Data is fetched over HTTPS via the Google Sheets API
  • Each source is scoped to your organization

On this page