Skip to content

Schedules

A Schedule starts a conversation on a mesh on a cron timetable. All times are UTC. The conversation is like any other conversation. Agents can call tools and write memory, and you can inspect the conversation as a trace.

Quick Reference

Configuration

FieldPurposeGuidance
NameIdentifies the schedule

Unique per organization.

DescriptionNotes

Optional.

MeshWhat to run

The mesh to start a conversation on.

IntentEntry point

An intent of the version that runs. One the version lacks fails the run.

Version labelWhich version runs

For example latest or production. A schedule runs the draft version, a labeled version, or the version a route picks. Choose at most one of Version label and Route; neither means the draft.

RouteWhich version runs, by route

Not used while a version label is set. Lets a schedule take part in a canary split.

EnabledOn or off

Runs on its timetable. Off keeps the schedule without running it.

Input

FieldPurposeGuidance
InputThe intent's input

A JSON object sent as the intent input. The server does not check it against the schema; a mismatch fails the run.

Timetable

FieldPurposeGuidance
Cron expressionWhen to run

Five fields, UTC: minute hour day-of-month month day-of-week. For example 0 9 * * 1-5 runs at 09:00 UTC on weekdays. When both day-of-month and day-of-week are set, either one matching runs it.

Conversation Tags

FieldPurposeGuidance
Conversation tagsTags on every started conversation

Copied onto every conversation this schedule starts, with schedule_id and scheduled_for added by the server. Those two names are reserved, so a schedule may set at most 30 tags of its own.

Runs

FieldPurposeGuidance
Next runThe next time it fires

None while disabled.

Last runOutcome of the latest run

Shows a status of OK, Failed, Off, Disabled by server or Not yet run.

ErrorWhy the last run failed

A short message. A failed run still advances to the next slot.

ConversationThe conversation the last run started

Open trace, or copy the conversation ID.

Example

A daily report that runs at 06:00 UTC:

FieldValue
IntentGenerateReport
Cron expression0 6 * * *
Input{"period": "yesterday"}
Conversation tagssource=daily-report

Related