n8n-docs/docs/nodes/nodes-library/core-nodes/Cron
2021-01-14 05:05:52 -07:00
..
README.md Added reference to the Coffee Chat blog post 2021-01-14 05:05:52 -07:00

permalink description
/nodes/n8n-nodes-base.cron Learn how to use the Cron node in n8n

Cron

The Cron node is useful to schedule the workflows to run periodically at fixed dates, times, or intervals. This works in a similar way to the cron software utility in Unix-like systems. This core node is a Trigger node.

::: tip 💡 Keep in mind

  1. If a workflow is using the Cron node as a trigger, make sure that you save and activate the workflow.
  2. Make sure that the timezone is set correctly for the n8n instance (or the workflow). :::

You can find the example usage of the Cron node in the Create Your First Workflow guide.

Node Reference

You can configure the node by clicking on the Add Cron Time button under the Trigger Times section. There are a couple of different options available for the Mode field in the form of a dropdownlist.

  • Mode
    • Every Minute
    • Every Hour
    • Every Day
    • Every Week
    • Every Month
    • Every X
    • Custom

The 'Every X' option allows you to specify the workflow to be triggered every x minutes or hours. You can specify x by entering a number in the Value field. The 'Custom' option allows you to enter a custom cron expression in the Cron Expression field.

FAQs

How to generate a custom Cron expression?

To generate a Cron expression, you can use crontab guru. Paste the Cron expression that you generated using crontab guru in the Cron Expression field in n8n.

Further Reading