Templates / Build persistent chat memory with GPT-4o-mini and Qdrant vector database

Build persistent chat memory with GPT-4o-mini and Qdrant vector database

Ready for 3.0

by Einar César Santos ✓ · 2,362 views · created 2025-08-02 · Engineering, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs when a chat message arrives. Along the way it connects Embeddings OpenAI, Reranker Cohere, Qdrant Vector Store and OpenAI Chat Model.

How it runs

Trigger: When a chat message arrives.

  1. AI Agent: runs an AI agent, with model: GPT-4o-mini (Main); 1 tool (RAG_MEMORY); output parser: Structured Output Parser
  2. Store Conversation (Qdrant Vector Store): stores documents in the Qdrant vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  3. Format Response (Edit Fields (Set)): sets 1 field: output

Services it uses

Embeddings OpenAIReranker CohereQdrant Vector StoreOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

🧠 Long-Term Memory System for AI Agents with Vector Database Transform your AI assistants into intelligent agents with persistent memory capabilities. This production-ready workflow implements a sophisticated long-term memory system using vector databases,…

Excerpt from Einar César Santos's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.