Deploy a powerful, knowledge-based WhatsApp Assistant using this sophisticated n8n workflow. Integrates Google Docs, Supabase vector search, and the Gemini AI model for advanced RAG automation.
Download this n8n workflow template and start using it instantly.
This solution leverages the power of n8n to build a sophisticated Retrieval-Augmented Generation (RAG) system accessible directly via WhatsApp. The core challenge this n8n workflow solves is providing accurate, context-specific answers based on internal documents (sourced from Google Docs), rather than relying solely on the general knowledge of the AI model.
The workflow is divided into two parts: an ingestion pipeline and a query pipeline. The ingestion part reads documents, chunks the content using an n8n node dedicated to custom code, embeds it, and stores it in a Supabase vector database. The query pipeline, initiated by the WhatsApp trigger, ensures that every user question is processed, contextually searched in the database, and then answered intelligently by the Google Gemini Chat Model. This is an essential n8n template for robust knowledge management and high-performance automation.
This powerful n8n workflow operates in two distinct modes: knowledge ingestion and real-time query response.
WhatsApp Trigger: The primary n8n trigger for the query pipeline. It securely captures incoming user messages, initiating the full RAG sequence for every request to the n8n workflow.
Google Docs: Used in the ingestion pipeline to retrieve the raw text content from the knowledge repository.
Code (Splitting into Chunks): A custom n8n node script responsible for text preprocessing, ensuring the knowledge base is chunked optimally before vectorization.
HTTP Request (Embedding Uploaded document): This n8n node executes the API call to generate dense vector embeddings from the chunked text data.
Supabase (Save the embedding in DB): A crucial storage n8n node for the vector database. It efficiently saves both the text chunks and their embeddings, ready for context retrieval.
HTTP Request (Embend User Message): Converts the real-time incoming user query from the WhatsApp trigger into a vector representation, necessary for the subsequent similarity search operation.
HTTP Request (Search Embeddings): Executes the similarity search query against the Supabase database, retrieving relevant contextual documents to ground the LLM's response.
AI Agent (LangChain Agent): Manages the orchestration of the RAG process, feeding the user prompt and the retrieved context to the LLM for a structured answer generation using this powerful n8n node.
Google Gemini Chat Model: The specific large language model n8n node utilized by the Agent to formulate the final, contextualized response based on the knowledge provided by the RAG system.
WhatsApp (Send message): The final action n8n node, ensuring the AI-generated answer is delivered back to the originating WhatsApp user, closing the automated conversation loop.
Build an internal support RAG chatbot using this comprehensive n8n workflow. Integrate MongoDB vector search, OpenAI embeddings, and Google Docs ingestion into a powerful n8n solution.

Deploy a robust RAG knowledge base chatbot using this advanced n8n workflow. Integrates Jotform document uploads, Supabase vector DB, Together AI embeddings, and Google Gemini for precise Q&A.

Use this powerful n8n workflow to build a custom RAG (Retrieval-Augmented Generation) agent powered by Google Gemini and private knowledge stored in PostgreSQL vector databases (GLPI, Confluence).

Deploy a powerful local AI assistant using this advanced n8n workflow. It combines Ollama (Llama 3.2), RAG capabilities, and real-time search tools using specialized n8n node configurations and the n8n trigger.

Build a sophisticated multi-modal Telegram AI assistant using n8n workflow templates. Features include Gemini chat, voice transcription, image generation, and MongoDB long-term memory.

Use this powerful n8n workflow template to automate multi-site web scraping. Fetch URLs from Google Sheets, route requests based on source, apply rate limiting, and use custom n8n node logic for content extraction and freshness filtering.








































