On this page
Sommatic Docs
Open portal

Human in the loop

A task is a contract between Sommatic AI and a person. The system provides context and evidence; the person provides a structured output that the task validates before it can be completed.

View as Markdown
Open in

Sommatic AI does not try to automate everything. It automates what is safe and brings a person in when a case carries risk or ambiguity. That intervention is a task: not a ticket, not a message and not a notification, but a formal obligation with an assignee, a deadline, the evidence the person needs and the exact output the person must return.

What a task holds

FieldWhat it is
title, detailsThe goal, and actionable instructions for the person.
typeapproval, data_completion, review, resolution or delegation.
prioritylow, medium, high or critical. Orders the inbox.
assigneeA user or a group: assignee_type (user or group) and the matching user or group reference.
ownershipWho claimed it and when: is_claimed, claimed_by, claimed_at.
sladue_at (Unix milliseconds, as a string), sla_ms and is_overdue, recomputed every time the task is read.
payloadThe evidence: summary, evidence blocks and linked_entities (soft references to other records).
required_outputA JSON-schema-like schema of what the person must provide, plus an optional ui_hint.
outputsWhat the person provided. It can be prefilled by an upstream node for the person to verify.
executionAn optional app that collects the output instead of the default form.
organization_id, project_idScope of the task.

Two more types exist for system use: diagnostic (a failure that may be a bug) and telemetry (a signal for reporting). They make those tasks easy to filter.

The required output is the contract

JSON
{
  "required_output": {
    "schema": {
      "type": "object",
      "required": ["decision", "reason"],
      "properties": {
        "decision": { "type": "string", "enum": ["approved", "rejected"] },
        "reason": { "type": "string" },
        "notes": { "type": "string" }
      }
    },
    "ui_hint": { "layout": "approval", "require_reason": true }
  }
}

The portal renders a form from this schema. A task cannot be completed while a field listed in required is missing or empty.

A quality inspector at a fruit warehouse loading dock reviews a case on her phone
Opened by The human.task.create node
Assigned to A user or a group
Lifecycle queued → claimed → in_progress → completed

Create tasks from a workflow

The human.task.create node opens a task in the middle of a run. Its configuration takes title and description (both accept expressions), type, priority, the project, the assignee (a user picked in the studio or an identity from an expression), the due date (a date or an expression such as {{ $now.plus({ days: 3 }).toISO() }}), sla_ms, required_output, prefilled outputs and the payload.

PortWhen
createdThe task exists. The output carries task_id, task_title, task_type and status.
errorA required field is missing or the task could not be created.

A task created with a user assignee starts claimed by that user. Without an assignee it starts queued and is scoped by its project.

Work the task

In the portal, Tasks shows the inbox of the signed-in person. Opening a task shows its details, its evidence and the output form (or an Open App button when the task is bound to an app). The person claims it, works it and completes or rejects it; every step is a transition.

Through the API, tasks live under /work-management/task/ (see the API reference).

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs