Company Knowledge Base RAG Agent with Auto-Sync
AI-powered RAG chatbot answers queries from company docs in Google Drive using Supabase vector search. Supports Telegram voice/text input with auto-updates via OpenAI embeddings.
This workflow transforms your company documents into an intelligent AI assistant using Retrieval-Augmented Generation (RAG). Triggered by Telegram messages (easily adaptable to websites), it handles both text and voice inputs—transcribing audio via OpenAI Whisper—then queries a Supabase vector database for relevant document chunks using OpenAI embeddings. An LLM generates context-aware responses, reducing repetitive support queries and empowering teams with instant access to internal knowledge.
Two companion workflows ensure your knowledge base stays current: the 'New File Workflow' detects uploads in a Google Drive folder, extracts text, splits it into chunks, generates embeddings, and upserts them into Supabase. The 'Update File Workflow' monitors changes, removes outdated entries, and refreshes embeddings for edited files, automating maintenance entirely.
Ideal for startups building HR/ops assistants, SaaS helpdesks, customer support, or knowledge teams. Benefits include 24/7 query handling, reduced ticket volume, scalable doc management, and seamless integration—saving hours weekly on manual searches and updates. Deploy as internal tool or public bot for maximum impact.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Utilities workflows
- Streamlined Employee Onboarding with Automated Meeting Setup$19.98
- Automate Your LinkedIn Content Creation with RAG Pipeline & Chatbot$24.99
- SEO Keyword Research Automation with Google API Integration$14.99
- Automate Google Sheets and Gmail Integration via Webhook$16.33
- Automated Breaking News Headlines with LLaMA3 and X Posting$19.99
- Automated Webinar Registration and Contact Management$13.09
More from Maxim Luong
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.