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
Automate book prices with n8n and Google Sheets

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

Learn how to Build this Workflow with AI:

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.


Automate book prices with n8n and Google Sheets

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

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.