AutomationMart
Home/Browse/Company knowledge base agent (RAG)
n8n

Company knowledge base agent (RAG)

n8nn8n31 modulesv1.0
SlackDiscordOpenAIGoogle DriveTelegramIntercom

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,

At a glance

Company knowledge base agent (RAG) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Slack, Discord, OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Slack, Discord, OpenAI, Google Drive, Telegram, Intercom
Modules
31
Price
Free
Version
v1.0
Company knowledge base agent (RAG) workflow diagram

About this workflow

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 - Startups building an internal ops or HR assistant - SaaS companies deploying help bots on their websites - Customer support teams reducing repetitive questions - Knowledge-driven teams needing internal AI assistants How it works - Triggered via Telegram bot (or easily swapped for website chatbot or “on chat message”) - If user sends a voice message, it’s transcribed to text using OpenAI Whisper - Input is passed to a RAG agent that: - Searches a Supabase vector store for relevant docs - Pulls context from matching chunks using OpenAI embeddings - Responds with an LLM-powered answer - The response is sent back as a Telegram message - Two separate workflows: - New File Workflow: Listens for file uploads in Google Drive, extracts and splits text, then sends to Supabase with embeddings - Update File Workflow: Detects file edits, deletes old rows, and updates embeddings for the revised file 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 - Telegram bot (or n8n Chat widget) - Google Drive integration - Supabase with pgvector or similar enabled - OpenAI API key (Whisper, Embeddings, ChatGPT) - Two folders: one for raw documents and one for tracking updates How to customize - Swap Supabase for Pinecone, Weaviate, or Qdrant - Replace Telegram with web chat, Slack, Intercom, or Discord - Add logic to handle fallback answers or escalate to human - Embed the chat widget on your site for public customer use - Add filters (e.g. department, date, author) to narrow down context

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Set a Slack status when a Zoom meeting starts

Every time a Zoom meeting starts, Make will automatically set a Slack status.

Free

VEO3 video generator with AI optimization and Google Drive storage

Welcome to my VEO3 Video Generator Workflow! This automated workflow transforms simple text descriptions into professional 8-second videos using Google's cutting-edge VEO3 AI model. Users submit video ideas through a web form, and the system automatically generates optimized prompts, creates high-quality videos with native audio, and delivers them via Google Drive - all powered by Claude 4 Sonnet for intelligent prompt optimization. This workflow has the followi

Free

Automatic media download from WhatsApp Business messages with HTTP storage

This workflow listens for incoming WhatsApp messages that contain media (e.g., images) and automatically downloads the media file using WhatsApp's private media URL. - The trigger node activates when a WhatsApp message with media is received. - The media ID is extracted from the message payload. - A private media URL is retrieved using the media ID. - The media file is downloaded using an authenticated HTTP request. Ideal for: - Archiving WhatsApp media to external systems. - Triggering further

Free

Send data to Google Sheets from your app and create a Slack message using a custom webhook

Automatically send data to Google Sheets from you app using HTTP and create a Slack message using a custom webhook. Streamline data management and communication with this integration.

Free

Publish new Beamer posts to Discord

Every time a new post is added to your Beamer account, Make will automatically send a message to Discord.

Free

Create a Microsoft To Do task from a Slack message

Every time there's a new Slack message, Make will automatically create a Microsoft To Do task.

Free

RAG chatbot for company documents using Google Drive and Gemini

This workflow implements a Retrieval Augmented Generation (RAG) chatbot that answers employee questions based on company documents stored in Google Drive. It automatically indexes new or updated documents in a Pinecone vector database, allowing the chatbot to provide accurate and up-to-date information. The workflow uses Google's Gemini AI for both embeddings and response generation. How it works The workflow uses two Google Drive Trigger nodes: one for detecting new files added to a speci

Free

Generate and publish AI short videos using Gemini, Sora-2, Apify, and Google Sheets

1. Overview This workflow automates the process of collecting viral content ideas, generating videos using AI services, and publishing posts to social media platforms. It uses scheduled triggers and external APIs to run the entire content pipeline with minimal manual input. Google Sheets is used as the central data layer to store ideas, track processing status, and prevent duplicate content. The workflow is designed to support continuous content production by connecting idea discovery, content g

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free