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).
Download this n8n workflow template and start using it instantly.
AI Automation Developers: Those building complex, production-ready RAG pipelines using n8n.
IT Operations & Support Teams: Organizations needing fast, accurate AI retrieval from internal knowledge bases like GLPI or Confluence.
Technical Users of n8n: Individuals looking for advanced examples combining LangChain n8n node components with external vector databases.
Data Engineers: Professionals aiming to integrate structured internal data sources into conversational AI experiences using an n8n workflow.
Modern organizations rely on accurate information, often buried within service desks (like GLPI) or documentation platforms (like Confluence). This highly technical n8n workflow addresses the challenge of making that internal knowledge accessible via conversational AI. It implements a robust Retrieval-Augmented Generation (RAG) architecture.
When a user submits a query via the initial n8n trigger, the AI Agent uses the Google Gemini Chat Model, but restricts its knowledge retrieval to two dedicated PostgreSQL vector stores, ensuring answers are grounded in proprietary GLPI IT knowledge and Confluence documentation. This advanced n8n automation provides highly contextualized, real-time responses, significantly improving support efficiency and information retrieval accuracy. This n8n template serves as an excellent foundation for secure, private knowledge AI assistants.
The entire process is initiated by a conversational event via a dedicated n8n trigger, specifically the LangChain When chat message received n8n node.
When chat message received n8n trigger.AI Agent n8n node. This agent decides the best course of action—either answering directly using its conversational memory or retrieving data from its available tools.Google Gemini Chat Model for reasoning and generation, while the Simple Memory n8n node maintains the context of the current conversation session.CONHECIMENTOTIGLPI and CONFLUENCETICONFLUENCESGUGPL. These are both PostgreSQL Vector Stores.Embeddings Google Gemini n8n node components to generate numerical representations of the input query for performing similarity searches against the pre-indexed GLPI and Confluence knowledge.To deploy and use this powerful n8n workflow, follow these steps:
pgvector extension and contains the embedded data derived from your GLPI and Confluence knowledge bases.When chat message received n8n trigger must be configured to receive input from your desired chat front-end (e.g., a custom UI or communication platform).This n8n workflow utilizes several specialized LangChain n8n node components:
When chat message received (n8n trigger): This serves as the primary n8n trigger, listening for incoming conversational inputs that initiate the RAG process.
Google Gemini Chat Model: Provides the large language model capabilities required for reasoning, natural language understanding, and response generation.
AI Agent (n8n node): The central orchestrator that manages the flow, utilizing the connected memory and vector store tools to form complex responses.
Simple Memory (n8n node): Maintains the chat history (Buffer Window Memory) so the agent can reference previous turns in the conversation.
CONHECIMENTOTIGLPI (VectorStorePGVector): A PostgreSQL vector store connection acting as the knowledge source for GLPI data. The agent queries this tool for factual retrieval.
CONFLUENCETICONFLUENCESGUGPL (VectorStorePGVector): A second PostgreSQL vector store connection, providing supplemental knowledge from Confluence documentation.
Deploy a robust, dual-path AI customer support system using this n8n workflow. It combines Google Sheets for static FAQ retrieval (RAG) and Google Gemini for intelligent fallback responses. Use this n8n template to ensure accurate, boundary-aware AI support.

Build a specialized, hallucination-free AI documentation expert using RAG (Retrieval-Augmented Generation) in an advanced n8n workflow. This template indexes the n8n docs using Gemini embeddings.

Implement a powerful RAG system using this n8n workflow. Automatically index Google Drive PDFs using Cohere embeddings and Milvus, then query documents instantly via an OpenAI-powered n8n agent.

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.

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.


Building Custom Automations with n8n | Node.js Developer | Integration Specialist | Open Source Contributor If you need help with n8n workflows, API integrations, or custom nodes, feel free to connect on LinkedIn: http://linkedin.com/in/thiago-vazzoler-loureiro-24056227







































