Skip to content

Cron Syntax Reference

Aigentic uses standard cron expressions to define when scheduled tasks run. This reference covers the full syntax with examples.

A cron expression consists of five fields separated by spaces:

┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12)
│ │ │ │ ┌───────────── day of week (0-6, Sunday=0)
│ │ │ │ │
* * * * *
FieldAllowed ValuesSpecial Characters
Minute0-59* , - /
Hour0-23* , - /
Day of month1-31* , - /
Month1-12 or JAN-DEC* , - /
Day of week0-6 or SUN-SAT (Sunday=0)* , - /
CharacterMeaningExample
*Any value* * * * * — every minute
,Value list separator1,15 * * * * — minute 1 and 15
-Range1-5 * * * * — minutes 1 through 5
/Step values*/15 * * * * — every 15 minutes
PatternCron ExpressionDescription
Every 5 minutes*/5 * * * *Runs at :00, :05, :10, etc.
Every 15 minutes*/15 * * * *Runs at :00, :15, :30, :45
Every hour0 * * * *Runs at the top of every hour
Daily at 8 AM0 8 * * *Runs at 8:00 AM
Daily at 6 PM0 18 * * *Runs at 6:00 PM
Twice daily0 8,18 * * *Runs at 8:00 AM and 6:00 PM
Weekdays at 9 AM0 9 * * 1-5Monday through Friday at 9:00 AM
Every Monday at 8 AM0 8 * * 1Monday at 8:00 AM
Every Friday at 5 PM0 17 * * 5Friday at 5:00 PM
First day of month0 0 1 * *1st of every month at midnight
Business hours every 30 min*/30 9-17 * * 1-5Every 30 min, 9 AM-5 PM, Mon-Fri
ValueDay
0Sunday
1Monday
2Tuesday
3Wednesday
4Thursday
5Friday
6Saturday

You can also use three-letter abbreviations: SUN, MON, TUE, WED, THU, FRI, SAT.

  • Minute: 30
  • Hour: 8
  • Day of month: any
  • Month: any
  • Day of week: Monday through Friday

Runs at 8:30 AM every weekday.

  • Minute: 0
  • Hour: every 4 hours (0, 4, 8, 12, 16, 20)
  • Day of month: any
  • Month: any
  • Day of week: any

Runs at midnight, 4 AM, 8 AM, noon, 4 PM, and 8 PM every day.

  • Minute: 15
  • Hour: 10
  • Day of month: 1st and 15th
  • Month: any
  • Day of week: any

Runs at 10:15 AM on the 1st and 15th of every month.

The Automation page provides a visual schedule builder with Minute, Hour, and Day of Week dropdowns so you don’t need to write cron expressions manually. A live preview shows the human-readable schedule description and the corresponding cron expression. The builder generates expressions in the format {minute} {hour} * * {dayOfWeek}, with day of month and month always set to *.

For more advanced schedules (e.g., specific days of month, step intervals), use the cron expression syntax directly via the chat-based cron tools.