Skip to content

AiTask

Type: Object

Represents a single, executable step within an AI-driven workflow. When an AI 'Execution' (a running process) begins, it generates a series of these tasks from a predefined template. Each task is a concrete action to be performed, such as 'Analyze customer artwork for preflight errors,' 'Calculate ink consumption for job #12345,' or 'Dispatch shipping notification.' This resource tracks the lifecycle of that action—from pending to in-progress, completed, or failed. It's the fundamental unit of work in the AI system, providing granular visibility and control over the automated processes that drive the print facility.

Fields

NameTypeArgsDescriptionDeprecated
agentAiAgent!
agentIdID!
completedAtDateTimeWhen the task completed (successfully or with failure)
contextStringAdditional context for the task
createdAtDateTime!When the task was created
dependencies[AiTask!]!filter: AiTaskFilterInput
limit: Int
offset: Int
sort: [AiTaskSortInput]
descriptionString!Interpolated description with actual values from the execution input
errorMessageStringError message if the task failed
executionAiExecution!
executionIdID!
expectedOutputStringDescription of what output is expected from this task
idID!
metadataJsonStringAdditional metadata for the task
outputJsonSchemaJsonStringJSON Schema for structured output. When provided, the LLM will use JSON mode with this schema to ensure valid JSON output
priorityIntTask priority (higher numbers = higher priority)
resultStringThe output produced by the agent
startedAtDateTimeWhen the task started execution
stateString!The current state of the task: pending, assigned, in_progress, completed, failed, or cancelled
taskTemplateAiTaskTemplateThe template this task was created from
taskTemplateIdID
updatedAtDateTime!When the task was last updated

Relationships

Connect. Combine. Collaborate.
The pioneering open integration platform, dedicated to transforming connectivity in the printing industry.