# Create Task

> Creates a human task in the Work Management system.

Source: https://docs.sommatic.ai/en/nodes/human.task.create/

- Slug: `human.task.create`
- Family: Human in the loop
- Version: 1.0.0
- Status: Available
- Execution: async

Creates a human task in the Work Management system.

## Configuration

- `organization_id` (string, required): Organization ID that owns this task
- `title` (string, required, accepts expressions): Short summary. Supports expressions like {{ $json.title }}.
- `description` (string, optional, accepts expressions): Detailed instructions for the assignee. Supports expressions and multi-line text.
- `type` (object, required): Approval | Data Completion | Review | Resolution | Delegation
- `priority` (object, required): Default: `{"id":2,"name":"medium","title":"Medium","color":"#1976d2"}`.
- `project_mode` (string, optional): Picker: select a project. Expression: derive the project id dynamically (e.g. by ingress mailbox). Default: `picker`. Allowed values: `picker`, `expression`.
- `project_id` (string, optional): Project this task belongs to (scopes visibility and grouping). Shown when: project_mode = `picker`.
- `project_id_expression` (string, optional, accepts expressions): Return a project id string. Example: {{ $json.project_id }}. Shown when: project_mode = `expression`.
- `assignee_mode` (string, optional): Specific User: pick from your organization. Custom: provide an identity or expression. Default: `specific_user`. Allowed values: `specific_user`, `custom`.
- `assignee` (string, optional): Single user the task will be assigned to Shown when: assignee_mode = `specific_user`.
- `assignee_custom` (string, optional, accepts expressions): Use {{ $json.user_id }} or a literal identity string. Shown when: assignee_mode = `custom`.
- `due_at_mode` (string, optional): Default: `picker`. Allowed values: `picker`, `expression`.
- `due_at` (string, optional): Stored as Unix milliseconds string. Shown when: due_at_mode = `picker`.
- `due_at_expression` (string, optional, accepts expressions): Return ISO 8601 or Unix millis. Example: {{ $now.plus({days: 3}).toISO() }} Shown when: due_at_mode = `expression`.
- `sla_ms` (integer, optional): Optional. Time allowed to complete the task once assigned. Default: `86400000`.
- `reminders` (boolean, optional): Default: `true`.
- `required_output` (object, optional): JSON Schema describing the data the assignee must provide on completion, plus UI hints for rendering the form.
- `outputs` (object, optional): Optional. Free-schema answer already produced by an upstream node (e.g. classifier or resolver) that the human merely verifies, edits, or rejects. Maps to Task.outputs. Distinct from "Payload" (which is the operator-facing context: summary + evidence + linked_entities).
- `payload` (object, optional): Summary, evidence blocks and linked entities passed to the assignee for context.
- `has_hag` (boolean, optional): Requires a downstream Human Approval Gate node. Default: `false`.

Its configuration shows the shared execution settings, but this node does not apply retries (`retryOnFail`, `maxTries`) yet. `continueOnFail` is not applied by any node.

## Output ports

- `created` (default): Task successfully created
- `error`: Error

## Input contract

- `organization_id` (string, optional)
- `title` (string, optional)
- `description` (string, optional)
- `type` (object, optional)
- `priority` (object, optional)
- `project_mode` (string, optional)
- `project_id` (string, optional)
- `project_id_expression` (string, optional)
- `assignee_mode` (string, optional)
- `assignee` (string, optional)
- `assignee_custom` (string, optional)
- `due_at_mode` (string, optional)
- `due_at` (string, optional)
- `due_at_expression` (string, optional)
- `sla_ms` (integer, optional)
- `reminders` (boolean, optional)
- `required_output` (object, optional)
- `outputs` (object, optional)
- `payload` (object, optional)
- `has_hag` (boolean, optional)

## Output contract

- `task_id` (string, optional)
- `task_title` (string, optional)
- `task_type` (object, optional)
- `has_hag` (boolean, optional)
- `status` (string, optional)

## In expressions

What a later node can read from this node's output with `$("Create Task").item.json.<path>` (write your node's label instead of `Create Task`). **Editor** marks the paths the workflow editor suggests under Previous Nodes (the output contract); **Worker** marks the paths the worker really returns through `created`, from the output shown in Ports.

- `$("Create Task").item.json.task_id` (string) = `"task-xxxxxxxxxxxxxxx"`
- `$("Create Task").item.json.task_title` (string) = `"Review refund for ord_123"`
- `$("Create Task").item.json.task_type` (object) = `{…}`
- `$("Create Task").item.json.has_hag` (boolean) = `true`
- `$("Create Task").item.json.status` (string) = `{…}`
- `$("Create Task").item.json.port` (string) = `"created"` (Not suggested by the editor)
- `$("Create Task").item.json.task_type.id` (number) = `10` (Not suggested by the editor)
- `$("Create Task").item.json.task_type.name` (string) = `"approval"` (Not suggested by the editor)
- `$("Create Task").item.json.task_type.title` (string) = `"Approval"` (Not suggested by the editor)
- `$("Create Task").item.json.task_type.color` (string) = `"#0288d1"` (Not suggested by the editor)
- `$("Create Task").item.json.status.id` (number) = `5` (Not suggested by the editor)
- `$("Create Task").item.json.status.name` (string) = `"claimed"` (Not suggested by the editor)
- `$("Create Task").item.json.status.title` (string) = `"Claimed"` (Not suggested by the editor)
- `$("Create Task").item.json.status.color` (string) = `"#5e35b1"` (Not suggested by the editor)


## How it works

Creates a Work Management task in the Sommatic AI backend and continues at once through `created`; the run does not wait for the person.

1. Resolves the config and merges it over the incoming payload: every field can come from the config or from the same key in the payload (config wins).
2. Checks `organization_id`, `title`, `type.name` and `priority.name`.
3. Picks the dual-mode values: the assignee from `assignee` (`assignee_mode` `specific_user`) or `assignee_custom` (`custom`); the project from `project_id` (`picker`) or `project_id_expression` (`expression`); the due date from `due_at` (`picker`) or `due_at_expression` (`expression`).
4. Builds `sla`: a due date (ISO 8601 or epoch milliseconds) becomes `{ due_at: "<epoch ms>", sla_ms: <due - now>, is_overdue }`; a configured `sla_ms` replaces the computed one; an unparsable due date is stored as given.
5. Builds the task with `status` `queued`, `source` `workflow`, the assignee as `{ assignee_type: "user", user: { identity, profile: { primary_email_address: identity } } }` (or `null`), `payload` `{ summary, evidence, linked_entities }`, `required_output`, `outputs` and `context.reminders`.
6. Posts it to the backend Work Management task API. With a user assignee the backend claims the task for that user (status `claimed`); without one it stays `queued`, scoped by `project_id`.
7. Returns `{ task_id, task_title, task_type, has_hag, status }` through `created`.

## In a workflow

### Node

```json
{
  "node_id": "node-review-refund",
  "label": "Review refund",
  "operator_slug": "human.task.create",
  "operator_version": "1.0.0",
  "config": {
    "organization_id": "<organization_id>",
    "title": "Review refund for {{ $json.order_id }}",
    "description": "Customer requested a refund of {{ $json.amount }}.",
    "type": {
      "id": 10,
      "name": "approval",
      "title": "Approval",
      "color": "#0288d1"
    },
    "priority": {
      "id": 3,
      "name": "high",
      "title": "High",
      "color": "#f57c00"
    },
    "assignee_mode": "specific_user",
    "assignee": "reviewer@example.com",
    "due_at_mode": "expression",
    "due_at_expression": "{{ $now.plus({ days: 2 }).toISO() }}",
    "reminders": true,
    "payload": {
      "summary": "Refund request for {{ $json.order_id }}",
      "evidence": [],
      "linked_entities": []
    },
    "has_hag": true
  }
}
```

### Envelope

```json
{
  "ok": true,
  "port": "created",
  "task_id": "task-xxxxxxxxxxxxxxx",
  "task_title": "Review refund for ord_123",
  "task_type": {
    "id": 10,
    "name": "approval",
    "title": "Approval",
    "color": "#0288d1"
  },
  "has_hag": true,
  "status": {
    "id": 5,
    "name": "claimed",
    "title": "Claimed",
    "color": "#5e35b1"
  }
}
```

## Output ports (behaviour in the code)

### `created`

The backend returned a task id. `status` is the status object the backend returned.

```json
{
  "port": "created",
  "task_id": "task-xxxxxxxxxxxxxxx",
  "task_title": "Review refund for ord_123",
  "task_type": {
    "id": 10,
    "name": "approval",
    "title": "Approval",
    "color": "#0288d1"
  },
  "has_hag": true,
  "status": {
    "id": 5,
    "name": "claimed",
    "title": "Claimed",
    "color": "#5e35b1"
  }
}
```

### `error`

A required field is missing or the backend call failed.

```json
{
  "port": "error",
  "error": "Missing 'title'"
}
```

## Behaviour in the code

- `type`: An object `{ id, name, title, color }` from the backend catalog: `approval` (10), `data_completion` (11), `review` (12), `resolution` (13), `delegation` (14). The worker only checks that `name` exists.
- `priority`: An object from the catalog `low` (1), `medium` (2), `high` (3), `critical` (4).
- `assignee`: A user identity; it is also stored as the user primary email, so use the email identity. Only user assignees are produced: group assignees are not supported by this node.
- `payload`: Only `summary`, `evidence` (array) and `linked_entities` (array) are kept. When `payload` is not configured, those keys are read from the incoming payload. Legacy aliases `task_payload`, `task_required_output` and `task_outputs` are also read.
- `has_hag`: Only echoed in the output. The editor requires a `human.approval.gate` right after the node when it is true.

## Errors

| Message | Port | Cause and fix |
| --- | --- | --- |
| `Missing 'organization_id'` | `error` | Not in the config nor in the payload. It is not taken from the run identity. |
| `Missing 'title'` | `error` | `title` is empty after resolving expressions. |
| `Missing 'type' or invalid type object` | `error` | `type` is missing or has no `name`. |
| `Missing 'priority' or invalid priority object` | `error` | `priority` is missing or has no `name`. |
| `Backend did not return a task id` | `error` | The backend answered without `result.id`. |
| `Request failed with status code <status>` | `error` | The backend rejected the task. |
| `services.apiManager.uri is not resolved in dependencies.config — check Link Loom Cloud environment config.` | `error` | The orchestrator has no backend address configured. This is a service configuration problem, not a node problem. |

## Notes and limits

- Task statuses: `queued`, `assigned`, `claimed`, `in_progress`, `completed`, `rejected`, `invalidated`, `expired`. This node creates tasks as `queued` (`claimed` with a user assignee); later transitions happen in the Tasks inbox.
- No pause or resume: completing the task later does not notify or resume this run.
- The task `context.workflow_instance_id` and `context.trace_id` are sent empty: the worker reads them from fields the runtime does not set, so the task is not linked to the run.
- Not idempotent: every execution creates a new task. There are no retries on the HTTP call.
- The worker returns its fields at the top level of the envelope, without `data`, so the engine uses the whole envelope (including the `port` key) as the payload of the next node.
- The worker does not set `ok` (the example shows `true`); the engine routes only by `port`.


## Contracts (JSON Schema)

### All (`*.definition.js`)

```json
{
  "slug": "human.task.create",
  "name": "Create Task",
  "category": "hitl",
  "version": "1.0.0",
  "description": "Creates a human task in the Work Management system.",
  "capabilities": [
    "task",
    "human",
    "workflow"
  ],
  "config_schema": {
    "type": "object",
    "required": [
      "title",
      "organization_id",
      "type",
      "priority"
    ],
    "properties": {
      "organization_id": {
        "type": "string",
        "title": "Organization",
        "description": "Organization ID that owns this task",
        "default_from": "auth.organization_id"
      },
      "title": {
        "type": "string",
        "title": "Task Title",
        "format": "expression",
        "description": "Short summary. Supports expressions like {{ $json.title }}."
      },
      "description": {
        "type": "string",
        "title": "Description",
        "format": "expression",
        "description": "Detailed instructions for the assignee. Supports expressions and multi-line text."
      },
      "type": {
        "type": "object",
        "title": "Task Type",
        "ui_widget": "task_type_picker",
        "description": "Approval | Data Completion | Review | Resolution | Delegation"
      },
      "priority": {
        "type": "object",
        "title": "Priority",
        "ui_widget": "task_priority_picker",
        "default": {
          "id": 2,
          "name": "medium",
          "title": "Medium",
          "color": "#1976d2"
        }
      },
      "project_mode": {
        "type": "string",
        "title": "Project mode",
        "enum": [
          "picker",
          "expression"
        ],
        "default": "picker",
        "description": "Picker: select a project. Expression: derive the project id dynamically (e.g. by ingress mailbox)."
      },
      "project_id": {
        "type": "string",
        "title": "Project",
        "ui_widget": "project_picker",
        "description": "Project this task belongs to (scopes visibility and grouping).",
        "displayOptions": {
          "show": {
            "project_mode": [
              "picker"
            ]
          }
        }
      },
      "project_id_expression": {
        "type": "string",
        "title": "Project id expression",
        "format": "expression",
        "description": "Return a project id string. Example: {{ $json.project_id }}.",
        "displayOptions": {
          "show": {
            "project_mode": [
              "expression"
            ]
          }
        }
      },
      "assignee_mode": {
        "type": "string",
        "title": "Assignee mode",
        "enum": [
          "specific_user",
          "custom"
        ],
        "default": "specific_user",
        "description": "Specific User: pick from your organization. Custom: provide an identity or expression."
      },
      "assignee": {
        "type": "string",
        "title": "User",
        "ui_widget": "user_picker",
        "ui_options": {
          "allow_assign_to_me": true
        },
        "description": "Single user the task will be assigned to",
        "displayOptions": {
          "show": {
            "assignee_mode": [
              "specific_user"
            ]
          }
        }
      },
      "assignee_custom": {
        "type": "string",
        "title": "Custom assignee (identity or expression)",
        "format": "expression",
        "description": "Use {{ $json.user_id }} or a literal identity string.",
        "displayOptions": {
          "show": {
            "assignee_mode": [
              "custom"
            ]
          }
        }
      },
      "due_at_mode": {
        "type": "string",
        "title": "Due date source",
        "enum": [
          "picker",
          "expression"
        ],
        "default": "picker"
      },
      "due_at": {
        "type": "string",
        "title": "Due Date",
        "format": "date-time",
        "description": "Stored as Unix milliseconds string.",
        "displayOptions": {
          "show": {
            "due_at_mode": [
              "picker"
            ]
          }
        }
      },
      "due_at_expression": {
        "type": "string",
        "title": "Due date expression",
        "format": "expression",
        "description": "Return ISO 8601 or Unix millis. Example: {{ $now.plus({days: 3}).toISO() }}",
        "displayOptions": {
          "show": {
            "due_at_mode": [
              "expression"
            ]
          }
        }
      },
      "sla_ms": {
        "type": "integer",
        "title": "SLA duration (ms)",
        "description": "Optional. Time allowed to complete the task once assigned.",
        "default": 86400000
      },
      "reminders": {
        "type": "boolean",
        "title": "Enable Reminders",
        "default": true
      },
      "required_output": {
        "type": "object",
        "title": "Required Output",
        "description": "JSON Schema describing the data the assignee must provide on completion, plus UI hints for rendering the form."
      },
      "outputs": {
        "type": "object",
        "title": "Pre-computed Outputs",
        "description": "Optional. Free-schema answer already produced by an upstream node (e.g. classifier or resolver) that the human merely verifies, edits, or rejects. Maps to Task.outputs. Distinct from \"Payload\" (which is the operator-facing context: summary + evidence + linked_entities)."
      },
      "payload": {
        "type": "object",
        "title": "Payload",
        "description": "Summary, evidence blocks and linked entities passed to the assignee for context."
      },
      "has_hag": {
        "type": "boolean",
        "title": "Has Human Approval",
        "description": "Requires a downstream Human Approval Gate node.",
        "default": false
      },
      "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": {
      "organization_id": {
        "type": "string"
      },
      "title": {
        "type": "string"
      },
      "description": {
        "type": "string"
      },
      "type": {
        "type": "object"
      },
      "priority": {
        "type": "object"
      },
      "project_mode": {
        "type": "string"
      },
      "project_id": {
        "type": "string"
      },
      "project_id_expression": {
        "type": "string"
      },
      "assignee_mode": {
        "type": "string"
      },
      "assignee": {
        "type": "string"
      },
      "assignee_custom": {
        "type": "string"
      },
      "due_at_mode": {
        "type": "string"
      },
      "due_at": {
        "type": "string"
      },
      "due_at_expression": {
        "type": "string"
      },
      "sla_ms": {
        "type": "integer"
      },
      "reminders": {
        "type": "boolean"
      },
      "required_output": {
        "type": "object"
      },
      "outputs": {
        "type": "object"
      },
      "payload": {
        "type": "object"
      },
      "has_hag": {
        "type": "boolean"
      }
    }
  },
  "output_contract_schema": {
    "type": "object",
    "properties": {
      "task_id": {
        "type": "string"
      },
      "task_title": {
        "type": "string"
      },
      "task_type": {
        "type": "object"
      },
      "has_hag": {
        "type": "boolean"
      },
      "status": {
        "type": "string"
      }
    }
  },
  "ports": [
    {
      "port_id": "created",
      "label": "Created",
      "is_default": true,
      "description": "Task successfully created"
    },
    {
      "port_id": "error",
      "label": "Error"
    }
  ],
  "chain_constraints": {
    "next": [
      {
        "when": {
          "has_hag": true
        },
        "required_slug": "human.approval.gate",
        "message": "When \"Has Human Approval\" is checked, this node must be followed by a Human Approval Gate node."
      }
    ]
  },
  "execution_mode": "async",
  "tags": [
    "human",
    "task",
    "management"
  ],
  "is_stateful": true,
  "publisher": {
    "identity": "org_sommatic_ai",
    "profile": {
      "name": "Sommatic AI",
      "verified": true,
      "url": "https://me.veripass.com/sommatic",
      "logo_url": null
    }
  }
}
```

### config_schema

```json
{
  "type": "object",
  "required": [
    "title",
    "organization_id",
    "type",
    "priority"
  ],
  "properties": {
    "organization_id": {
      "type": "string",
      "title": "Organization",
      "description": "Organization ID that owns this task",
      "default_from": "auth.organization_id"
    },
    "title": {
      "type": "string",
      "title": "Task Title",
      "format": "expression",
      "description": "Short summary. Supports expressions like {{ $json.title }}."
    },
    "description": {
      "type": "string",
      "title": "Description",
      "format": "expression",
      "description": "Detailed instructions for the assignee. Supports expressions and multi-line text."
    },
    "type": {
      "type": "object",
      "title": "Task Type",
      "ui_widget": "task_type_picker",
      "description": "Approval | Data Completion | Review | Resolution | Delegation"
    },
    "priority": {
      "type": "object",
      "title": "Priority",
      "ui_widget": "task_priority_picker",
      "default": {
        "id": 2,
        "name": "medium",
        "title": "Medium",
        "color": "#1976d2"
      }
    },
    "project_mode": {
      "type": "string",
      "title": "Project mode",
      "enum": [
        "picker",
        "expression"
      ],
      "default": "picker",
      "description": "Picker: select a project. Expression: derive the project id dynamically (e.g. by ingress mailbox)."
    },
    "project_id": {
      "type": "string",
      "title": "Project",
      "ui_widget": "project_picker",
      "description": "Project this task belongs to (scopes visibility and grouping).",
      "displayOptions": {
        "show": {
          "project_mode": [
            "picker"
          ]
        }
      }
    },
    "project_id_expression": {
      "type": "string",
      "title": "Project id expression",
      "format": "expression",
      "description": "Return a project id string. Example: {{ $json.project_id }}.",
      "displayOptions": {
        "show": {
          "project_mode": [
            "expression"
          ]
        }
      }
    },
    "assignee_mode": {
      "type": "string",
      "title": "Assignee mode",
      "enum": [
        "specific_user",
        "custom"
      ],
      "default": "specific_user",
      "description": "Specific User: pick from your organization. Custom: provide an identity or expression."
    },
    "assignee": {
      "type": "string",
      "title": "User",
      "ui_widget": "user_picker",
      "ui_options": {
        "allow_assign_to_me": true
      },
      "description": "Single user the task will be assigned to",
      "displayOptions": {
        "show": {
          "assignee_mode": [
            "specific_user"
          ]
        }
      }
    },
    "assignee_custom": {
      "type": "string",
      "title": "Custom assignee (identity or expression)",
      "format": "expression",
      "description": "Use {{ $json.user_id }} or a literal identity string.",
      "displayOptions": {
        "show": {
          "assignee_mode": [
            "custom"
          ]
        }
      }
    },
    "due_at_mode": {
      "type": "string",
      "title": "Due date source",
      "enum": [
        "picker",
        "expression"
      ],
      "default": "picker"
    },
    "due_at": {
      "type": "string",
      "title": "Due Date",
      "format": "date-time",
      "description": "Stored as Unix milliseconds string.",
      "displayOptions": {
        "show": {
          "due_at_mode": [
            "picker"
          ]
        }
      }
    },
    "due_at_expression": {
      "type": "string",
      "title": "Due date expression",
      "format": "expression",
      "description": "Return ISO 8601 or Unix millis. Example: {{ $now.plus({days: 3}).toISO() }}",
      "displayOptions": {
        "show": {
          "due_at_mode": [
            "expression"
          ]
        }
      }
    },
    "sla_ms": {
      "type": "integer",
      "title": "SLA duration (ms)",
      "description": "Optional. Time allowed to complete the task once assigned.",
      "default": 86400000
    },
    "reminders": {
      "type": "boolean",
      "title": "Enable Reminders",
      "default": true
    },
    "required_output": {
      "type": "object",
      "title": "Required Output",
      "description": "JSON Schema describing the data the assignee must provide on completion, plus UI hints for rendering the form."
    },
    "outputs": {
      "type": "object",
      "title": "Pre-computed Outputs",
      "description": "Optional. Free-schema answer already produced by an upstream node (e.g. classifier or resolver) that the human merely verifies, edits, or rejects. Maps to Task.outputs. Distinct from \"Payload\" (which is the operator-facing context: summary + evidence + linked_entities)."
    },
    "payload": {
      "type": "object",
      "title": "Payload",
      "description": "Summary, evidence blocks and linked entities passed to the assignee for context."
    },
    "has_hag": {
      "type": "boolean",
      "title": "Has Human Approval",
      "description": "Requires a downstream Human Approval Gate node.",
      "default": false
    },
    "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

```json
{
  "type": "object",
  "properties": {
    "organization_id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "type": {
      "type": "object"
    },
    "priority": {
      "type": "object"
    },
    "project_mode": {
      "type": "string"
    },
    "project_id": {
      "type": "string"
    },
    "project_id_expression": {
      "type": "string"
    },
    "assignee_mode": {
      "type": "string"
    },
    "assignee": {
      "type": "string"
    },
    "assignee_custom": {
      "type": "string"
    },
    "due_at_mode": {
      "type": "string"
    },
    "due_at": {
      "type": "string"
    },
    "due_at_expression": {
      "type": "string"
    },
    "sla_ms": {
      "type": "integer"
    },
    "reminders": {
      "type": "boolean"
    },
    "required_output": {
      "type": "object"
    },
    "outputs": {
      "type": "object"
    },
    "payload": {
      "type": "object"
    },
    "has_hag": {
      "type": "boolean"
    }
  }
}
```

### output_contract_schema

```json
{
  "type": "object",
  "properties": {
    "task_id": {
      "type": "string"
    },
    "task_title": {
      "type": "string"
    },
    "task_type": {
      "type": "object"
    },
    "has_hag": {
      "type": "boolean"
    },
    "status": {
      "type": "string"
    }
  }
}
```

### ports

```json
[
  {
    "port_id": "created",
    "label": "Created",
    "is_default": true,
    "description": "Task successfully created"
  },
  {
    "port_id": "error",
    "label": "Error"
  }
]
```
