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
Instructions that run on their own, on a schedule, each run in a new session. Paths are relative to /api/v1.
GET /automations
Section titled “GET /automations”List the automations: tasks that run on a schedule.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
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
Section titled “POST /automations”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. coordinazionetruelets each run start agents on its own (Coordination); defaultfalse.ripeti- Stop after this many runs; absent or
nullto 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 requestorFull access.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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.
POST /automations/{automationId}/toggle
Section titled “POST /automations/{automationId}/toggle”Turn an automation on or off.
Path
automationId- The automation.
Body
attivarequiredtrueorfalse.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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
coordinazionerequiredtrueorfalse.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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}/elimina
Section titled “POST /automations/{automationId}/elimina”Delete an automation.
Path
automationId- The automation.
Body
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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}/modifica
Section titled “POST /automations/{automationId}/modifica”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, ornullfor the default. permessiRead only,Workspace write,On requestorFull access.coordinazionetrueorfalse.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
nullfor no limit.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
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}/esegui
Section titled “POST /automations/{automationId}/esegui”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
| Code | Status | Meaning |
|---|---|---|
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}/ferma
Section titled “POST /automations/{automationId}/ferma”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
| Code | Status | Meaning |
|---|---|---|
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
| Code | Status | Meaning |
|---|---|---|
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
decisionerequiredapprova(approve) orscarta(discard).
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
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.
GET /automations/{automationId}/runs
Section titled “GET /automations/{automationId}/runs”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
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
Any operation can also answer the common errors.
GET /automations/inbox
Section titled “GET /automations/inbox”“To review”: the runs of every automation with something to say that you have not read yet.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
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.