💬 Match medical symptoms to products with OpenAI, Qdrant & Google Sheets RAG

167 views · 💬 Lead Nurturing & AI Sales Agents

Description

🧠 RAG AI Medical Agent – n8n Workflow

👥 Who’s it for

This workflow is perfect for:


⚙️ How it works / What it does

This RAG-based workflow allows users to ask medical questions related to hair or scalp issues (e.g., hair loss, thinning). It:

  1. Retrieves product info from a Google Sheet.
  2. Converts product data into text embeddings using OpenAI.
  3. Stores those embeddings in a Qdrant vector database.
  4. On chat message trigger, performs a vector similarity search to match user symptoms with relevant products.
  5. Uses an AI agent to respond with top 3 matching products from your catalog.

🛠️ How to set up

Step 1: 🗂 Get your data

Step 2: 🔐 Connect your accounts

Step 3: 🧠 Populate the Vector DB

  1. Click “Execute workflow” manually.
  2. This pulls data from the Google Sheet.
  3. Each row is:
    • Formatted properly into a vector-friendly string.
    • Converted into an embedding using OpenAI.
    • Stored into Qdrant.

Step 4: 💬 Enable Chat Interface


📋 Requirements


🧩 How to customize it

🔄 Change the data structure

🔗 Nodes Used

Google Sheets, AI Agent, Embeddings OpenAI, OpenAI Chat Model, Simple Memory, Character Text Splitter

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup