Use this powerful n8n workflow to import WooCommerce products from Google Sheets, automatically generating optimized Yoast SEO meta titles and descriptions using AI.
Download this n8n workflow template and start using it instantly.
Managing large product catalogs requires efficient data handling. This robust n8n workflow solves the tedious task of manually creating products and writing search engine optimized (SEO) metadata. It links your Google Sheets inventory directly to your WooCommerce store. The automation begins by extracting product details from the sheet. Crucially, it incorporates a specialized AI agent (using an OpenRouter-powered LLM) configured as an 'SEO Expert'. This expert analyzes the product description, title, and categories to instantly generate high-quality, character-limit-respecting meta titles and meta descriptions, essential for improved search visibility. After creation, the product is updated with the generated Yoast SEO metadata via the WooCommerce API. This sophisticated n8n template ensures that every new product is not only published swiftly but is also optimized for search from day one, significantly enhancing your operational efficiency.
This advanced n8n workflow executes a multi-step product import and optimization process.
METATITLE and METADESCRIPTION back to the Google Sheet for auditing.To deploy and utilize this n8n template, follow these steps:
CHATID in the 'Send message' n8n node parameters with your specific chat identifier.functions.php file (or via a snippet plugin) to enable Yoast SEO metadata fields (yoastwpseotitle and yoastwpseo_metadesc) for the WooCommerce REST API. The necessary code is provided in the workflow's sticky notes. When clicking ‘Test workflow’ (Manual Trigger): The initiating n8n trigger for the entire process, allowing manual start of the product batch import.
Get products (Google Sheets n8n node): Reads the source spreadsheet to gather product data, filtering for items ready for import.
Loop products (Split In Batches n8n node): Ensures sequential processing of each product item, managing input for subsequent nodes.
Map categories (Code n8n node): Executes JavaScript to transform comma-separated string inputs for product categories into an array of integers, which is the required format for the WooCommerce API. Essential pre-processing for the WooCommerce n8n node.
Create product (WooCommerce n8n node): Performs the create operation, pushing all product details (SKU, prices, descriptions, images, categories) into the WooCommerce store.
SEO Expert (Langchain Chain LLM n8n node): The core intelligence of this n8n workflow. It uses a detailed prompt instructing the AI to act as an SEO expert to generate optimized meta titles (max 60 chars) and meta descriptions (max 160 chars) based on product data.
OpenRouter Chat Model (LLM Chat n8n node): Serves as the large language model backend (using Gemini 2.0 Flash) for generating the SEO content as instructed by the 'SEO Expert' n8n node.
Structured Output Parser (Langchain n8n node): Guarantees the AI output is correctly formatted into metatitle and metadescription keys for reliable data mapping.
Set SEO meta (WooCommerce n8n node): Executes the update operation using the newly created product ID to insert the AI-generated meta titles and descriptions into the Yoast-specific metadata fields.
Creation done / Update meta (Google Sheets n8n nodes): These nodes manage the two-stage update of the source sheet, marking the product as created (with ID/permalink) and subsequently updating the row with the AI-generated metadata.
Use this powerful n8n workflow to automate video production end-to-end. Generate scripts, images, and voiceovers using AI, and instantly publish content to TikTok, YouTube, Instagram, Facebook, and LinkedIn.

Use this n8n workflow to instantly process new leads generated in ERPNext. An AI agent classifies inquiries, routes notifications to the correct internal contacts via Microsoft Outlook.

Use this advanced n8n workflow to automatically fetch HighLevel opportunities, classify lead intent using Azure OpenAI GPT-4o-mini, and route leads instantly to the appropriate sales or support team via email. Perfect for high-volume CRM automation.

Use this advanced n8n workflow to automate news publishing from Telegram RSS feeds. Features GPT-4o rewriting, subtle context editing, dynamic media handling, and instant WordPress posting.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































