Skip to main content

Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG

Workflow preview

Workflow preview
100%
Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Product Catalog Chatbot with Google Drive Ingestion & Supabase RAG Overview This workflow builds a dual system that connects automated document ingestion with a live product catalog chatbot powe...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.set, n8n-nodes-base.googledrive, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplittercharactertextsplitter, @n8n/n8n-nodes-langchain.embeddingsmistralcloud, @n8n/n8n-nodes-langchain.vectorstoresupabase

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by DIGITAL BIZ TECH.

Original n8n.io source

1.1 Workflow description

Title
Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG
Workflow name
Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG

AI Product Catalog Chatbot with Google Drive Ingestion & Supabase RAG

Overview

This workflow builds a dual-system that connects automated document ingestion with a live product catalog chatbot powered by Mistral AI and Supabase.

It includes:

  • Ingestion Pipeline: Automatically fetches JSON files from Google Drive, processes their content, and stores vector embeddings in Supabase.
  • Chatbot: An AI agent that queries the Supabase vector store (RAG) to answer user questions about the product catalog.

It uses Mistral AI for chat intelligence and embeddings, and Supabase for vector storage and semantic product search.


Chatbot Flow

  • Trigger: When chat message received or Webhook (from live website)
  • Model: Mistral Cloud Chat Model (mistral-medium-latest)
  • Memory: Simple Memory (Buffer Window) — keeps last 15 messages for conversational context
  • Vector Search Tool: Supabase Vector Store
  • Embeddings: Mistral Cloud
  • Agent: product catalog agent
    • Responds to user queries using the products table in Supabase.
    • Searches vectors for relevant items and returns structured product details (name, specs, images, and links).
    • Maintains chat session history for natural follow-up questions.

Document → Knowledge Base Pipeline

Triggered manually (Execute workflow) to populate or refresh the Supabase vector store.

Steps

  1. Google Drive (List Files)
    → Fetch all files from the configured Google Drive folder.

  2. Loop Over Items
    → For each file:

    • Google Drive (Get File)
      → Download the JSON document.
    • Extract from File
      → Parse and read raw JSON content.
    • Map Data into Fields (Set node)
      → Clean and normalize JSON keys (e.g., page_title, comprehensive_summary, key_topics).
    • Convert Data into Chunks (Code node)
      → Merge text fields like summary and markdown.
      → Split content into overlapping 2,000-character chunks.
      → Add metadata such as title, URL, and chunk index.
    • Embeddings (Mistral Cloud)
      → Generate vector embeddings for each text chunk.
    • Insert into Supabase Vectorstore
      → Save chunks + embeddings into the website_mark table.
    • Wait
      → Pause for 30 seconds before the next file to respect rate limits.

Integrations Used

Service Purpose Credential
Google Drive File source for catalog JSON documents Google Drive account dbt
Mistral AI Chat model & embeddings Mistral Cloud account dbt
Supabase Vector storage & RAG search Supabase DB account dbt
Webhook / Chat User-facing interface for chatbot Website or Webhook

Sample JSON Data Format (for Ingestion)

The ingestion pipeline expects structured JSON product files, which can include different categories such as Apparel or Tools.

Apparel Example (T-Shirts)

[
  {
    "Name": "Classic Crewneck T-Shirt",
    "Item Number": "A-TSH-NVY-M",
    "Image URL": "https://www.example.com/images/tshirt-navy.jpg",
    "Image Markdown": "![Classic Crewneck T-Shirt](https://www.example.com/images/tshirt-navy.jpg)",
    "Size Chart URL": "https://www.example.com/charts/tshirt-sizing",
    "Materials": "100% Pima Cotton",
    "Color": "Navy Blue",
    "Size": "M",
    "Fit": "Regular Fit",
    "Collection": "Core Essentials"
  }
]

Tools Example (Drill Bits)

[
  {
    "Name": "Titanium Drill Bit, 1/4\"",
    "Item Number": "T-DB-TIN-250",
    "Image URL": "https://www.example.com/images/drill-bit-1-4.jpg",
    "Image Markdown": "![Titanium Drill Bit, 1/4\"](https://www.example.com/images/drill-bit-1-4.jpg)",
    "Spec Sheet URL": "https://www.example.com/specs/T-DB-TIN-250",
    "Materials": "HSS with Titanium Coating",
    "Type": "Twist Drill Bit",
    "Size (in)": "1/4",
    "Shank Type": "Hex",
    "Application": "Metal, Wood, Plastic"
  }
]

Agent System Prompt Summary

> “You are an AI product catalog assistant.
Use only the Supabase vector database as your knowledge base.
Provide accurate, structured responses with clear formatting — including product names, attributes, and URLs.
If data is unavailable, reply politely: ‘I couldn’t find that product in the catalog.’


Key Features

  • Automated JSON ingestion from Google Drive → Supabase
  • Intelligent text chunking and metadata mapping
  • Dual-workflow architecture (Ingestion + Chatbot)
  • Live conversational product search via RAG
  • Supports both embedded chat and webhook channels

Summary

> A powerful end-to-end workflow that transforms your product data into a searchable, AI-ready knowledge base, enabling real-time product Q&A through a Mistral-powered chatbot.

Perfect for eCommerce teams, distributors, or B2B companies managing large product catalogs.


Need Help or More Workflows?

Want to customize this workflow for your business or integrate it with your tools?
Our team at Digital Biz Tech can tailor it precisely to your use case — from automation pipelines to AI-powered product discovery.

💡 We can help you set it up for free — from connecting credentials to deploying it live.

Contact: [email protected]
Website: https://www.digitalbiz.tech
LinkedIn: https://www.linkedin.com/company/digital-biz-tech/
You can also DM us on LinkedIn for any help.


1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Set File ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Google Drive1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - Extract from File

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 5 - Default Data Loader1

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 6 - Character Text Splitter1

Type / Role
@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter - textSplitterCharacterTextSplitter
Config choices
Version 1

Block 7 - Embeddings Mistral Cloud2

Type / Role
@n8n/n8n-nodes-langchain.embeddingsMistralCloud - embeddingsMistralCloud
Config choices
Version 1

Block 8 - Insert into Supabase Vectorstore

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreSupabase - vectorStoreSupabase
Config choices
Version 1

Block 9 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - Wait4

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 11 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 12 - Supabase Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreSupabase - vectorStoreSupabase
Config choices
Version 1

Block 13 - Mistral Cloud Chat Model4

Type / Role
@n8n/n8n-nodes-langchain.lmChatMistralCloud - lmChatMistralCloud
Config choices
Version 1

Block 14 - Embeddings Mistral Cloud

Type / Role
@n8n/n8n-nodes-langchain.embeddingsMistralCloud - embeddingsMistralCloud
Config choices
Version 1

Block 15 - Simple Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 16 - Webhook1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 17 - Edit Fields1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - extract metadata

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 40 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG
Complexity advanced
Nodes 40
Categories Support Chatbot, AI RAG
Author DIGITAL BIZ TECH
Published 03 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10459/10459.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG do?

AI Product Catalog Chatbot with Google Drive Ingestion & Supabase RAG Overview This workflow builds a dual system that connects automated document ingestion with a live product catalog chatbot powe...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.