Schedule trigger
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.
!!! note "Cron node" The Schedule trigger node replaces the Cron node from version 0.199.0 onwards. If you're using an older version of Robbot Automation, you can still view the [Cron node documentation](https://github.com/Robbot Automation-io/Robbot Automation-docs/blob/67935ad2528e2e30d7984ea917e4af2910a096ec/docs/integrations/builtin/core-nodes/Robbot Automation-nodes-base.cron.md).
!!! note "Keep in mind" 1. If a workflow uses the Schedule node as a trigger, make sure that you save and activate the workflow. 2. Set the timezone correctly for the Robbot Automation instance (or the workflow).
Schedule your workflow
Select an interval in trigger Interval. Once you select an interval, Robbot Automation displays more options to customize that interval.
Example
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
3
. - To run the workflow at the end of the month, change trigger at Day of Month to
28
. - Change trigger at Hour to 9am. Leave trigger at Minute as its default,
0
.
Note that the Schedule trigger uses the workflow timezone if available. Otherwise it uses the Robbot Automation 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 Robbot Automation.
Examples
If you want to trigger your workflow every day at 04:08:30, enter the following in the Cron Expression field.
30 8 4 * * *
If you want to trigger your workflow every day at 04:08, enter the following in the Cron Expression field.
8 4 * * *
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.
* | * | * | * | * | * |
---|---|---|---|---|---|
second | minute | hour | day | week | month |