Automate Daily Book Prices Import Using Google Sheets and MySQL with n8n

Save hours by automating daily imports of book prices from Google Sheets directly into MySQL using n8n’s Cron, Google Sheets, and MySQL nodes. This workflow eliminates manual data entry errors and streamlines your e-commerce database updates.
cron
googleSheets
mySql
Workflow Identifier: 1428
NODES in Use: Cron, Google Sheets, MySQL

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow updates a MySQL database with book prices from Google Sheets every weekday at 5 AM.
It stops manual data entry and errors by automating the data import.
You get fresh pricing in your online store every morning without doing anything.

The workflow reads Google Sheets data, then inserts titles and prices into MySQL.
Duplicate entries are ignored to avoid errors.


Tools and Services Used

  • n8n platform: Builds and runs automated workflows.
  • Google Sheets API: Reads book price data from spreadsheets.
  • MySQL database: Stores book titles and prices.
  • Cron scheduler in n8n: Runs the workflow on weekdays at 5 AM.

Input → Process → Output

Input

  • Google Sheets document with columns like title and price.
  • Access credentials for Google Sheets and MySQL inside n8n.

Process

  • Cron triggers workflow every weekday at 5 AM.
  • Google Sheets node reads all book data rows.
  • MySQL node inserts each book’s title and price into the table.
  • Duplicates are ignored using insertion option to avoid errors.

Output

  • MySQL books table updated with latest prices.
  • Consistent, error-free pricing data for the online store.

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. In n8n editor, click the menu and select “Import from File.”
  3. Choose the downloaded workflow file to import.

Configure Credentials and IDs

  1. Add Google Sheets OAuth2 credentials inside n8n if not done.
  2. Set your MySQL database credentials in the MySQL node.
  3. Update the Google Sheets ID in the Google Sheets node with your sheet’s actual ID.
  4. Confirm the MySQL table “books” matches your database structure or update the table name.

Test and Activate

  1. Run the workflow manually once to make sure it inserts data correctly.
  2. Address any errors by checking credentials or table keys.
  3. Turn ON the workflow switch in n8n to enable automatic runs on weekdays.
  4. Check n8n’s execution logs to see scheduled runs and success.

If you plan on self-host n8n, make sure your server is running 24/7 to catch the schedule.


Common Issues and Solutions

  • Problem: OAuth2 fails on Google Sheets node.
    Fix: Refresh OAuth2 credentials or reauthenticate account in n8n.
  • Problem: Duplicate key errors in MySQL even with ignore enabled.
    Fix: Check that the “title” column has a unique constraint in MySQL.
  • Problem: Workflow does not run on weekdays.
    Fix: Ensure the Cron node is set to “Every Week” mode with weekdays selected.

Customizations

  • Change the Cron node hour if you want to run updates at a different time.
  • Add more fields like author or ISBN in both Google Sheets and MySQL columns.
  • Add an IF node before MySQL to insert only changed prices.
  • Insert a logging node to track errors to Slack or files for monitoring.

Summary

✓ Saves 30 minutes daily by automating price imports.
✓ Avoids manual entry mistakes for book prices.
✓ Keeps online bookstore pricing up to date automatically.
✓ Runs every weekday at 5 AM with no manual action.


Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free