Skip to content

Schedule

A Schedule trigger starts the workflow at the times a cron expression describes. It can start one run each time, or ask an MCP tool for a list of customers and start one run per customer. You can limit it to a date range and skip holidays.

  • Every weekday at 10:00, remind customers whose policy expires in 30 days.
  • Each morning, send EMI reminders to borrowers with an instalment due in three days.
  • Once a week, run a clean-up or reporting workflow.
  • A system should start the run when something happens. Use Business event or API / webhook.
  • A run that is already going should wait a while before its next step. Use Wait.
Setting What it does
Schedule (cron) Required. Five-field cron, for example 0 10 * * 1-5 for 10:00 on weekdays.
Time zone For example Asia/Kolkata. Empty uses the workflow’s time zone.
First day No runs before this date.
Last day No runs after this date. It cannot be before the first day.
Skip these days Holidays as YYYY-MM-DD.
Who it runs for none (default) starts one run each time. mcp_tool asks a tool for the list of customers.
Audience MCP server For MCP tool. Required. The server that has the audience tool.
Audience tool For MCP tool. Required. Must return a JSON list; each item becomes a run’s input.
Audience tool inputs For MCP tool. Fixed values sent to the audience tool, for example daysToExpiry = 30.
Runs For MCP tool. one_per_item (default) starts a run per list item. one_for_all starts one run with the whole list as input.items.
  • input.scheduledFor: the scheduled time, as an ISO date and time, on every run.
  • With an audience tool and one run per item: each item’s fields as input.<field>. An item that is not an object arrives as input.value.
  • With one run for all: the list as input.items.

Each scheduled time starts at most once, even after a restart. If scheduling was paused, only the most recent missed time within the last hour runs. If the audience tool fails, no runs start for that time. There is an upper limit on the number of items used from one list.

An insurer reminds customers 30 days before their motor policy expires.

Schedule (0 10 * * 1-6, audience tool) → Consent (messaging opt-in) → Send message (renewal reminder) → End

The audience tool returns:

[
{ "policyNumber": "MTR-55102", "customerRef": "C-10293", "phone": "+919800000001" },
{ "policyNumber": "MTR-55117", "customerRef": "C-10388", "phone": "+919800000002" }
]

Each item starts its own run, so input.policyNumber and input.phone are ready for the steps that follow.