๐Ÿ’ฌ Dual-path customer support system with Google Sheets, vectors & Gemini

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

Description

This n8n workflow template implements a dual-path architecture for AI customer support, based on the principles outlined in the research paper โ€œA Locally Executable AI System for Improving Preoperative Patient Communication: A Multi-Domain Clinical Evaluationโ€ (Sato et al.).

The system, named LENOHA (Low Energy, No Hallucination, Leave No One Behind Architecture), uses a high-precision classifier to differentiate between high-stakes queries and casual conversation. Queries matching a known FAQ are answered with a pre-approved, verbatim response, structurally eliminating hallucination risk. All other queries are routed to a standard generative LLM for conversational flexibility.

This template provides a practical ++blueprint++ for building safer, more reliable, and cost-efficient AI agents, particularly in regulated or high-stakes domains where factual accuracy is critical.

What This Template Does (Step-by-Step)

Important Note for Production Use

This template uses an in-memory Simple Vector Store for demonstration purposes. For a production application, this should be replaced with a persistent vector database (e.g., Pinecone, Chroma, Weaviate, Supabase) to store your embeddings permanently.

Required Integrations:

Best For:

๐Ÿฆ Organizations in regulated industries (finance, healthcare) requiring high accuracy. ๐Ÿ’ฐ Applications where reducing LLM operational costs is a priority. โš™๏ธ Technical support agents that must provide precise, unchanging information. ๐Ÿ”’ Systems where auditability and deterministic responses for known issues are required.

Key Benefits:

โœ… Structurally eliminates hallucination risk for known topics. โœ… Reduces reliance on expensive generative models for common queries. โœ… Ensures deterministic, accurate, and consistent answers for your FAQ. โœ… Provides high-speed classification via vector search. โœ… Implements a research-backed architecture for building safer AI systems.

๐Ÿ”— Nodes Used

Google Sheets, Embeddings Hugging Face Inference, Simple Vector Store, Default Data Loader, Chat Trigger, Google Gemini

๐Ÿ“ฅ Import

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

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