Automate Shopify to Google Sheets Product Sync with n8n

This n8n workflow automates syncing Shopify product details to Google Sheets, solving manual data entry errors and saving hours. It fetches product info in batches, updates sheets incrementally, and ensures your product catalog is always up-to-date effortlessly.
scheduleTrigger
googleSheets
graphql
+6
Workflow Identifier: 1156
NODES in Use: scheduleTrigger, set, googleSheets, if, graphql, code, wait, noOp, stickyNote
Automate Shopify to Google Sheets sync with n8n

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow connects Shopify to Google Sheets to copy product details every day at 7 AM.
It stops the user from having to export products by hand and keeps prices, tags, and descriptions fresh.
The workflow fetches products in groups and remembers where it left off to only get updates next time.
It writes the product info like title, tags, description, and price directly into a Google Sheet.
The syncing works bit by bit so it can handle stores with many products.
Because it runs automatically, the sheet stays updated without the user doing anything.


Who Should Use This Workflow

This workflow is good for Shopify store owners or managers who track product data in Google Sheets.
It’s for those who want to save time and avoid mistakes from manual exports and data typing.
If you update product details often, this helps keep your teams working with correct info.
Users without technical skills can still use it with simple setup instructions.


Tools / Services Used

  • Shopify GraphQL API: To get product data in batches.
  • Google Sheets API: To write and read product data and cursors.
  • n8n: The workflow automation tool running the process.

Inputs, Processing, and Outputs

Inputs

  • Shopify store API token with read access.
  • Google Sheets document and sheet to store the data.
  • Batch size number to control the number of products per API call.
  • Stored cursor in Google Sheets that marks the last fetched product position.

Processing

  • Schedule Trigger node runs workflow daily at 7:00 AM.
  • Reads last stored cursor from Google Sheets to know where to continue.
  • If no cursor found, fetches initial product batch.
  • Uses Code node to merge batch size and cursor data into GraphQL query variables.
  • Fetches product batches from Shopify using cursor pagination.
  • Splits product batch into individual product items.
  • Writes or appends product data rows into Google Sheets.
  • Checks for more pages and waits before next fetch to avoid API limits.
  • Updates cursor value in Google Sheets for next run.

Outputs


Beginner Step-By-Step: How to Use This Workflow in n8n

Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Go to the n8n editor where you work on workflows.
  3. Click on the main menu and select “Import from File”.
  4. Select and import the downloaded workflow JSON.

Configure Credentials and Settings

  1. Add Shopify API credentials: insert your store’s Admin API Key and password.
  2. Add Google Sheets OAuth2 credentials with edit permission.
  3. Update Google Sheets documentId and sheetName in Google Sheets nodes.
  4. Check and optionally adjust batch size in the BatchSize node.

Test and Activate

  1. Run the workflow once manually in n8n to test it.
  2. Check Google Sheets to see if product data and cursor were added.
  3. Fix any errors shown in n8n logs.
  4. Activate the workflow toggle switch to enable daily automatic syncing.

If self hosting n8n, consider reading this resource for setup help.


Edge Cases and Failure Handling

If the Shopify API token is invalid, the Shopify get products node will return auth errors.
Users should refresh or recreate the token in n8n credentials.

If Google Sheets fail to write data, check that the spreadsheet ID and sheet name are correct.
Verify n8n’s OAuth2 permission allows editing the sheet.

If the workflow stops without fetching all pages, the cursor may not update properly.
Verify that the Set cursor and update Curser nodes run without errors.


Customization Ideas

  • Change batch size number in the BatchSize node to smaller or larger values.
  • Edit Shopify GraphQL queries to get more product details like SKU, inventory, or images.
  • Alter the schedule in Schedule Trigger node for different sync times.
  • Switch Google Sheets targets by updating document and sheet IDs.
  • Add notification nodes for alerts on sync failures.

Summary

✓ Saves time by automating Shopify product data sync to Google Sheets.
✓ Updates product info daily with batch fetching and cursor tracking.
→ Reduces manual errors and keeps sales data accurate.
→ Suitable for stores of any size due to incremental syncing.


Automate Shopify to Google Sheets sync with n8n

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Update or refresh Shopify API credentials in n8n to ensure valid API Key and permissions.
Google Sheets OAuth2 credentials must have edit permissions to write and read data in the target sheet.
It fetches products in batches using cursors, updating the cursor after each batch to get new pages incrementally.
Yes, the workflow can run on self-hosted n8n; users should follow standard setup and credential configurations.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.