Open n8n Workflow · Shopify
n8n RAG Product Recommendation Workflow for Shopify
Production n8n workflow template connecting your Shopify catalog to a RAG retrieval pipeline for grounded, in-stock product recommendations. Free JSON download included.
Executive Summary
This open n8n workflow syncs Shopify product catalogs into a vector/metadata store and serves real-time, inventory-aware product recommendations via RAG. Download the ready-to-import JSON template and adapt the embedding model, prompt and margin filters to your store.
- JSONFormatDirect import into self-hosted or cloud n8n
- ShopifyStorefront StackUses native Shopify Admin / Storefront product fields
- Open LLMInference ControlWorks with OpenAI, Anthropic or self-hosted EU LLMs
Production Architecture
How it ships in production.
- 01
Shopify Catalog Sync Trigger
Pulls active products, variants, tags, price and inventory status on schedule or webhook.
- 02
Chunking & Vector Upsert
Builds structured SKU documents with availability metadata so out-of-stock items are filtered out before generation.
- 03
Grounded Recommendation Endpoint
Receives customer query or PDP context, retrieves top matching SKUs and returns structured JSON recommendations.
Retail & Enterprise Realities
- Filter out inventory_quantity <= 0 at retrieval time to avoid dead clicks.
- Pass collection and price-band metadata so recommendations match shopper intent.
- Log every query and click event to GA4/BigQuery to measure incremental add-to-cart lift.
Step-by-step build tutorial for this Shopify workflow
Full architectural walkthrough of nodes, embeddings and prompt guardrails.
Read full evidenceFAQ
Frequently asked questions
Can I self-host this workflow for GDPR compliance in Europe?
Yes. Run n8n on your own EU server and swap the LLM node to any EU-hosted OpenAI-compatible endpoint.
How many SKUs can this template handle?
Out of the box it handles up to 25,000 SKUs cleanly; for larger catalogs, batch the upsert step and add a graph attribute filter.
Done-with-you setup
Rather have this workflow set up for you?
Book a call and we wire it into your stack, adapt it to your data and hand it over running, with your team trained on it.
Book a call