Automation library · Integrations

Message buffer system with Redis

Started by someone opening a chat with it, and works across Redis. 27 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

27 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 3Logic 13Service 11

The steps in the order they run, from what starts it.

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2When chat message receivedChat triggerStarts it
  3. 3When Executed by Another WorkflowExecute Workflow triggerStarts it
  4. 4Mock input dataSetLogic
  5. 5Config ParametersSetLogic
  6. 6get wait secondsCodeLogic
  7. 7Buffer messagesRedisService
  8. 8Set buffer_count incrementRedisService
  9. 9Set last_seenRedisService
  10. 10Get waiting_replyRedisService
  11. 11No Operation, do nothing2No OpLogic
  12. 12Mod inputSetLogic
  13. 13waiting_reply?IfLogic
  14. 14Set waiting_replyRedisService
  15. 15WaitSecondsWaitLogic
  16. 16Get last_seenRedisService
  17. 17Get buffer_countRedisService
  18. 18Check Inactivity + CountIfLogic
  19. 19Get bufferRedisService
  20. 20No Operation, do nothing1No OpLogic
  21. 21consolidate bufferCodeLogic
  22. 22WaitWaitLogic
  23. 23Map ouputSetLogic
  24. 24Delete buffer_inRedisService
  25. 25Delete waiting_replyRedisService
  26. 26Delete waiting_reply1RedisService
  27. 27No Operation, do nothing3No OpLogic

How it's built

Starts on
Someone opening a chat with it
Steps
27, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Redis
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Redis account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.