Google Sheet Output Node

Google Sheet Output Node writes data to Google Sheets and is a data output node. It automatically handles data format conversion, persisting upstream node data to Google Sheets.


Node Information

Property
Value

Node Type

gsheet_output_node

Display Name

Google Sheet Output

Node Category

Output

Icon

πŸ“Š Sheet icon (green)

Handle Color

Rose


Functionality

Google Sheet Output Node writes upstream node data to Google Sheets for data persistence, logging, and result export.

Primary Use Cases:

  • Save trading records

  • Export analysis results

  • Record log data

  • Persist configuration

  • Backup important data

Key Features:

  • πŸ’Ύ Google Sheets Integration: Direct write to Google Sheets

  • πŸ”„ Auto Formatting: Converts JSON data to tabular format

  • πŸ“‹ Header Generation: Automatically creates header rows

  • ✍️ Overwrite Mode: Overwrites existing data


Input Parameters

Parameter List

Parameter
Type
Required
Default
Description

data

object

Yes

-

Data to write (JSON format)

doc_link

text

No

-

Google Sheets URL or ID

data Parameter

Source: Upstream node output

Expected Format:

Example Input:

Supported Data Formats:

  1. Standard format: Contains headers and rows

  2. Object array: [{col1: val1, col2: val2}, ...]

  3. Nested objects: Auto-flattened

Supported Formats:

  1. Full URL:

  1. Sheet ID:


Output Parameters

Google Sheet Output Node has no output parameters (terminal node).


Usage Examples

Example 1: Saving Trading Records

Scenario: Save trading history to Google Sheets.

Workflow Structure:

Code Node Output:

Node Configuration:


Example 2: Exporting Analysis Results

Scenario: Export AI analysis results to Google Sheets.

Workflow Structure:

analysis_data Format:


Example 3: Logging

Scenario: Record workflow execution logs.

Workflow Structure:

log_data Example:


Google Sheets Configuration

Requirements

  1. Create Service Account

  2. Enable Google Sheets API

  3. Download credentials file

  4. Share Google Sheets (requires "Editor" permission)

Permission Requirements:

  • Google Sheet Input: "Viewer" is sufficient

  • Google Sheet Output: Must have "Editor" permission


Best Practices

1. Data Formatting

Format in Code Node:

2. Data Validation

Validate before writing:


Important Notes

  1. Overwrite Warning

    • Google Sheet Output Node overwrites existing data

    • Confirm target worksheet before writing

    • Consider using different worksheet names

  2. Permission Requirements

    • Service Account must have "Editor" permission

    • "Viewer" only permission will cause write failure

  3. Data Format

    • Must provide headers and rows

    • All rows must have consistent column count

    • Data will be converted to strings

  4. API Quota

    • Daily write limits apply

    • Heavy writes may trigger limits

    • Consider batch writing

  5. Concurrent Writes

    • Avoid multiple nodes writing to the same sheet

    • May cause data conflicts


Troubleshooting

Q: "Permission denied"?

A:

  1. Confirm Service Account has "Editor" permission

  2. Re-share Google Sheets

  3. Check credentials file is correct


Q: Data format is garbled after writing?

A:

  1. Check if headers and rows have consistent column counts

  2. Confirm all rows have the same length

  3. Validate data format


Q: "No input data received"?

A:

  1. Confirm upstream node correctly sent data signal

  2. Check data connection is correct

  3. Validate data format meets requirements


Technical Specifications

Specification
Value

Node Version

0.1.0

Write Mode

Write (overwrite)

Data Source

Google Sheets

API

Google Sheets API v4

Permission Required

Editor

Timeout

60 seconds


  • Google Sheet Input Node - Read data from Google Sheets

  • Code Node - Format data for writing

  • AI Model Node - Generate analysis results

  • Swap Node - Generate trading records


Related Documentation:

Last updated