cURL
curl --request POST \ --url https://operator.io/api/automations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data @- <<EOF { "name": "Daily scoring", "prompt": "Score all AQI predictions against yesterday's actuals and report results.", "cronExpression": "0 9 * * *", "timezone": "America/New_York" } EOF
{ "automation": { "id": "<string>", "name": "<string>", "prompt": "<string>", "cronExpression": "<string>", "timezone": "<string>", "enabled": true, "createdAt": "2023-11-07T05:31:56Z" } }
Creates a scheduled automation that sends a prompt to the Operator agent on a cron schedule.
API key (ck_live_...). Create one in Settings > API Keys.
ck_live_...
The message sent to the Operator agent when the automation fires.
Cron expression (e.g. 0 9 * * *).
0 9 * * *
IANA timezone (e.g. America/New_York). Defaults to UTC.
America/New_York
Created.
Show child attributes