n8n Google Sheets Integration: Step-by-Step Guide
Connect n8n to Google Sheets, choose the right authentication method, and read, append, or update spreadsheet rows. Follow practical examples and fix common OAuth, column-mapping, and trigger issues.
- Cloud and self-hosted auth explained
- Read, append, and update rows
- Examples and fixes included
Connect n8n to Google Sheets
Use spreadsheet data in workflows instead of moving it by hand.
The n8n Google Sheets integration connects spreadsheet rows with other apps and workflow steps. You can read existing records, add new rows, update matching data, or use a supported Sheets trigger to start a workflow.
For example, a form submission can be checked, mapped to spreadsheet columns, saved as a new row, and followed by a notification. You can also use Sheets for lightweight lead tracking, inventory checks, reports, and AI-assisted data processing.
Learn the broader workflow concepts in our n8n workflow automation guide or browse the n8n integrations hub.
What can the Google Sheets node do?
Operations vary with the selected resource and your n8n version. Check the current node options before following older tutorials.
| Operation | What it does | Example |
|---|---|---|
| Get Row(s) | Reads rows from a selected sheet. | Find new leads or report data. |
| Append Row | Adds a new row to the sheet. | Save a form response. |
| Update Row | Changes an existing row. | Change a lead status. |
| Append or Update Row | Adds a row or updates a matching record. | Keep records synchronized. |
| Create or manage sheets | Creates or manages spreadsheet documents, tabs, or data, depending on operation. | Prepare a reporting tab. |
Use caution with destructive operations such as Clear and Delete. Test them on a copy of your spreadsheet first.
Choose the right Google authentication method
Your n8n hosting setup determines which credential steps you need.
| n8n setup | Typical approach | What to know |
|---|---|---|
| n8n Cloud | Managed Google sign-in for supported Google nodes. | Start with the built-in sign-in option if available in your credential screen. |
| Self-hosted n8n | Configure your own Google OAuth2 credentials. | Use the redirect URL shown by n8n; it must match exactly in Google Cloud. |
| Server-to-server use | A service account may be appropriate where supported. | Share the spreadsheet with the service account email; it has no automatic access to personal files. |
For self-hosted deployment details, see our self-hosted n8n tutorial.
Before connecting Google Sheets
- A working n8n Cloud account or self-hosted n8n instance.
- A Google account with access to the spreadsheet.
- Edit permission if the workflow needs to write or update data.
- Clear column headings in the first row of the sheet.
- Google Cloud Console access if you need custom OAuth2 credentials.
Example sheet headings: Name, Email, Company, Status, Date. Keep headings unique and consistent.
Connect Google Sheets in n8n Cloud
Use managed Google sign-in when it is available for your account and node.
- 1
Add a Google Sheets node
Open a workflow, add the node, and choose the operation you need.
- 2
Create a credential
Choose the Google sign-in option shown in the credential selector.
- 3
Authorize the account
Sign in to the Google account that can access the spreadsheet and approve the requested permissions.
- 4
Save and select your document
Return to n8n, save the credential, then select the spreadsheet and sheet tab.
- 5
Run a small test
Execute the node and inspect the data before building the full workflow.
Configure Google OAuth2 for self-hosted n8n
Use the current n8n and Google Cloud Console screens; menu names may change.
- Create or select a Google Cloud project for the integration.
- Enable the Google Sheets API and, where required for spreadsheet discovery, the Google Drive API.
- Configure the Google Auth Platform consent screen and add test users if your app is in testing mode.
- Create an OAuth client with Web application as its type.
- In n8n, create a Google Sheets OAuth2 credential and copy its displayed redirect URL.
- Paste that exact URL into Google Cloud’s authorized redirect URI field and save.
- Copy the Client ID and Client Secret into n8n. Keep the secret private.
- Connect the Google account and test access to the spreadsheet.
Do not guess the redirect URL. Copy the complete URL shown by your n8n credential. A mismatch is a common cause of OAuth errors.
Google’s menus and OAuth requirements can change. Follow current official setup documentation if the labels differ.
When to use a service account
A service account is a separate Google identity that may suit server-to-server workflows when the selected n8n credential and operation support it.
- Create the service account and configure required access.
- Set up the matching service-account credential in n8n.
- Share the target spreadsheet with the service account’s email address.
- Test the workflow with that spreadsheet.
Creating a service account does not automatically grant access to your personal Google Sheets. Protect service-account keys like passwords.
Read rows from Google Sheets
Use a manual run first so you can inspect the returned data.
- 1
Create a workflow
Add a Manual Trigger for testing.
- 2
Add Google Sheets
Select the Google Sheets node and choose Get Row(s).
- 3
Select spreadsheet and tab
Choose the document from the list or use its URL or ID if that option is available.
- 4
Add filters if needed
For example, retrieve records with a Status value of “New”. Options depend on your node version.
- 5
Execute and inspect
Confirm the expected rows and column values appear in the output.
Append a new row and map columns
A reliable mapping starts with clear spreadsheet headers.
Use Append Row when you want to add a new record to the end of the selected sheet.
| Sheet column | Incoming workflow field | Example |
|---|---|---|
| Name | name |
Alex Rivera |
email |
alex@example.com | |
| Company | company |
Example Ltd |
| Status | Set a fixed value | New |
| Date | submitted_at |
Workflow timestamp |
Configure the incoming data, choose the spreadsheet and sheet, map each value to the correct column, then execute with one test record. Open the sheet and verify the row before processing more data.
Update a row without creating duplicates
Match records using a stable unique identifier.
For an existing lead whose status changes, first find the matching row, then update it. Use a customer ID or another stable key rather than a name that may not be unique.
Get Row(s)
Look for a record using the chosen unique key.
Check for a match
Route the workflow based on whether the row exists.
Update or append
Update the found row or add a new one if needed.
The Append or Update Row operation may handle this pattern when configured with the correct matching column.
Use the Google Sheets Trigger
The Google Sheets Trigger can start a workflow for supported events such as Row Added, Row Updated, or Row Added or Updated.
- Add the Sheets Trigger node.
- Connect your Google credential.
- Choose the spreadsheet, sheet tab, and event.
- Add a next step, such as email or team notification.
- Test the event and review its execution data.
- Activate the workflow after confirming its behavior.
Do not assume every change is processed instantly. Trigger checking behavior depends on node configuration; consult current documentation.
Google Sheets automation examples
Use Sheets as a practical source or destination for lightweight data workflows.
Save form submissions
Form Trigger → Edit Fields → Append Row → confirmation or team notification.
Send leads to a CRM
Sheets Trigger → validate information → create or update contact → notify sales.
Low-stock alerts
Schedule → Get Row(s) → check quantity → send an alert when below minimum.
Summarize customer feedback
Get Row(s) → prepare feedback → AI model → review summary → append report.
Create scheduled reports
Schedule → collect service data → format metrics → append or update → notify.
Organize email data
Email trigger → extract selected fields → check values → append a row.
Browse more practical n8n automation examples.
Use an AI prompt to classify spreadsheet feedback
Keep the model’s task narrow and check its output before writing it back.
Example prompt: “Classify this customer feedback as one of: Billing, Product, Delivery, Support, or Other. Return only JSON with the fields category and one_sentence_summary. If the message is unclear, use category ‘Other’. Feedback: {{ $json.feedback }}”
Then validate that the returned category is allowed and review summaries before using them for important decisions. Avoid sending unnecessary personal or confidential information to a model.
Common n8n Google Sheets problems
Authentication failed
Reconnect the credential, verify Client ID and Secret, enable required APIs, and check the redirect URL matches exactly.
No columns found
Check the selected sheet and account access. Ensure row one has unique, non-empty headings, then refresh the document selection.
Spreadsheet not listed
Confirm the connected Google account has access. Refresh the selector or use URL/ID if supported.
Values land in wrong columns
Compare incoming node output with sheet headers and correct the manual mapping or Edit Fields step.
Duplicate rows appear
Use a unique ID, check for an existing record, and review triggers and execution history.
Updates are delayed
Check execution status and trigger event settings; some trigger behavior uses a configured check interval.
Best practices for reliable spreadsheet automation
- Use clear and unique column headings.
- Use a stable record ID to find and update the correct row.
- Test a small sample before processing a full sheet.
- Choose Append Row for new records and Update Row for existing ones.
- Test Clear, Delete, and row/column deletion on a copy first.
- Limit credential and spreadsheet access to what the workflow needs.
- Add error handling and monitor executions.
- Consider a database when you need complex relationships, high volume, or advanced concurrency.
Frequently asked questions
Can I connect Google Sheets to n8n for free?
Total cost depends on n8n hosting, Google services, and any other connected apps. Check current pricing and terms.
Does n8n support Google Sheets triggers?
Yes. Supported events include row added and row updated; configuration and checking behavior depend on your version.
How do I add a row to Google Sheets?
Choose Append Row, select the spreadsheet and tab, map incoming values to the columns, and test the workflow.
How do I update an existing row?
Use Update Row and configure matching information. A unique ID is safer than a name alone.
Can I use Google Sheets as a database?
It can work as a lightweight data store. A database may be more suitable for complex relationships, high volume, or concurrent updates.
Why can’t n8n see my sheet columns?
Check the selected sheet, account access, credential status, and unique headings in the first row.
Can I use AI with Google Sheets in n8n?
Yes. You can send selected sheet data to a supported model, then validate and write results back.
Can one workflow use multiple spreadsheets?
Yes, if your credentials have access and each node is configured for the intended document and tab.
Continue learning
Build your foundation with the n8n beginner tutorial, explore workflow automation, and try more automation examples. For AI processing, see AI-powered automation and our n8n AI agents guide.
Official documentation and resources
External references are grouped at the end of the tutorial.
- n8n Google Sheets node documentation
- n8n Google credentials documentation
- n8n Google Sheets integration directory
- Google Sheets API documentation
- Google Cloud Console
Node operations, credential options, and Google Cloud settings may change. Verify current documentation and test with non-critical sample data before using important records.
Automate one spreadsheet task first
Connect your account, map a few fields, test the result, then expand the workflow.
