Skip to main content
A schedule trigger fires your script on a recurring basis without any manual action. You define when it should run — daily, weekly, monthly, or on a custom cadence — and Script.it creates a new session and runs the script each time the schedule fires. Schedule triggers are well-suited for reports, digests, data syncs, and any routine task that belongs on a fixed cadence.

Setting up a schedule trigger

1

Start a new trigger

In the sidebar, click the arrow next to New session (More create options) and choose New Trigger.
2

Name the trigger and choose Schedule

Enter a Name for the trigger — something descriptive like “Daily sales report”. Under Trigger, choose Schedule.
3

Choose a frequency

Use the How often? dropdown to pick a preset or write a custom cron expression:
  • Every 30 minutes — runs twice an hour
  • Every hour — runs at the start of each hour
  • Every few hours — choose an interval of 2, 3, 4, 6, 8, or 12 hours
  • Every day at… — runs once a day at the time you select
  • Every weekday at… — runs Monday through Friday at the time you select
  • Every week on… — runs once a week on the day and time you select
  • Every month on… — runs once a month on the day (1–28) and time you select
  • Advanced (custom cron) — enter a cron expression directly
With Advanced (custom cron), a Runs: line describes your expression in plain English (for example, “At 9:00 AM, every day”).
The minimum allowed interval is every 30 minutes. Schedules that would fire more frequently than that are not accepted.
4

Set the timezone

Use the Timezone picker to choose the timezone your schedule runs in. It starts as your browser’s timezone. If teammates in other timezones will use the script, set the timezone explicitly so the schedule fires when you expect.
5

Choose the script

Under Action, choose Run Script, pick the script, and fill in any inputs it needs.
6

Create the trigger

Click Create Trigger. The trigger activates immediately and will fire at its next scheduled time.
You can skip the form entirely and describe the schedule in chat: “Run this every weekday morning at 8 AM.” The agent sets it up for you.

Cron expression format

When you select Advanced (custom cron), you write a standard five-field cron expression:
Each field accepts: In any field, * means every value, , separates a list (1,15), - gives a range (1-5), and / gives a step (*/6).

Common examples

All cron expressions are evaluated in the timezone you selected. 0 9 * * 1 means Monday at 9:00 AM in your chosen timezone, not UTC — unless you explicitly choose UTC as the timezone. Daylight saving time is handled for you, so 9:00 AM stays 9:00 AM all year. A schedule saved without a timezone runs in UTC.

What happens when a schedule fires

When a scheduled trigger fires, Script.it runs your script. The run appears in your session history like any other, and if the script produces output files they’re available there. Runs can start up to a minute after the exact time. This spreads out the many schedules set for the top of the hour. If a scheduled run fails — because the script has an error, say — the trigger stays active and tries again at the next scheduled time. If it fails five times in a row, Script.it pauses it and lets you know. See Managing triggers.

Turning a schedule off

Use the Trigger switch on the trigger’s card in your script to stop it firing without losing its settings, and the same switch to start it again. Deleting a trigger from a script you can edit removes it for everyone in the workspace who had enabled it — see Managing triggers before you delete a schedule on a shared script.