Templates / Handle customer support queries with cache-first RAG using Redis, LangCache and OpenAI

Handle customer support queries with cache-first RAG using Redis, LangCache and OpenAI

Ready for 3.0

by Mohamed Abdelwahab ✓ · 189 views · created 2026-01-02 · Support Chatbot, 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 28 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Redis Vector Store, Embeddings OpenAI, OpenAI Chat Model and OpenAI.

How it runs

Trigger: On a schedule (every day) (plus 1 other trigger).

  1. example Data (Edit Fields (Set)): sets 1 field: raw_docs
  2. LangCache Config (Edit Fields (Set)): sets 4 fields: langcacheBaseUrl, langcacheCacheId, similarityThreshold…
  3. Redis Vector Store: stores documents in the Redis vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  4. decompose_query (AI Agent): runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory; output parser: Structured Output Parser
  5. Split Out: splits a list into separate items
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Aggregate: combines items into one
  8. Search LangCache (HTTP Request): calls an HTTP API (POST)
  9. synthesize_response_node (AI Agent): runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
  10. Is Cache Hit? (If): checks a condition and branches into true / false

…plus 7 more steps. See the full node list below.

Services it uses

Redis Vector StoreEmbeddings OpenAIOpenAI Chat ModelOpenAI

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 (16)

From the author

An end-to-end Retrieval-Augmented Generation (RAG) customer support workflow for n8n, using a cache-first strategy (LangCache) combined with a Redis vector store powered by OpenAI embeddings. This template is designed for fast, accurate, and cost-efficient…

Excerpt from Mohamed Abdelwahab'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.