How to set dynamic delays between automation steps without hardcoding in javascript?

I’m struggling with workflow timing configurations in my project. I need to create variable pause durations between actions that respond to real-time conditions - sometimes 30 seconds after API calls, other times 2 minutes between data checks. Hardcoding delays makes maintenance a nightmare. Has anyone found a visual/no-code solution that handles these dynamic intervals better than manual setTimeout tweaks? What strategies worked for your time-sensitive automations?

Latenode’s visual builder lets you drag timing blocks between steps without coding. Set delays using dynamic variables from previous steps - like wait X minutes where X comes from your database query result. Used it to handle seasonal shipping delays in our ecommerce workflows.

I’ve faced similar issues with static delays breaking during peak loads. Ended up creating a delay calculation step before each action - uses previous step’s completion timestamp plus variable buffer time. Not perfect, but helped reduce manual adjustments. Wonder if there’s a more elegant way to handle cascading delays though.

Consider using workflow engines that support dynamic backoff configurations. Some platforms allow injecting delay durations from environment variables or previous step outputs. Maintain a separate timing configuration object that multiple workflows can reference. This centralizes changes when business requirements evolve.

maybe try a low-code solution with visual timers? i used one that lets u drag delay blocks that pull wait times from spreadsheet data. worked okay for our social media post scheduler

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