Dynamic/calendar trigger?

i am looking for something like dynamic trigger, how i can do this?
1 day for the seek setup
2 hours of the day interval
3 current trigger setup
4 add optional trigger

use case
monday to friday 9 to 17 check the email every 5 min
monday to friday 18 to 8 check the email every 1 hour and send out of office email reply based on set of conditions

weekend check mail every 4 hours and send out of office email reply based on set of conditions

You can set custom schedule trigger in the “schedule trigger” node with “custom cron” based format.

For example :
Monday to friday to 17 check the mail every 5 min would be : */5 9-16 * * 1-5

  • */5 → Every 5 minutes
  • 9-16 → Between 09:00 and 16:55 (because it’s every 5 minutes)
  • * * 1-5 → Every day from monday to friday

chatGPT is not bad at generating them so you can just ask for the other cases :slight_smile:
And because your workflow changes slightly between the cases, you can duplicate the same and make some modifications where needed depending on the schedule trigger you want !

Hope this helps ! :slight_smile:

2 Likes

for anyone reading in the future those crons work on the trigger but for example for gmail node does not

https://crontab.guru/#*/5_9-16_*_*_1-5
https://crontab.guru/#5_9-16_*_*_1-5

why? no idea just ask n8n devs :slight_smile:

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