Skip to main content

Scheduled work on workflow steps

Configure recurring timer runs on a workflow step, narrow which work items fire, and test scheduled behavior

Scheduled work on workflow steps

Some workflow steps stay open for days or weeks — tracking a work item, sending reminders, or re-checking an external system on a cadence. Scheduled work lets Thunk.AI run the step's AI agent on a recurring timer while the step remains active.

Each timer tick is a normal agent run on that work item, driven by the step's AI Instructions. The agent does its work for this pass and, by default, waits for the next scheduled run rather than finishing the step. See How an AI agent ends a run for that conclude behavior.

Scheduled work is configured once per workflow step in the plan. Every active work item on that step shares the same schedule, filter, and scheduled-run instructions.

When to use scheduled work

Use a schedule when a step should wake up without a new inbound message — for example:

  • Send reminders or escalations as a deadline approaches

  • Re-check status on a cadence until a condition is met

  • Periodically refresh computed fields across many work items

  • Add new work items on a cadence (a weekly status report, a daily pull of new records from another system)

A schedule on a later workflow step re-runs that step on work items that already exist. It does not create new ones.

To add new work items on a timer, put the schedule on Add to Work Items, the step that creates new work items, and not on a later step. See Add new work items on a schedule.

For a full pattern that combines inbound updates with scheduled checks, see Design pattern: the Work Tracker.

Add new work items on a schedule

Add to Work Items is the thunk's AI input channel. Open Run → Inbound Requests and select the AI tab. If there is no AI tab, turn on the AI channel on the Channels tab (see Inbound Requests). The tab has three parts:

  • Data Loader AI: a chat where you ask the AI to add work items now.

  • Instruction: its directions, and the AI Tools it can use.

  • Scheduled: its schedule, its Custom AI instructions for scheduled runs, and Test.

A scheduled run is an AI agent run, the same as a message typed into Data Loader AI. It can use the tools turned on under AI Tools, such as a connection to another system, a custom code tool or a Spreadsheets content folder. It can add many work items in one run. This is how a thunk collects new work from a system that cannot send requests to it: on each run, the AI asks that system for recent records and adds one work item per record.

Set up periodic collection

  1. Add the other system as a connection on the thunk, and turn its tools on under Instruction → AI Tools.

  2. Make the fields of each record workflow inputs, so each new work item arrives with structured values. The workflow steps then work from those values, with no document to read.

  3. Under Scheduled, choose a schedule, for example Daily at specific time, earlier than the scheduled workflow steps that process the new work items.

  4. Write the Custom AI instructions for scheduled runs. For example:

    Objective: Add a work item for each purchase order raised recently.

    Process:

    1. For each cost centre in the Cost Centres sheet, get the purchase orders raised in the last 7 days.

    2. Add one work item per purchase order, named by its PO number, with its details. Skip purchase orders that have already been added.

  5. Click Test to run it once now, and check the work items it adds. Test is available to the thunk's owner and admins.

Add each record once

Collect over a time frame that overlaps the previous run, such as the last 7 days on a daily schedule, so that records entered late are not missed. Then make sure a record already added is not added again:

  • Name each work item after the record's own identifier, such as the PO or ticket number.

  • Say in the instructions to skip records that have already been added.

The AI then leaves out each record whose Name matches a work item already in the thunk, and adds the rest. Without that instruction, adding a Name that already exists is refused, and the AI has to try again without it.

Keep each run small

A scheduled run has the same time limit as any step's AI agent run. When the other system returns many records, or needs one call for the list and another for each record's details, put those calls in a custom code tool that returns only the new work items' values. A code tool can call a connection's tools (see Calling a connection's tools in How custom code tools work). Keep lists the business changes, such as which cost centres to collect, in a Spreadsheets content folder rather than in the instructions.

Where to configure it

  1. Open your thunk and select a workflow step.

  2. Open the step's Settings tab (or the step details panel while authoring the plan).

  3. Expand Scheduled Work Settings in the AI Instructions area.

Turn on a recurring schedule with Daily at specific time, Every hour, Monthly on a specific day, or Yearly on specific months. When a schedule is active, an enabled indicator appears on the section header.

While authoring the workflow plan (no work item open), you can edit the schedule shape but cannot fire a test — testing requires a concrete work item and step instance.

Schedule options

Daily at specific time

Choose a Daily Time, Timezone, and optional Days of week chips (for example weekdays only). The agent runs once per selected day at that clock time in the chosen timezone.

Every hour

Runs at the top of each hour. Optionally turn on Only run between certain hours, pick From / To hours, and set a Timezone so ticks happen only during business hours in that zone.

Monthly on a specific day

Choose a Timezone, a Time, and a Day of month. The agent runs once a month on that day at that clock time in the chosen timezone.

Pick a numbered day (1–31) or Last day of month. A numbered day of 29, 30, or 31 only fires in months that have that day — shorter months are skipped — so choose Last day of month when you want the step to run every month (for example, end-of-month billing or reporting).

Yearly on specific months

Choose a Timezone, a Time, the Months the step should run in, and a Day of month. The agent runs on that day of each selected month, at that clock time in the chosen timezone.

Months is a set of chips — tap the ones you want. This is how you build any cadence that repeats a few times a year:

  • One month for a true annual run (for example, an annual policy review each Jan)

  • Jan, Apr, Jul, Oct for calendar quarters — or Feb, May, Aug, Nov / Mar, Jun, Sep, Dec when your fiscal quarters are offset

  • Jun and Dec for a twice-a-year check

Day of month works exactly as it does for a monthly schedule: a numbered day (1–31) or Last day of month. A numbered day of 29, 30, or 31 is skipped in any selected month that does not have it, so choose Last day of month for quarter-end or year-end work.

At least one month stays selected, and days that none of the selected months have are unavailable — you cannot pick the 31st when only February is selected. Selecting all twelve months is the same as a monthly schedule.

How a scheduled run behaves

On the first time a work item reaches the step, the agent runs once to do any setup, then typically concludes while leaving the step open.

On each timer tick, the agent runs again on that work item. Unless your instructions say to finish the step, the agent concludes by waiting for the next scheduled run — the step stays active for the next tick or for an inbound update.

Write directions that separate:

  • What to do on the initial run (setup, first message, and so on)

  • What to do on each scheduled run (re-check, remind, update state)

  • When the step should finish (for example when a status becomes Done)

If every run should do the same thing, write that once; repeating the same work on each run needs no separate directions.

Use a Step Finish Condition under Workflow Options when the platform should enforce when the workflow may proceed. See Control when a step runs and proceeds.

Query Filter

By default, every active work item on the step is eligible on each tick. On thunks with many work items, that can be expensive.

Query Filter narrows scheduled runs to work items whose property values match a condition — the same condition builder used for Workflow Options and tests. You must bind input properties on the step before a filter is available.

Examples:

  • Only work items whose NextCheckDate is on or before today

  • Skip work items whose Status is already Done

On a real scheduled run, work items that do not match the filter are skipped for that tick — the agent is not invoked for them.

Custom directions for scheduled runs

By default, scheduled runs use the step's Directions field. To author separate directions that apply only on timer ticks, write them under Custom AI instructions for scheduled runs. Leave that box blank to keep using the step's Directions.

When that box has text, those directions replace the step's Directions for scheduled runs. Include any phrasing about when to finish the step or keep waiting in the override — the scheduled run reads these directions to decide.

Interactive runs (for example when an inbound message arrives) still use the step's normal Directions.

Test a scheduled run

From a work item on a step with an active schedule:

  • Use Test in Scheduled Work Settings, or

  • Click the timer icon in the step header

Both open the Scheduled Work dialog. You can:

  • Fire one simulated timer tick for this work item only

  • Optionally set Simulate firing at so time-dependent instructions (for example "if today is after the due date…") can be exercised without waiting for the clock

  • When a Query Filter is configured, choose whether to Respect the filter (default off for a test — the step runs regardless unless you opt in)

Simulated time affects what the agent is told the current time is. Tool results, message timestamps, and data the run writes still use the real clock.

Tips

  • Match schedule cadence to how timely reminders must be — status refreshes on the next tick or inbound update, not the instant a date passes.

  • Combine a fixed cadence with a Query Filter so each tick touches only work items that need attention.

  • For long-running tracking steps, pair scheduled work with inbound routing so updates and timer ticks share one set of directions.

  • Use Test with a simulated date when instructions depend on calendar logic.

To send a thunk's saved reports on a schedule rather than run a workflow step, see Send reports on a schedule with the report automation.

Did this answer your question?