Migrate visible product categories from Lightspeed to Shopify via GraphQL
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Configure store settings (Edit Fields (Set)): sets 3 fields: shopify_url, shopify_api_version, lightspeed_api_url
- Fetch publication channels (HTTP Request): calls an HTTP API (POST)
- Fetch Lightspeed categories (HTTP Request): calls an HTTP API
- Split categories into items (Split Out): splits a list into separate items
- Filter visible categories (If): checks a condition and branches into true / false
- Process each category (Loop Over Items (Split in Batches)): loops over the items in batches
- Create Shopify collection (HTTP Request): calls an HTTP API (POST)
- Verify collection created (If): checks a condition and branches into true / false
- Create URL redirect (HTTP Request): calls an HTTP API (POST)
- Error: Migration step failed (Stop and Error): stops the run with an error
…plus 3 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Stop and Error
n8n-nodes-base.stopAndError - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick Overview This workflow runs manually to migrate visible category data from Lightspeed to Shopify by creating Shopify collections via the Admin GraphQL API, adding URL redirects from old category paths, and publishing the new collections to all Shopify…