Automate WooCommerce Product Creation with AI & Google Sheets

This workflow automates WooCommerce product imports using Google Sheets and AI-driven SEO meta tag generation. It eliminates manual entry errors and speeds up product listing creation, making online store management efficient.
manualTrigger
googleSheets
splitInBatches
+6
Workflow Identifier: 1169
NODES in Use: Manual Trigger, Google Sheets, Split In Batches, Code, WooCommerce, OpenRouter Chat Model, LangChain, Structured Output Parser, Telegram
Automate WooCommerce product creation with n8n and AI

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow reads product data from Google Sheets and creates products in WooCommerce automatically.

It also uses AI to write SEO meta titles and descriptions for each product.

This saves time, avoids mistakes, and helps products rank better on Google.


Who Should Use This Workflow

This workflow is for store owners with many products to add.

It suits those who want to spend less time on manual entry and improve SEO easily.


Tools and Services Used


Inputs, Processing Steps, and Output

Inputs

  • Product info in Google Sheets: title, SKU, categories, images, prices, stock, descriptions.
  • WooCommerce API credentials to create products.
  • OpenRouter API key to generate SEO metadata.
  • Telegram chat ID for notifications (optional).

Processing Steps

  • Google Sheets node fetches all products not yet imported.
  • Split In Batches node breaks products into smaller groups to avoid overload.
  • Code node converts categories from string to array of numbers.
  • WooCommerce node creates products with full details including images and stock.
  • Google Sheets node marks products as “DONE” with WooCommerce IDs and links.
  • OpenRouter Chat Model node calls Gemini AI to generate SEO meta titles and descriptions.
  • SEO Expert LangChain node uses prompt to ensure SEO content fits limits and style.
  • Structured Output Parser node extracts JSON meta tag data from AI response.
  • WooCommerce node updates existing products with SEO metadata fields using Yoast keys.
  • Google Sheets node writes SEO metadata back into the spreadsheet.
  • Telegram node sends completion notice.

Output

  • Products added to WooCommerce with complete info and SEO data.
  • Google Sheets updated for tracking imported products and SEO status.
  • Notification sent to Telegram for confirmation.

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

Importing the Workflow

  1. Download the workflow file from this page using the Download button.
  2. Open the n8n editor where you manage workflows.
  3. Use the “Import from File” option to load this workflow JSON into n8n.

Configuring Credentials and Settings

  1. Add your Google Sheets API credentials in the Google Sheets node to connect your product spreadsheet.
  2. Enter your WooCommerce API consumer key and secret in the WooCommerce node.
  3. Paste your OpenRouter API key where required in the AI nodes for SEO meta generation.
  4. Update the spreadsheet ID, sheet GID, or any product categories if needed.
  5. If you want notifications, enter the Telegram bot token and chat ID in the Telegram node.
  6. Copy and paste any code snippets or prompts used in the workflow, for example the category mapper code or SEO prompt (see below).

Testing and Activating

  1. Run the Manual Trigger once to test with your sample product data.
  2. Check the output to confirm products are created and SEO metadata is assigned.
  3. Verify the spreadsheet updates and Telegram notification come through.
  4. Activate the workflow by toggling it from inactive to active to run automatically or on schedule.

For users running or self hosting n8n, self-host n8n helps to keep this automation reliable and fast.

for (const item of $input.all()) {
  if (item.json.CATEGORY && typeof item.json.CATEGORY === 'string') {
    item.json.CATEGORY = item.json.CATEGORY
      .split(',')
      .map(id => parseInt(id))
      .filter(id => !isNaN(id));
  }
}
return $input.all();

This code goes in the Code node named “Map categories” to fix category formats.

Generate SEO meta title (max 60 chars) and meta description (max 160 chars) for the product.
Use product title, description, and SKU in the prompt.
Return output as JSON with fields "MetaTitle" and "MetaDescription".

This prompt feeds the SEO Expert LangChain node for SEO text generation.


Customization Ideas

  • Change the AI model or adjust prompt to focus on different keywords.
  • Add custom fields or product tags in WooCommerce node.
  • Modify batch size in Split In Batches node for performance tuning.
  • Add error logging nodes to capture problems or notify via Slack.
  • Replace Telegram notifications with Slack or email as needed.

Common Issues and How to Fix Them

  • Invalid WooCommerce API credentials: Check keys are correct and have read/write permissions.
  • Categories not accepted by WooCommerce API: Verify the category code converts strings to arrays of numbers.
  • SEO meta fields not updating: Confirm Yoast SEO plugin is installed and the PHP snippet exposes meta via REST API.
  • AI output parsing error: Ensure prompts ask for JSON format and parser schema matches output.

Pre-Production Checklist

  • Check Google Sheet headers and data formats are correct.
  • Test WooCommerce API with a simple GET request.
  • Verify Yoast SEO meta fields can be accessed via the REST API.
  • Run workflow manually with sample data to validate.
  • Ensure spreadsheet rows update correctly after processing.
  • Confirm Telegram notifications if used.

Deployment Guide

After testing, activate the workflow in n8n to run automatically.

Schedule triggers like cron to run when product data changes.

Monitor execution logs for errors and verify data sync in spreadsheet and WooCommerce.


Summary

✓ Saves 10+ hours weekly by auto creating WooCommerce products from Google Sheets.

✓ Uses AI to create SEO meta titles and descriptions boosting Google ranking.

✓ Keeps Google Sheet in sync with imported product status and SEO data.

✓ Sends Telegram alerts confirming workflow completion.

➔ Easy for non-technical users to deploy with import and config steps.

➔ Works well on self-host n8n setups to run reliably.

➔ Eliminates manual errors and increases store efficiency and search visibility.

Automate WooCommerce product creation with n8n and AI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow reads product details from a Google Sheets document using the Google Sheets node and sends them through the WooCommerce API to create products automatically.
The OpenRouter Chat Model node runs the Gemini AI to generate SEO-friendly meta titles and descriptions for each product, which are then added to WooCommerce.
Users need to import the workflow in n8n, add API keys for Google Sheets, WooCommerce, and OpenRouter, update spreadsheet IDs and possibly Telegram settings, and then test before activating.
A Code node converts comma-separated category ID strings from Google Sheets into arrays of numbers, ensuring WooCommerce accepts the categories correctly.

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.