RAG Chatbot with Supabase + TogetherAI + OpenRouter - n8n Workflow | Neura Market

    RAG Chatbot with Supabase + TogetherAI + OpenRouter

    ## RUN the FIRST WORKFLOW ONLY ONCE (as it will convert your content into Embedding format and save it in DB and is ready for the RAG Chat) ## Telegram Trigger * **Type:** `telegramTrigger` * **Purpose:** Waits for new Telegram messages to trigger the workflow. * **Note:** Currently disabled. --- ## Content for the Training * **Type:** `googleDocs` * **Purpose:** Fetches document content from Google Docs using its URL. * **Details:** Uses Service Account authentication. --- ## Splitting into Chunks * **Type:** `code` * **Purpose:** Splits the fetched document text into smaller chunks (1000 chars each) for processing. * **Logic:** Loops over text and slices it. --- ## Embedding Uploaded Document * **Type:** `httpRequest` * **Purpose:** Calls Together AI embedding API to get vector embeddings for each text chunk. * **Details:** Sends JSON with model name and chunk as input. --- ## Save the embedding in DB * **Type:** `supabase` * **Purpose:** Saves each text chunk and its embedding vector into the Supabase `embed` table. ## SECOND WORKFLOW EXPLANATION: ## When chat message received * **Type:** `chatTrigger` * **Purpose:** Starts the workflow when a user sends a chat message. * **Details:** Sends an initial greeting message to the user. --- ## Embed User Message * **Type:** `httpRequest` * **Purpose:** Generates embedding for the user's input message. * **Details:** Calls Together AI embeddings API. --- ## Search Embeddings * **Type:** `httpRequest` * **Purpose:** Searches Supabase DB for the top 5 most similar text chunks based on the generated embedding. * **Details:** Calls Supabase RPC function `matchembeddings1`. --- ## Aggregate * **Type:** `aggregate` * **Purpose:** Combines all retrieved text chunks into a single aggregated context for the LLM. --- ## Basic LLM Chain * **Type:** `chainLlm` * **Purpose:** Passes the user's question + aggregated context to the LLM to generate a detailed answer. * **Details:** Contains prompt instructing the LLM to answer only based on context. --- ## OpenRouter Chat Model * **Type:** `lmChatOpenRouter` * **Purpose:** Provides the actual AI language model that processes the prompt. * **Details:** Uses `qwen/qwen3-8b:free` model via OpenRouter and you can use any of your choice.

    Platform
    n8n
    Category
    AI
    Price
    Free
    Creator
    iamvaar
    • code
    • supabase
    • aggregate
    • googleDocs
    • stickyNote
    • httpRequest
    • telegramTrigger
    • chainLlm
    • chatTrigger
    • lmChatOpenRouter
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related AI workflows

    • Launch Your First AI-Powered Chatbot with Actionable ToolsFree
    • Automate AI Video Creation and YouTube Upload with Google Sheets
    Free
  1. Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and ImagingFree
  2. Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPressFree
  3. Email Agent$500.99
  4. Create a Conversational Telegram Bot with GPT-4 for Text and Voice MessagesFree
  5. More from iamvaar

    • Automated Stale User Re-Engagement System with Supabase, Google Sheets, & Gmail
    • Automate Weekly US Trademark Reports with USPTO API and Google Drive CSV Export
    • Plan Travel Itineraries with Gemini AI, Live Amadeus Flights, and Airbnb Stays
    All AI workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.