prompt to the agent on schedule, either passing it directly to the session or running it through the LLM to generate a reply.
Base path
Endpoints
Create a cron job
Send aPOST request with a trigger and a prompt to schedule a recurring task. Only the job owner can list or change jobs — administrators who do not own the agent receive an empty list.
Request body
string
Optional display label. When omitted, the server derives one from
prompt.string
required
Defines when the job runs. Accepts a cron expression, an interval shorthand, or a one-time ISO 8601 date. See the trigger format table below.
string
required
The text sent to the agent when the job fires. Must be non-empty and no longer than 2000 characters.
string
Controls how the prompt is handled. Use
"agent" (default) to run the prompt through the LLM and push the reply into the session. Use "text" to push the prompt text directly without an LLM call.string
Route the scheduled message to a specific existing thread. If omitted, the job uses the agent’s default session.
boolean
When
true, Octop creates a brand-new thread for each run instead of appending to an existing one. Useful for daily summaries you want to keep isolated.string
Override the agent’s
default_model for this job only — for example "openai:gpt-4o-mini" to use a cheaper model for routine scheduled prompts.Trigger formats
Cron jobs run in the timezone configured on your Octop server. Check the current timezone with
GET /api/cron/settings before scheduling time-sensitive jobs.Trigger a job immediately
UsePOST /agents/{aid}/cron/{cid}/run-now to fire a scheduled job outside its normal schedule — for example when testing a new prompt before the next scheduled run.
204 No Content and enqueues the job immediately. It does not affect the next scheduled run time.

