Skip to content

Google Sheets#

Use the Google Sheets node to automate work in Google Sheets, and integrate Google Sheets with other applications. n8n has built-in support for a wide range of Google Sheets features, including creating, updating, deleting, appending, removing and getting documents.

On this page, you'll find a list of operations the Google Sheets node supports and links to more resources.

Credentials

Refer to Google Sheets credentials for guidance on setting up authentication.

Operations#

Templates and examples#

OpenAI GPT-3: Company Enrichment from website content

by Lucas Perret

View template details
Chat with a Google Sheet using AI

by David Roberts

View template details
Google Maps Scraper

by Lucas Perret

View template details
Browse Google Sheets integration templates, or search all templates

Refer to Google Sheet's API documentation for more information about the service.

What to do if your operation isn't supported#

If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.

You can use the credential you created for this service in the HTTP Request node:

  1. In the HTTP Request node, select Authentication > Predefined Credential Type.
  2. Select the service you want to connect to.
  3. Select your credential.

Refer to Custom API operations for more information.

Append an array#

To insert an array of data into Google Sheets, you must convert the array into a valid JSON (key, value) format.

To do so, consider using:

  1. The Split Out node.
  2. The AI Transform node. For example, try entering something like:
    1
    Convert 'languages' array to JSON (key, value) pairs.
    
  3. The Code node.

Column names were updated after the node's setup#

You'll receive this error if the Google Sheet's column names have changed since you set up the node.

To refresh the column names, re-select Mapping Column Mode. This should prompt the node to fetch the column names again.

Once the column names refresh, update the node parameters.