Desktop reference · Local API

Automations

Instructions that run on their own, on a schedule, each run in a new session. 12 operations of the TALOS Desktop local API.

Reference for TALOS Desktop 0.2.4 generated from the source of the release · released

Instructions that run on their own, on a schedule, each run in a new session. Paths are relative to /api/v1.

List the automations: tasks that run on a schedule.

Answers The JSON envelope.

Errors1
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Create an automation: instructions that run on their own, in a folder, on a schedule.

Two forms. The current one is recognized by istruzioni and needs nome, istruzioni, cartella and pianificazione; the folder must exist and be readable and writable now. The older form starts from a task template every so many minutes (taskId and intervalloMinuti, with an optional daily limit). Only from the TALOS window. An automation is on as soon as it is created.

Body

istruzioni
What each run must do, self-contained: every run starts a new session that does not see the chat it came from.
modello
The model it runs with, as vendor/model-name.
coordinazione
true lets each run start agents on its own (Coordination); default false.
ripeti
Stop after this many runs; absent or null to run until it is turned off.
pianificazione
When it runs, in its own time zone: { tipo: "manuale" }, { tipo: "ogni-ora", minuto }, { tipo: "giornaliera", ora: "HH:MM" }, { tipo: "feriali", ora } (Monday to Friday), { tipo: "settimanale", ora, giorno } (0 = Sunday), { tipo: "ogni-n-minuti", minuti }, { tipo: "cron", espressione } (5 fields) or { tipo: "una-volta", quando: "YYYY-MM-DDTHH:MM" }. Never more often than every 5 minutes.
taskId
Older form: the task template to start from.
nome
A name for the automation.
intervalloMinuti
Older form: how often it runs, in minutes.
limiteAlGiorno
Older form: the most runs per day.
cartella
The folder it works in, as an absolute path.
fusoOrario
Its time zone (an IANA name); default: this computer’s.
permessi
What each run may do in its folder: Read only, Workspace write (default), On request or Full access.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
AUTOMATION_ORIGIN_FORBIDDEN 403 Automations can be changed only from the TALOS window.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Turn an automation on or off.

Path

automationId
The automation.

Body

attivarequired
true or false.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

POST /automations/{automationId}/coordinazione

Section titled “POST /automations/{automationId}/coordinazione”

Turn Coordination on or off for an automation: whether its runs may start agents on their own.

Path

automationId
The automation.

Body

coordinazionerequired
true or false.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Delete an automation.

Path

automationId
The automation.

Body

Answers The JSON envelope.

Errors2
CodeStatusMeaning
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Change an automation: only the fields sent change (at least one).

Automations in the older format cannot be changed (AUTOMATION_LEGACY). A new folder must exist and be readable and writable now. Only from the TALOS window.

Path

automationId
The automation.

Body

nome
The new name.
istruzioni
The new instructions.
cartella
The new folder, as an absolute path.
modello
The model, as vendor/model-name, or null for the default.
permessi
Read only, Workspace write, On request or Full access.
coordinazione
true or false.
pianificazione
The new schedule, in the forms of POST /api/v1/automations.
fusoOrario
The new time zone (an IANA name).
ripeti
Stop after this many runs, or null for no limit.

Answers The JSON envelope.

Errors3
CodeStatusMeaning
INTERNAL_ERROR 500 An unexpected error on the server; the Doctor has the detail, under the reference shown.
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Run an automation now, outside its schedule (also when it is off). Refused while a run of it is going (AUTOMATION_RUN_IN_PROGRESS).

Path

automationId
The automation.

Body

contesto
Extra context for this run only, up to 4,000 characters; it reaches the run as data, not as instructions.

Answers The JSON envelope.

Errors3
CodeStatusMeaning
INTERNAL_ERROR 500 An unexpected error on the server; the Doctor has the detail, under the reference shown.
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Stop the run of an automation that is going now; the automation stays on (the body must be empty).

Path

automationId
The automation.

Body

Answers The JSON envelope.

Errors3
CodeStatusMeaning
INTERNAL_ERROR 500 An unexpected error on the server; the Doctor has the detail, under the reference shown.
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

POST /automations/{automationId}/runs/{runId}/letta

Section titled “POST /automations/{automationId}/runs/{runId}/letta”

Mark a run of an automation as read: it leaves “To review” (the body must be empty).

Path

automationId
The automation.
runId
The workflow run.

Body

Answers The JSON envelope.

Errors3
CodeStatusMeaning
INTERNAL_ERROR 500 An unexpected error on the server; the Doctor has the detail, under the reference shown.
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

POST /automations/{automationId}/runs/{runId}/proposta

Section titled “POST /automations/{automationId}/runs/{runId}/proposta”

Approve or discard the new instructions a run proposed for its own automation: a run cannot change them without you.

Decided once (AUTOMATION_PROPOSAL_DECIDED after that). If the instructions changed since the proposal, it is refused (AUTOMATION_PROPOSAL_STALE): compare them again.

Path

automationId
The automation.
runId
The workflow run.

Body

decisionerequired
approva (approve) or scarta (discard).

Answers The JSON envelope.

Errors3
CodeStatusMeaning
INTERNAL_ERROR 500 An unexpected error on the server; the Doctor has the detail, under the reference shown.
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

The recent runs of one automation: when each started and ended, how it ended, and the report it wrote.

Path

automationId
The automation.

Query

runId
Not yet described.

Answers The JSON envelope.

Errors1
CodeStatusMeaning
NOT_FOUND 404 Nothing answers at this address, or the resource it names does not exist.

Any operation can also answer the common errors.

“To review”: the runs of every automation with something to say that you have not read yet.

Answers The JSON envelope.

Errors1
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Type to search the guides.

    Ask the docs

    Ask in plain words. A small model finds the passage of the guides that answers it, on this device: the question never leaves it.

    all-MiniLM-L6-v2 (Apache-2.0) and the ONNX runtime, served by talos-code.com and kept in your browser’s cache. It finds passages; it does not write answers.

    Loading the model