Category: Automations › E-commerce & Orders · Best for: Stores adding many products · Platform: n8n · Steps: 12
What it does
The AI writes product titles and descriptions and adds the products to your store.
- Copy this sheet and add product details to be inserted in columns A to I
Works with: AI Chat Model: OpenRouter, Output Parser Structured, Google Sheets, Chain Llm, WooCommerce, Telegram
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- openRouterApi: how to connect (used by OpenRouter Chat Model)
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Get products, Creation done, Update meta)
- WooCommerce REST API keys: how to connect (used by Create product, Set SEO meta)
- Telegram bot token from @BotFather: how to connect (used by Send message)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Get products →
sheetName: choose your own - Get products →
documentId: choose your own - Creation done →
sheetName: choose your own - Creation done →
documentId: choose your own - Update meta →
sheetName: choose your own - Update meta →
documentId: choose your own - Send message →
chatId: choose your own
- Get products →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When clicking ‘Test workflow’ starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- When clicking ‘Test workflow’ starts the workflow (Manual).
- OpenRouter Chat Model uses AI (AI Chat Model: OpenRouter).
- Structured Output Parser uses AI (Output Parser Structured).
- Get products uses Google Sheets.
- SEO Expert uses AI (Chain Llm).
- Loop products uses Split In Batches.
- Set SEO meta uses WooCommerce to product update.
- Send message uses Telegram.
- Map categories reshapes the data for the next step.
- Update meta uses Google Sheets to update.
- Create product uses WooCommerce to product create.
- Creation done uses Google Sheets to update.
India & US notes
India: if you take payments with Razorpay, swap the Stripe node for an HTTP Request to the Razorpay API, or use a Razorpay webhook as the trigger. US: Stripe and Shopify Payments work out of the box.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
STEP 1
- Install Yoast SEO Plugin on Wordpress
- Add this code in function.php file
function abilita_yoast_meta_api() {
$meta_keys = ['_yoast_wpseo_title', '_yoast_wpseo_metadesc'];
foreach ($meta_keys as $meta_key) {
register_post_meta('post', $meta_key, array(
'type' => 'string',
'description' => "Meta Yoast $meta_key per i post",
'single' => true,
'show_in_rest' => true,
));
register_post_meta('page', $meta_key, array(
'type' => 'string',
'description' => "Meta Yoast $meta_key per le pagine",
'single' => true,
'show_in_rest' => true,
));
}
}
add_action('init', 'abilita_yoast_meta_api');
STEP 3
- Copy this sheet and add product details to be inserted in columns A to I IMPORTANT:
- Columns B, E and F in "text format"
- Column I in "numeric format"
- Columns G and H accepts HTML
- In Column C insert the URL of product image
STEP 2
- Enable WooCommerce API from Wordpress
- Add CHAT_ID in Telegram trigger
AI-Driven WooCommerce Product Importer
This workflow streamlines your WooCommerce product creation process by integrating directly with Google Sheets. Simply input product details into your spreadsheet, and the workflow takes care of the rest-automatically creating new products on your WooCommerce store.
But it doesn’t stop there. A dedicated SEO expert chain analyzes each product’s content and generates optimized meta titles and meta descriptions, enhancing visibility and ranking potential on search engines.
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method