> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/google-sheets/connect-google-sheets-and-configure-sheet-access.md). Agents can also search and read this documentation through its [MCP server](https://docs.stackai.com/~gitbook/mcp).

# Connect Google Sheets and configure sheet access

The **Google Sheets Node** allows you to interact with and modify a Google Sheet, or to set a trigger when a Sheet is updated with new data.

***

### Configure a Sheets Tool

Right click to add a node, select **Google Sheets**, then choose your tool, whether it's a trigger for your workflow (e.g. **On Sheet Update**), an information extractor (e.g. **Get Spreadsheet Details**), or an action for your Sheet (e.g. **Write to Sheet**).

![Connect Google Sheets and configure sheet access setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FAu12eGZKvPOgwCEEPW7v%2Fcreate_gsheet.gif?alt=media)

### Create a Connection to Google Sheets

Click the node to open its settings, then select **Connect Google Sheets.**

On the dropdown menu under Select a Connection, click **New connection**, where you will be taken to a page to link your Google workspace to StackAI.

![Connect Google Sheets and configure sheet access setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FKQitGZ1orPbKKMzj4cH6%2Fgsheets.gif?alt=media)

Select a spreadsheet that the connected account has permission to access.

### Featured Tools

***

#### **Write to Sheet**

**Description:**\
Appends data to a specified Google Sheet.

**Input Fields**

* **Data Format**
  * Select whether you're inputting data manually or using a CSV file URL link.
* **Data**
  * If you selected manual entry, select the data that you're writing to the Sheet (must be **JSON object** with column names as keys).
  * If your data comes from an AI Agent node, make sure the prompt for the AI agent asks it to format the output as a JSON object for writing to your Sheet, as seen below:

![Connect Google Sheets and configure sheet access setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FRPN0zTV9I2pZQJ6KugL4%2FScreenshot%202025-12-04%20at%203.05.11%E2%80%AFPM.png?alt=media)

Select the AI Agent node's output as the data source for the Google Sheets action.

![Connect Google Sheets and configure sheet access setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FHnBXaiRBZLMjoK586PRg%2Fsheets_input.gif?alt=media)

* **CSV URL**
  * If you selected CSV file upload, add the file URL to parse.
* **Starting Cell**
  * Select the cell number in your Sheet that you'd like to write your first datapoint to (e.g. A1).

**Configurations Fields**

* **Spreadsheet (required)**
  * Select your Google Sheet.
* **Sheet (required)**
  * Select the tab of your Google Sheet to write to.

***

**Best Practices**

* Always use structured JSON for the data input for best results.
* Ensure you have the correct permissions to access and write to the selected Google Sheet.
* Use clear sheet and spreadsheet names to avoid confusion in multi-sheet documents.

***

## Connection fields and action reference

See [Google Sheets](https://docs.stackai.com/integrations/catalog/google-sheets.md) for the current connector fields and supported actions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/google-sheets/connect-google-sheets-and-configure-sheet-access.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
