đź“– Company knowledge base agent (RAG)

⚡ 16,319 views · 📖 Internal Wiki & Knowledge Base

Description

Overview

Turn your docs into an AI-powered internal or public-facing assistant. This chatbot workflow uses RAG (Retrieval-Augmented Generation) with Supabase vector search to answer employee or customer questions based on your company documents—automatically updated via Google Drive.

Whether it’s deployed in Telegram or embedded on your website, this agent supports voice and text input, transcribes voice messages, pulls relevant context from your internal files, and responds with a helpful, AI-generated answer. Two additional workflows listen for file changes in a shared Google Drive folder, convert them into embeddings using OpenAI, and sync them with your Supabase vector DB—so your knowledge base is always up to date.

Who’s it for

How it works

Example use case

> You upload your internal policy docs and client FAQs into a Google Drive folder.
>
> Employees or customers can now ask:
> - “What’s the refund policy for annual plans?”
> - “How do I request a day off?”
> - “What tools are approved for use by the engineering team?”
>
> The chatbot instantly pulls up the right section and responds with a smart, confident answer.

How to set up

  1. Connect a Telegram bot or use n8n’s webchat / chatbot widget
  2. Hook up OpenAI for transcription, embeddings, and completion
  3. Set up a Supabase project and connect it as a vector store
  4. Upload your internal docs to Google Drive
  5. Deploy the “Add File” and “Update File” automations to manage embedding sync
  6. Customize the chatbot’s tone and personality with prompt tweaks

Requirements

How to customize

đź”— Nodes Used

Telegram, Telegram Trigger, Google Drive, Google Drive Trigger, Supabase, AI Agent

📥 Import

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

📖 Importing guide · 🔑 Credential setup