On this page
Sommatic Docs
Open portal

Apps in workflows

How apps and workflows meet today. A task can carry an app that collects its output, and the sommatic.app.handoff node ends a run by handing its result to an app through a task.

View as Markdown
Open in

A workflow prepares the case; an app is where a person finishes it. Today they meet through tasks: the task is the durable link between a run and a person, and the app is the screen the person uses to resolve it.

A task that opens an app

A task can name the app that collects its output in execution:

FieldWhat it is
app_slugThe app to open. Without it, the task shows the form generated from required_output.
launch_modeThe mode the app opens in.
input_payloadExtra data for the app.
app_session_idFilled at runtime when the app session opens.
JSON
{
  "title": "Review the extracted invoice",
  "type": { "id": 12, "name": "review", "title": "Review" },
  "priority": { "id": 3, "name": "high", "title": "High" },
  "required_output": {
    "schema": { "type": "object", "required": ["decision"], "properties": { "decision": { "type": "string" } } }
  },
  "execution": {
    "app_slug": "<app-slug>",
    "launch_mode": "task",
    "input_payload": { "invoice_id": "<invoice-id>" }
  }
}

Create it with POST /work-management/task/. In the portal, the task shows Open App. The app opens with an input that carries task_id, the task itself, the fields of the task payload and the input_payload. When the app calls sdk.submitOutput(), the output becomes the task’s outputs: a decision of rejected rejects the task, any other output completes it, after the output validation.

The human.task.create node does not set execution today. Create app-bound tasks through the API.

Hand a run’s result to an app

sommatic.app.handoff is a terminal node: the run ends and delivers its result to an app.

JSON
{
  "target": {
    "app_slug": "<app-slug>",
    "route": "/review",
    "launch_mode": "command-center"
  },
  "input_mapping": {
    "case_id": "{{ $json.case_id }}",
    "summary": "{{ $('Summarize').item.json.summary }}"
  },
  "organization_id": "<organization-id>",
  "assignee": "<user-identity>",
  "task_title": "Review the prepared case"
}
FieldRequiredDefault
target.app_slugYes
target.routeNo/
target.launch_modeNocommand-center
input_mappingNo{}. Expressions are resolved on the server.
organization_id, assignee, task_titleYes
task_type, task_priorityNoReview, medium.

What it does:

  1. It resolves the open descriptor on the server: { app_slug, route_path, input_payload, launch_mode }.
  2. It creates a task assigned to assignee, which carries the descriptor. The task is durable: it waits in the person’s inbox even if they are offline when the run ends.
  3. It leaves through out with app_handoff_descriptor, task_id and task_title, and the run’s result keeps the descriptor. When the run was started from the Command Center, the app opens there as soon as the run ends.

The run does not resume after the handoff. Whatever the person does in the app happens outside that run.

What is not available yet

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