Templates / Debounce and buffer WhatsApp AI replies with Redis and Google Gemini

Debounce and buffer WhatsApp AI replies with Redis and Google Gemini

Ready for 3.0

by iamvaar ✓ · 15 views · created 2026-09-03 · Support Chatbot, AI Chatbot

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 29 nodes and runs on WhatsApp events. Along the way it connects WhatsApp Business Cloud, Redis and Google Gemini Chat Model.

How it runs

Trigger: On WhatsApp events.

  1. Set Message Details (Edit Fields (Set)): sets or maps fields
  2. Check for Message Content (If): checks a condition and branches into true / false
  3. Check If Text Message (If): checks a condition and branches into true / false
  4. Fetch Deduplication Key (Redis): uses Redis
  5. Notify Non-Text Message (WhatsApp Business Cloud): uses WhatsApp Business Cloud
  6. Check Processing Status (If): checks a condition and branches into true / false
  7. Record Deduplication Key (Redis): uses Redis
  8. Retrieve Message Buffer (Redis): uses Redis
  9. Integrate Message into Buffer (Edit Fields (Set)): sets or maps fields
  10. Store Merged Buffer (Redis): uses Redis

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

Services it uses

WhatsApp Business CloudRedisGoogle Gemini 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 debounces incoming WhatsApp messages, buffers multiple quick-succession texts per sender in Redis, and replies once using a Google Gemini model via an n8n AI Agent, while deduplicating message IDs and preventing parallel replies…

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