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).

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.

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:

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

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 for the current connector fields and supported actions.
Was this helpful?

