Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 8

Schedule Trigger Configuration

Recommended resources

Introduction

In our last lesson, we established a high-level understanding of the three primary ways to start a workflow: manually, on a schedule, or in response to an event. We drew an analogy between these and common CI/CD practices—a manual pipeline run, a nightly build, and a trigger from a git push.

Today, we move from the "what" to the "how." This lesson focuses on the practical configuration of the Schedule Trigger. You will learn how to set up a workflow to execute at precise, recurring intervals, a skill fundamental to automating routine tasks. For your goal of automating CI/CD pipelines, this is the equivalent of setting up cron jobs for scheduled tasks like nightly builds, security scans, or periodic environment cleanup.


Configuring the Schedule Trigger

When you add a Schedule Trigger node to your workflow, you are presented with a straightforward set of parameters to define its execution timing. The core of this configuration lies in the Trigger Rules.

The configuration panel for the Schedule Trigger node, showing parameters for setting a daily run at a specific time.

You can add multiple rules to a single trigger, allowing for complex schedules within one node. For each rule, you first select a Trigger Interval.

Interval-Based Scheduling

The simplest way to configure the trigger is by using the predefined intervals: Seconds, Minutes, Hours, Days, Weeks, and Months. Each selection reveals a different set of parameters tailored to that interval.

For example, selecting "Days" allows you to specify:

  • Days Between Triggers: The number of days to wait between executions.
  • Trigger at Hour: The specific hour of the day for the workflow to run.
  • Trigger at Minute: The minute of the hour for the execution.

A short video demonstrates configuring a simple daily schedule.

Master 80% of n8n in 36 Minutes

This clip from a video by Futurepedia quickly walks through setting up a daily schedule.

Watch the segment from this video to see a practical example of configuring a workflow to run every day at 6:00 AM.

The official n8n documentation provides a complete reference for each of these interval types. It's a good resource to review to understand the full range of possibilities.

Schedule Trigger node documentation

The official n8n documentation provides a definitive guide to all the parameters for interval-based scheduling.

Please review the sections describing the main interval configurations. You can find them by looking for the following headings: Days trigger interval Hours trigger interval Minutes trigger interval Familiarize yourself with the parameters available for each.

Advanced Scheduling with Cron Expressions

For more complex scheduling needs that don't fit the standard intervals—such as running a job multiple times a day at specific hours or only on weekdays—n8n provides the Custom (Cron) interval.

Given your experience with CI/CD systems like Jenkins or GitLab CI, you are likely already familiar with cron syntax. n8n uses a standard cron format, but with a slight difference: it supports an optional sixth field at the beginning to represent seconds.

* * * * * *
(second) (minute) (hour) (day of month) (month) (day of week)

While you can write these expressions by hand, it's often faster and less error-prone to use a generator. The following video offers a very practical tip for this.

All you need to know about Triggers in n8n

This video from Ahmad | AI Automation shows a clever shortcut for creating complex cron expressions without needing to memorize the syntax.

Watch the segment on the schedule trigger. The presenter highlights the power of the custom cron option and demonstrates using an external tool (in this case, ChatGPT) to generate the exact expression needed. Tools like crontab.guru are also excellent for this.

The official documentation also includes a helpful table of common cron expression examples.

Schedule Trigger node documentation

This section of the documentation provides a quick reference for common cron patterns and explains the six-field syntax used by n8n.

Focus on the section for Custom (Cron) interval. Review the example table and the explanation of the six asterisks.


Two Critical Details for Reliable Execution

Configuring the trigger node is only half the battle. Two common oversights cause most scheduled workflows to fail silently. Understanding these is key to building reliable automations.

How to Automate Anything on a Perfect Schedule Using n8n's Trigger Node | GrowwStacks Blog

This article from the GrowwStacks blog does an excellent job of highlighting the two most critical settings that developers often miss.

Read the sections titled The 2 Critical Settings and Timezone Troubleshooting. Pay close attention to the explanations for Workflow Publication Status and Timezone Configuration.

To summarize these crucial points:

  1. Workflows Must Be Published (Active): A Schedule Trigger will only run if the workflow is active. Simply saving your work is not enough. You must click the toggle to "Active" in the top right of the editor. A saved, inactive workflow will never be triggered by the scheduler.
  2. Timezone Configuration is Key: The schedule is evaluated based on the timezone setting of your n8n instance, not your local browser or system time. If this is misconfigured, your "8 AM" job might run in the middle of the night. You can set this via environment variables when self-hosting (GENERIC_TIMEZONE), which we will cover in a later module. For now, just be aware that this setting is the final authority on when a schedule runs.

The Trigger's Output

When a Schedule Trigger executes, it doesn't just start the workflow; it also produces a small JSON object as its output. This object contains useful timestamp information about when the trigger ran.

The n8n interface showing the configuration parameters for a Schedule Trigger on the left and its corresponding JSON data output on the right.

As you can see in the OUTPUT pane, the trigger provides the exact timestamp, along with conveniently pre-formatted values for the date, time, day of the week, and more. In subsequent lessons, we'll see how to use this data in downstream nodes.


Conclusion

You are now equipped with the practical knowledge to configure a workflow to run on any schedule you require. You can implement simple intervals for straightforward tasks and leverage the power of cron expressions for more complex timing, a familiar pattern from your CI/CD background.

Key Takeaways:

  • The Schedule Trigger can be configured using simple intervals (Minutes, Hours, Days) or a Custom (Cron) expression for advanced control.
  • A scheduled workflow will only run if it is active (published). Saved but inactive workflows will not execute on schedule.
  • Execution time is determined by the n8n instance's timezone setting, a critical detail for time-sensitive automations.
  • The trigger node generates a JSON output containing detailed timestamp information, which can be used by other nodes in the workflow.

In our next lesson, we will build on this foundation. You will learn how to inspect the input and output data of any node, starting with the timestamp data generated by the Schedule Trigger we've just configured. This is the first step toward understanding how data flows through and is transformed by your n8n workflows.