A discrete, self-contained unit of work assigned to an autonomous agent, with an input, an expected output, and a completion state.
An agent task is a unit of work assigned to an AI agent: a discrete, completable jobJobUserJob To Be Done: what the user is trying to accomplishView reference → with an owner that happens to be software rather than a person. It is the autonomous counterpart to the human taskTaskProduct SpecificationA unit of work within a story or epicView reference →, and the line between them matters because the two carry different expectations about review, latency, and accountability. Coding agents and agent frameworks of the 2023 to 2025 wave normalised handing a bounded job ("fix this failing test", "draft this migration") to an agent and getting a result back.
A workflow templateWorkflow TemplateWorkflows & AgentsA reusable workflow templateView reference → for onboarding a new integration defines five tasks. Three are human (sign the contract, approve the design, confirm go-live). Two are agent tasks: generate the API client from the OpenAPI spec and write the smoke tests. When the workflow runsWorkflow RunWorkflows & AgentsAn execution of a workflowView reference →, the agent definitionAgent DefinitionWorkflows & AgentsAn autonomous agent definitionView reference → spawns the two agent tasks; each runs to completion and posts its output for a human to review at the next gate. The agent task carries the same fields as any task, a description, a status, an owner, so a mixed human-and-agent workflow stays one coherent plan rather than two parallel ones.
In the Unified Product Graph, an agent task sits in the automation region alongside the other agent primitives and the ordinary TaskProduct SpecificationA unit of work within a story or epicView reference →. Two edges place it: taskWorkflow TemplatedefinesAgent Taskhierarchy slots it into a repeatable plan, and workflow_template_defines_agent_taskAgent DefinitionspawnsAgent Taskhierarchy records which agent was handed the work. Because the agent task is a first-class entity rather than a flag on a generic task, a workflow that mixes human and autonomous steps stays queryable end to end, and you can ask which work an agent is accountable for without untangling it from the work people own.agent_definition_spawns_agent_task
Type-specific fields on BaseNode
descriptionstringWhat the agent should accomplish
expected_outputstringDescription of the expected output format or content
contextstringAdditional context provided to the agent for this task
toolsstring[]Tools the agent may use for this task
output_filestringFile path where the agent should write output
blockingbooleanWhether this task blocks downstream tasks
prioritystringRelative priority of this task
idstringrequiredUnique identifier (UUID)
typeNodeTyperequiredDiscriminator for the entity type
titlestringrequiredDisplay name
descriptionstringOptional detailed description
statusstringLifecycle status
tagsstring[]Freeform tags for filtering
4 phases — initial: todo · template: WORK_ITEM
2 edge types connected to this entity.
workflow_template_defines_agent_taskagent_definition_spawns_agent_task