Templates / Build a permission-aware knowledge base chat agent with OpenAI and Redis

Build a permission-aware knowledge base chat agent with OpenAI and Redis

Ready for 3.0

by Tihomir Mateev ✓ · 1 views · created 2026-11-23 · Internal Wiki, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 12 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Redis Vector Store, Redis Chat Memory, Embeddings OpenAI and OpenAI Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Sample knowledge base (Code): runs custom JavaScript code
  2. Resolve user access (Edit Fields (Set)): sets 1 field: groups
  3. Vectorize and store in Redis (Redis Vector Store): stores documents in the Redis vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  4. Knowledge base agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Search knowledge base); memory: Redis Chat Memory

Services it uses

Redis Vector StoreRedis Chat MemoryEmbeddings OpenAIOpenAI 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

Quick overview This workflow loads a document knowledge base into a Redis vector index with metadata, then runs an OpenAI-powered chat agent that answers questions by retrieving only documents the user is permitted to read using Redis metadata filters. How it…

Excerpt from Tihomir Mateev'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.