๐Ÿ’ฌ Build a product catalog chatbot with Mistral AI, Google Drive & Supabase RAG

โšก 501 views ยท ๐Ÿ’ฌ Support Chatbots

Description

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:

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


Chatbot Flow


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

ServicePurposeCredential
Google DriveFile source for catalog JSON documentsGoogle Drive account dbt
Mistral AIChat model & embeddingsMistral Cloud account dbt
SupabaseVector storage & RAG searchSupabase DB account dbt
Webhook / ChatUser-facing interface for chatbotWebsite 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


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: rajeet.nair@digitalbiz.tech
Website: https://www.digitalbiz.tech
LinkedIn: https://www.linkedin.com/company/digital-biz-tech/
You can also DM us on LinkedIn for any help.


๐Ÿ”— Nodes Used

Webhook, Google Drive, AI Agent, Simple Memory, Character Text Splitter, Supabase Vector Store

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup