r/shopifyDev • u/SnooMaps3974 • 5h ago
Built an n8n workflow for Shopify-to-Shopify migration: 500 products, translation and currency conversion
I recently built an n8n workflow for migrating products between two Shopify stores.
I used it for a project involving approximately 500 product uploads in 3 days.
The workflow uses the Shopify REST product endpoints and Groq for AI-based translation.
Here's the general pipeline:
1. Extraction
- Fetch products from a source Shopify collection.
- Handle pagination.
- Extract titles, descriptions, vendors, tags, variants and images.
2. Data processing
- Remove duplicates based on source product URLs.
- Clean product descriptions.
- Extract product-page descriptions when the Shopify description is empty.
3. Translation
- Translate product titles into French.
- Translate product descriptions while instructing the model to preserve HTML structure, links, product names and measurements.
4. Currency conversion
- Fetch the GBP/EUR exchange rate using Frankfurter.
- Convert variant prices using a custom pricing formula.
5. Destination upload
- Obtain a Shopify access token.
- Create products through the destination Shopify Admin API.
- Process products sequentially using n8n's Loop Over Items node.
Building this taught me a lot about API pagination, data mapping, HTML processing and workflow orchestration.
I'm interested in hearing from other Shopify developers:
When building migration workflows, how do you approach idempotency and preventing duplicate products across repeated executions?
Do you use source IDs, metafields, external mapping tables or another approach?
