Dynamically scheduled executions

Hi everyone
I wonder if there is a way to schedule the execution of a workflow dynamically

  • The time is defined at run-time so we can’t use “Cron” because it doesn’t accept any inputs
  • I know that it is possible to use an external task scheduler with “Webhook” but it would be if we can achieve it with n8n alone

Any suggestions?

hi @naskdev

Welcome to the n8n community :tada:

Something like this?

  1. Cron will Run every x minutes.
  2. Function node generates a random number between 1 to 20
  3. The returned value is set as Wait of X minutes
  4. Then rest of the Workflow will be executed

Try this workflow :smile:

2 Likes

Thanks @mcnaveen for your reply
That is what I was looking for :rocket:

1 Like

Awesome, Enjoy :tada:

P.S: Please mark the answer as a Solution. It may help others in future :slight_smile: