How can I add a random wait time between loop iterations in n8n?

I’m building a workflow where I’m looping over items and adding a Wait node between each iteration.

Is there a way to make that wait time random — for example, anywhere between 10 and 15 seconds — before the next loop starts?

Basically, I want each request to go out at slightly random intervals instead of using a fixed delay, to make it look more natural and avoid rate limits or blocks.

Any tips or examples would be super helpful :raising_hands:

My setup:

n8n version: 1.113.3
Database: PostgreSQL
Deployment: Docker
Operating system: Ubuntu

You can use Code Node to generate a random wait time. Then pass its output to the wait node as an expression.

2 Likes

Thank you very much for the help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.