The schedule UI lives underDocumentation Index
Fetch the complete documentation index at: https://docs.chatblocks.ai/llms.txt
Use this file to discover all available pages before exploring further.
/settings/schedule. Admins on a Builder workspace can create and manage scheduled runs from here; Free workspaces see an upgrade panel instead of the form.
Routes
| Route | Purpose |
|---|---|
/settings/schedule | List with status badges, run-now button, manage actions |
/settings/schedule/new | Create a new schedule (Builder + admin only) |
/settings/schedule/[id]/edit | Edit an existing schedule (Builder + admin only) |
/settings/schedule/[id]/history | Last 50 runs, with “Load more” up to 200 |
/settings) also renders a <SchedulePanel> summary between the BYOK panel and the rest — clicking Manage drills into the list.
The form
/settings/schedule/new and /settings/schedule/[id]/edit share <ScheduleFormFields>. Field order:
BYOK key
Dropdown of every BYOK key on the workspace. The selection drives which models are available in the next field.No BYOK key? Add one at
/settings → BYOK panel before coming back. See BYOK keys.Model
Filtered against
KNOWN_MODELS[provider] based on the BYOK selection:- Anthropic —
claude-opus-4-7,claude-sonnet-4-6,claude-haiku-4-5 - OpenAI —
gpt-5.5,gpt-5.4-mini,gpt-5
Block (optional)
Optional. Pick a block to focus the run on — usually so the prompt can refer to “this block” and the agent has an obvious write target via
blocks.setWidgetData. Leave blank for a workspace-wide run.Prompt
Plain-English instructions, up to 4000 chars. The runner passes this verbatim into
generateText along with the tool set discovered from tools/list.Treat the prompt like a system prompt for a one-off agent. Be specific about which tool to call and on which block / data source.Cron expression
Preset dropdown (
every-15-min / every-hour / daily-9am / weekdays-9am / custom) plus a raw cron field. All cron times are UTC — Trigger.dev does not respect any local-timezone hint in v1.See Concepts → Cron presets for the preset values.schedules.create. The returned schedule id is stored on the row as triggerScheduleId — you don’t see it in the UI, but it’s how pause/resume/delete sync back through the SDK.
The list view
/settings/schedule shows one row per saved schedule with:
- Status badge —
active/paused/error. Errors include the most recenterrorMessage. - Cron expression plus a human label if it matches a preset.
- Last run — relative timestamp from the most recent
scheduledRunHistoryrow. - Actions — Run now (admin + active only), Pause / Resume, Edit, History, Delete.
Pause and resume
Both flip the row’sstatus field and call Trigger.dev’s schedules.update to toggle the schedule on the Trigger side. Paused schedules stay in the list but don’t fire on the cron until resumed.
History
/settings/schedule/[id]/history lists scheduledRunHistory rows in reverse chronological order. Columns:
| Column | Notes |
|---|---|
| Ran at | UTC timestamp |
| Success | ✓ if the agent loop returned without throwing; ✗ on any error |
| Duration | Wall-clock milliseconds from start to finish |
| Tool calls | Count of MCP tools the agent invoked |
| Error | Truncated errorMessage if success: false |
Delete
Deleting a scheduled run:- Removes the
scheduledRunsrow. - Cascades the per-row system-flagged
cb_live_*key (so the runner can never invoke MCP with this key again). - Calls Trigger.dev
schedules.delto remove the cron from their side. - Leaves
scheduledRunHistoryrows in place (for audit; they’ll fall off via retention later).
Pro-gate behavior
The form components include UI-only checks (e.g. disabling Save), but the authoritative gate is server-side.requireProPlan runs at the top of schedule.set, schedule.pause, schedule.resume, schedule.delete, schedule.preview, and schedule.runNow — both UI mutations and MCP tool calls go through it.
Free workspaces calling these via MCP get a PRO_REQUIRED error on the wire; the UI shows <ProUpgradePanel> in place of the form.
What’s next
Preview and run-now
Test a prompt without waiting for the cron, or fire a one-off run of a saved schedule.
BYOK keys
Manage the LLM keys that scheduled runs decrypt at runtime.