Map marketplace product categories with Gemini embeddings and a review queue
Ready for 3.0What this workflow does
This AI workflow has 26 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Embeddings Google Gemini and Google Gemini Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Create categories table (Data table): create (table)
- Read all categories (Data table): get
- Configure mapping rules (Edit Fields (Set)): sets 2 fields: shortlist_size, min_top_score
- Create products table (Data table): create (table)
- Store category embeddings (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embed categories with Gemini; document loader: Category path as document
- Read pending products (Data table): get
- Demo categories and products (Code): runs custom JavaScript code
- Loop over pending products (Loop Over Items (Split in Batches)): loops over the items in batches
- Split demo rows by table (If): checks a condition and branches into true / false
- Shortlist closest categories (Simple Vector Store): searches the Simple vector store, with embeddings: Embed product with Gemini
…plus 8 more steps. See the full node list below.
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick overview This workflow uses n8n Data Tables and Google Gemini embeddings to map product listings to the best matching marketplace category, automatically applying high-confidence matches and routing uncertain results to a human review queue. How it…