Agent schedules
Agent schedules run an agent on a timer, when a workflow run or exception event happens, or only when you or another agent trigger it. Each agent package can include a schedules.json file beside AGENT.md in Fontana Files. Anyone with an editor grant on that namespace edits it in AI → Agents or File System (/files). You then activate a definition for yourself: each fire appends the prompt to one persistent thread and runs the agent.
Author definitions
Section titled “Author definitions”- Open AI → Agents and open the agent. Package folders open
AGENT.mdautomatically. - Open the Schedules tab. If the package has no
schedules.jsonyet, choose Create schedules.json. - Use My activations to add, edit, or delete shared definitions (this needs an editor grant on the agent’s namespace). A new row from + Add schedule turns On for you once the saved file has synced. Leave the title at its placeholder and Fontana names the schedule for you; a title you type is kept.
Cron schedules use a UTC recurrence builder (interval, weekdays, time). Event and manual schedules let you tick one or more Workspaces, individual workflows inside them, or a mix; ticking a Workspace watches every workflow in it. Manual schedules stay off the timer and the event watchers until Run now or agents_triggerAgentSchedule. The JSON editor stays available for advanced edits; turn On the definitions you author in JSON.
You can also open schedules.json in the file tree. In File System, the file opens with the rendered schedules as Preview and the JSON as Source. If the file cannot be parsed, the last good schedules stay in effect and the error shows on the agent page and in File System.
schedule.kind is "cron" and expr is a UTC cron expression:
{ "schedules": [ { "id": "daily-digest", "name": "Daily digest", "prompt": "Summarise overnight activity.", "schedule": { "kind": "cron", "expr": "0 8 * * *" } } ]}schedule.kind is "event". project is the Workspace and workflowPath is the workflow file inside it:
{ "schedules": [ { "id": "on-nav-fail", "name": "On NAV failure", "prompt": "Investigate the failed NAV run and propose next steps.", "schedule": { "kind": "event", "event": "workflow_run_failed", "project": "NAV production", "workflowPath": "Daily NAV.wf.json" } } ]}One workflow is project plus workflowPath. One Workspace is project with no workflowPath; the schedule then watches every workflow in it. Several picks are a targets list, where each entry is a Workspace, or one workflow when it also has workflowPath. Leave project and workflowPath off the schedule when targets is set.
Event keys:
| Event | Fires when |
|---|---|
workflow_run_completed, workflow_run_failed, workflow_run_succeeded |
The workflow engine records the end of a build of the watched workflow. A build in which any node failed counts as failed, even when other nodes published rows |
exception_raised |
A build records new exception tickets in the watched Workspace: one fire per build, carrying every new ticket |
exception_status_changed |
An exception’s status changes (one fire per change; severity-only updates do not fire) |
email_received |
A new message arrives in the agent’s mailbox (no project). Delivery always stores the message; a turn starts only when this definition exists, your activation is On, and the message is new. A reply continues the chat that sent the parent message instead. See Agent email |
Workflow and exception event schedules can store a condition: a property, operator, and value, the same row as a view filter. The agent runs when any condition matches any exception ticket the event touched; a blank condition fires on every matching event. Run now starts the agent even when a condition is set. Test now runs the clause over the watched workflow’s current tickets without starting the agent.
Every matching event fires every enabled activation of that definition, whoever owns it. A turn that an activation started does not re-fire that same activation when it changes an exception status; other activations still run. Each matching ticket records that the agent was triggered. When the last History items on every matching ticket come only from agents, the trigger is refused and History records “possible agent infinite loop rejected”; how many items count is an AI preference (default 10). A person changing the ticket, or a build that records new exception data, starts that count again. You need read access to the watched Workspace to activate or fire an event schedule.
An exception fire writes the batch into the thread’s user context: selection.exceptionIds plus exception.exceptions (id, key, type, message, status, severity, assignee when set, and previousStatus on a status change). A build that raises many tickets still starts one turn, and each recorded change starts at most one turn. The agent reads each ticket with workflow_getException.
Manual
Section titled “Manual”schedule.kind is "manual": a command that never auto-runs.
{ "schedules": [ { "id": "on-demand-review", "name": "On demand review", "prompt": "Run the review playbook.", "schedule": { "kind": "manual" } } ]}Optional project binds a manual command to a Workspace, and optional workflowPath narrows it to one workflow. Optional condition is Show when: the command appears on that Workspace’s exception rows and board cards when the row matches and you have turned the schedule on; a blank condition is offered on every row. The button uses the agent’s colour with the agent’s face on the left. While it starts, the label reads Calling and the agent’s name; once the thread exists, View thread opens it. A run from an exception row includes that exception in the thread. Play in the exception view menu starts the agent for the whole exception grid. The same view lists every trigger on the Workspace under Run agent commands, with Edit to open the triggers.
Definitions do not store who owns them or whether they are on. That lives on your activations.
Activate for yourself
Section titled “Activate for yourself”Turn a definition On or Off on the same panel. Each activation is one small file in your personal space in Fontana Files, schedules/<agent id>/<schedule id>.yaml, holding enabled: true or enabled: false. Because it is a file, your activations come back when your deployment is restored from Fontana Files. Turning a schedule on needs agents:read and read access to the agent’s namespace; otherwise the change is refused.
Each activation card has Run now on its Last run row, which fires the schedule immediately through the same path as the timer or event, including manual schedules. Save unsaved edits first. Cron Run now advances the next due time from the moment you fire.
On an open workflow, the right-toolbar Agent Automation panel lists the agent event triggers for that workflow. You can create an event schedule for an agent package from there when you hold an editor grant on that package’s namespace, and event cards there also have Run now. A timer that runs the workflow itself is set on the node that needs it, in UTC as well; see Workflows.
In AI chat, the lightning control beside the selected agent opens the same schedule list. With an editor grant on the agent’s namespace, + Add new Schedule creates a definition for that agent.
Each fire reuses the activation thread, created on first run, which appears under Recent chats on AI → Agents. Before the scheduled prompt is written, Fontana cancels any pending tool calls on that thread and discards an in-flight model turn, so the new prompt owns the conversation. Deleting the package disables activations and removes shared definitions; past threads stay.
Create schedules from chat
Section titled “Create schedules from chat”You can ask Fontana agent to wire an event schedule without editing JSON. With the Find and run workspaces, Delegate to other agents, and Read and write files abilities, an agent uses these calls:
| Call | What it does |
|---|---|
workflow_searchWorkflows |
Resolves the watched workflow: each hit names its Workspace (project) and the .wf.json path inside it (workflow_path) |
agents_listAgents |
Resolves the agent_id |
agents_upsertAgentEventSchedule |
Writes the shared definition from event, agent_id, project, workflow_path, and prompt. It turns the schedule on for nobody |
mcp_ffs_put_file |
Writes your activation file to turn the schedule on for you; the upsert result names the file |
mcp_ffs_get_file |
Reads an agent’s shared definitions from its schedules.json |
agents_triggerAgentSchedule |
Fires any agent’s schedule now, by agent_id and schedule_id. Optional userContext JSON; when omitted, the triggering thread’s user context is copied onto the schedule thread |
When a fire cannot run
Section titled “When a fire cannot run”If the scheduled turn hits the conversation spending cap or message-order budget, the activation turns itself off and records the reason. An event schedule that loses workflow read access turns itself off at fire time. Fontana also sets your activation file to enabled: false, so the file and the schedule agree. Turn it On again to clear the reason.
Related
Section titled “Related”- Agents: packages, abilities, and handoff
- Human in the loop: approval and interruption patterns
- Agent email: the
email_receivedevent