Schedule a run
schedule_runSchedule a single future task for a Plori agent by setting delay_seconds or fire_at; it stays awaiting owner confirmation in Plori before it runs.
Instructions
Use this when the user wants one task to start later, such as "run this tonight" or "check again in two hours". Do not use for a repeating schedule such as every day or every week: ask the Workspace's agent with send_workspace_message to set up a scheduled workflow, which the account owner activates. Request one run at a later time, set by delay_seconds or fire_at (RFC 3339). Nothing is scheduled until the account owner confirms the request at confirm_url in the Plori web app: until then its status is awaiting_confirmation and it never fires, and the calling model cannot confirm it. A request whose fire time passes before the owner confirms it is not armed. Returns the request with its prompt, fire_at, status and confirm_url. The run it starts is charged like any run, and its actions outside the agent's own environment pause for the owner's approval one action at a time, as for any run started through this connector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The message to send the agent when the schedule fires. | |
| fire_at | No | Fire at this RFC3339 timestamp (mutually exclusive with delay_seconds). | |
| agent_id | No | The agent's UUID. Give this or workspace_id. | |
| session_id | No | A conversation of the agent to deliver the scheduled run into (session_id from an earlier result). Omitted, the conversation the agent is running in when the request is made, or a new conversation when it is idle. | |
| workspace_id | No | The Workspace UUID; the Workspace's agent runs the prompt. Give this or agent_id; with both, agent_id is used. | |
| delay_seconds | No | Fire this many seconds from now (mutually exclusive with fire_at). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The schedule's id. | |
| kind | Yes | once: a single run at fire_at. | |
| prompt | Yes | The message the agent receives when the schedule fires. | |
| status | Yes | awaiting_confirmation until the owner confirms at confirm_url; pending once armed; firing or dispatched while delivery is in progress; done once the run starts; cancelled or failed otherwise. | |
| fire_at | No | When it fires, RFC 3339. | |
| agent_id | Yes | The agent the run is scheduled for. | |
| attempts | Yes | Delivery attempts so far. | |
| metadata | No | Extra data recorded with the request; not needed to use it. | |
| thread_id | No | The conversation the run is delivered into: the session_id given, else the conversation the agent was running in when the request was made, else a new one. | |
| created_at | Yes | When the request was made. | |
| last_error | No | Why the last delivery attempt failed, when it did. | |
| confirm_url | No | Where the owner confirms, in the Plori web app. | |
| confirmed_at | No | When the owner confirmed it. | |
| last_fired_at | No | When it last fired. |