Execute Sommatic App
Requests a user to interact with a specific Sommatic AI App UI.
Partial. Asks the backend to create an app interaction and returns a suspend signal that the engine does not process: the run neither waits for the app nor follows completed or timeout.
How it works
- Resolves the config and merges it over the incoming payload (config wins).
- Throws when
app_identifieris missing: the run fails, unless aflow.tryscope catches it. - Posts
{ type: "app_execution", app_identifier, configuration, assignee, expires_in_ms: timeout_ms }to the backend HITL interactions endpoint; an HTTP failure is rethrown. - Returns
{ __signal: "SUSPEND", __metadata: { type: "sommatic_app_interaction", id, resume_on: ["completed", "timeout"] } }. - The envelope has no port, so the engine routes it to
out, which this node does not declare: edges fromcompletedortimeoutare never followed, the branch ends and the run completes without waiting.
In a workflow
The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.
{
"node_id": "node-open-intake",
"label": "Open intake app",
"operator_slug": "sommatic.app.execute",
"operator_version": "1.0.0",
"config": {
"app_identifier": "sommatic-structured-intake",
"assignee": "[email protected]",
"timeout_ms": 3600000,
"configuration": {
"case_id": "{{ $json.case_id }}"
}
}
}{
"ok": true,
"port": "out",
"__signal": "SUSPEND",
"__metadata": {
"type": "sommatic_app_interaction",
"id": "<interaction_id>",
"resume_on": [
"completed",
"timeout"
]
}
}Configuration
-
app_identifierstring Required -
Slug or ID of the frontend app/micro-frontend
-
assigneestring Optional -
timeout_msinteger Optional -
configurationobject Optional -
Props or context passed to the UI app
Its configuration shows the shared execution settings, but this node does not apply retries (retryOnFail, maxTries) yet. continueOnFail is not applied by any node.
Behaviour in the code
What the implementation does with these keys beyond what the schema says.
-
timeout_ms - Only sent to the backend as
expires_in_ms; the orchestrator does not enforce it.
Output ports
completed default Never emitted.
timeout Never emitted.
error Never emitted: failures are thrown and fail the run.
In expressions
What a later node can read from this node's output with $("Execute Sommatic App").item.json.<path>, as the workflow editor suggests it under Previous Nodes (the output contract).
| Expression |
|---|
$("Execute Sommatic App").item.json.result |
$("Execute Sommatic App").item.json.status |
Errors
| Message | Port | Cause and fix |
|---|---|---|
Missing 'app_identifier' | error | Thrown. The run fails with Node <node_id> (sommatic.app.execute) failed: Missing 'app_identifier', or goes to the catch node of an enclosing flow.try. |
Request failed with status code <status> | error | Thrown when the backend rejects the interaction request; same effect as above. |
Input contract
-
app_identifierstring Optional -
assigneestring Optional -
timeout_msinteger Optional -
configurationobject Optional
Output contract
-
resultobject Optional -
statusstring Optional
Contracts (JSON Schema)
The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.
{
"slug": "sommatic.app.execute",
"name": "Execute Sommatic App",
"category": "hitl",
"version": "1.0.0",
"description": "Requests a user to interact with a specific Sommatic AI App UI.",
"capabilities": [
"ui",
"interactive",
"human"
],
"config_schema": {
"type": "object",
"required": [
"app_identifier"
],
"properties": {
"app_identifier": {
"type": "string",
"title": "App Identifier",
"description": "Slug or ID of the frontend app/micro-frontend"
},
"assignee": {
"type": "string",
"title": "Assignee",
"ui_widget": "user_picker"
},
"timeout_ms": {
"type": "integer",
"default": 3600000
},
"configuration": {
"type": "object",
"title": "App Configuration",
"description": "Props or context passed to the UI app"
},
"execution": {
"type": "object",
"title": "Execution Settings",
"properties": {
"alwaysOutputData": {
"type": "boolean",
"title": "Always Output Data",
"description": "Always output data, even on error (if configured).",
"default": false
},
"retryOnFail": {
"type": "boolean",
"title": "Retry On Fail",
"description": "Retry the execution if it fails.",
"default": false
},
"maxTries": {
"type": "integer",
"title": "Max Retries",
"description": "Number of retries.",
"default": 3,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"waitBetweenTries": {
"type": "integer",
"title": "Wait Between Retries (ms)",
"default": 1000,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"continueOnFail": {
"type": "boolean",
"title": "Continue On Fail",
"description": "Do not crash workflow on error.",
"default": false
},
"timeout_ms": {
"type": "integer",
"title": "Timeout (ms)",
"description": "Max execution time for this node before it is killed, in milliseconds. Honored by long-running operators (e.g. OCR/extraction, inline code). Default 300000 (5 min).",
"default": 300000
}
}
}
}
},
"input_contract_schema": {
"type": "object",
"properties": {
"app_identifier": {
"type": "string"
},
"assignee": {
"type": "string"
},
"timeout_ms": {
"type": "integer"
},
"configuration": {
"type": "object"
}
}
},
"output_contract_schema": {
"type": "object",
"properties": {
"result": {
"type": "object"
},
"status": {
"type": "string"
}
}
},
"ports": [
{
"port_id": "completed",
"label": "Completed",
"is_default": true,
"description": "Interaction completed"
},
{
"port_id": "timeout",
"label": "Timeout",
"description": "Interaction expired"
},
{
"port_id": "error",
"label": "Error"
}
],
"execution_mode": "async",
"tags": [
"ui",
"interactive"
],
"is_stateful": true,
"publisher": {
"identity": "org_sommatic_ai",
"profile": {
"name": "Sommatic AI",
"verified": true,
"url": "https://me.veripass.com/sommatic",
"logo_url": null
}
}
}{
"type": "object",
"required": [
"app_identifier"
],
"properties": {
"app_identifier": {
"type": "string",
"title": "App Identifier",
"description": "Slug or ID of the frontend app/micro-frontend"
},
"assignee": {
"type": "string",
"title": "Assignee",
"ui_widget": "user_picker"
},
"timeout_ms": {
"type": "integer",
"default": 3600000
},
"configuration": {
"type": "object",
"title": "App Configuration",
"description": "Props or context passed to the UI app"
},
"execution": {
"type": "object",
"title": "Execution Settings",
"properties": {
"alwaysOutputData": {
"type": "boolean",
"title": "Always Output Data",
"description": "Always output data, even on error (if configured).",
"default": false
},
"retryOnFail": {
"type": "boolean",
"title": "Retry On Fail",
"description": "Retry the execution if it fails.",
"default": false
},
"maxTries": {
"type": "integer",
"title": "Max Retries",
"description": "Number of retries.",
"default": 3,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"waitBetweenTries": {
"type": "integer",
"title": "Wait Between Retries (ms)",
"default": 1000,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"continueOnFail": {
"type": "boolean",
"title": "Continue On Fail",
"description": "Do not crash workflow on error.",
"default": false
},
"timeout_ms": {
"type": "integer",
"title": "Timeout (ms)",
"description": "Max execution time for this node before it is killed, in milliseconds. Honored by long-running operators (e.g. OCR/extraction, inline code). Default 300000 (5 min).",
"default": 300000
}
}
}
}
}{
"type": "object",
"properties": {
"app_identifier": {
"type": "string"
},
"assignee": {
"type": "string"
},
"timeout_ms": {
"type": "integer"
},
"configuration": {
"type": "object"
}
}
}{
"type": "object",
"properties": {
"result": {
"type": "object"
},
"status": {
"type": "string"
}
}
}[
{
"port_id": "completed",
"label": "Completed",
"is_default": true,
"description": "Interaction completed"
},
{
"port_id": "timeout",
"label": "Timeout",
"description": "Interaction expired"
},
{
"port_id": "error",
"label": "Error"
}
]Execution
- Execution
async- Stateful
- Yes
- Retries (
retryOnFail) - No
- Capabilities
uiinteractivehuman- Tags
uiinteractive
Notes and limits
- At review time the Sommatic AI backend exposed no handler for this interaction request, so the call is expected to fail and the run with it. The orchestrator resume operation only accepts
stoneos.industry.apply. - For a human step today, use
human.task.create(task that does not block the run) orsommatic.app.handoff(terminal handoff to an app). - The example envelope shows
okandportas the engine interprets them; the worker returns only__signaland__metadata.
Reviewed against the orchestrator code · 31e874b · 2026-11-26