Templates / Message buffer system with Redis for efficient processing

Message buffer system with Redis for efficient processing

Ready for 3.0

by Edisson Garcia · 2,521 views · created 2025-05-02 · Support Chatbot, AI Summarization

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 27 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Redis.

How it runs

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

  1. Mock input data (Edit Fields (Set)): sets 2 fields: context_id, message
  2. Config Parameters (Edit Fields (Set)): sets 4 fields: minWords, waitLong, waitShort…
  3. get wait seconds (Code): runs custom JavaScript code
  4. Buffer messages (Redis): push
  5. Set buffer_count increment (Redis): incr
  6. Set last_seen (Redis): set
  7. Get waiting_reply (Redis): get
  8. Mod input (Edit Fields (Set)): sets 4 fields: waiting_reply, context_id, message…
  9. waiting_reply? (If): checks a condition and branches into true / false
  10. Set waiting_reply (Redis): set

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

Services it uses

Redis

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

From the author

🚀 Message-Batching Buffer Workflow (n8n) This workflow implements a lightweight message-batching buffer using Redis for temporary storage and a JavaScript consolidation function to merge messages. It collects incoming user messages per session, waits for a…

Excerpt from Edisson Garcia'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.