Use the Schedule Trigger node run workflows at fixed intervals and times. This works in a similar way to the cron software utility in Unix-like systems.
The Code node replaces the Cron node from version 0.199.0 onwards. If you're using an older version of n8n, you can still view the Cron node documentation.
Keep in mind
- If a workflow uses the Schedule node as a trigger, make sure that you save and activate the workflow.
- Set the timezone correctly for the n8n instance (or the workflow).
Schedule your workflow#
Select an interval in Trigger Interval. Once you select an interval, n8n displays more options to customize that interval.
In this example, schedule a workflow to run once a quarter, at the end of the quarter, at 09:00.
- In Trigger Interval, select Months.
- Change Months Between Triggers to
- To run the workflow at the end of the month, change Trigger at Day of Month to
- Change Trigger at Hour to 9am. Leave Trigger at Minute as its default,
Note that the Schedule Trigger uses the workflow timezone if available. Otherwise it uses the n8n instance timezone.
Generate a custom cron expression#
If you need a custom time setting, select Trigger Interval > Custom (Cron).
To generate a cron expression, you can use crontab guru. Paste the cron expression that you generated using crontab guru in the Expression field in n8n.
If you want to trigger your workflow every day at 04:08:30, enter the following in the Cron Expression field.
If you want to trigger your workflow every day at 04:08, enter the following in the Cron Expression field.
Why there are six asterisks (*) in the cron expression?#
The sixth asterisk in the cron expression represents seconds. Setting this is optional. The node will execute even if you don't set the value for seconds.