Skip to main content

Add tasks from an automation

Create a task in a project with the task.create step — its title, assignee, status, due date and labels — once each time the step runs, list a project's tasks with task.list, and know what is refused.

5 min read

Use a task.create step when an automation should hand work to a person or an agent: a reply an email asks for, a form to follow up, a check that failed. It creates the task in a project the automation is installed in, and the task names the automation as its creator. A live run creates it; a test run answers with a mock.

Create a task

yaml
nodes:
  - id: ticket
    type: task.create
    input:
      projectId: '{{ input.projectId }}'
      title: 'Reply to {{ input.from }}'
      description: '{{ input.body }}'
      assignee: ada@example.com
      status: todo
      dueDate: '2026-10-17'
      labels: [support]
InputWhat it holds
projectIdThe project the task goes to. The automation must be installed in it, and a run started in a project creates tasks only there.
titleThe task's title. One over 200 characters is cut, ending in "…".
descriptionThe task's description, in Markdown.
assigneeA member's email or user id, or an agent of the project by its name or handle.
statusbacklog, the default, todo or in_progress. An agent's task created at in_progress starts its run.
dueDateA date such as 2026-10-17, or an ISO date and time. A date alone falls on that day in nearly every time zone.
labelsLabel names. The project's catalog gains those it doesn't have yet when the person who started the run may edit the project, or when a trigger started it.

The step returns { taskId, number, title, url }; url opens the task in Tale.

A live run in Customer onboarding portal: the step read the email's sender and subject from the run's input, and created the task.

One task each time the step runs

The step creates one task each time it runs: once per run, and once per item or pass in a loop. When a run is interrupted after the task was created and resumes, the step answers the task it already made instead of creating a second one.

The task is created with the rights of the person who started the run, as on the board; a run a trigger started creates it as the automation. Other automations can start on its creation, which they see as made by an automation.

List a project's tasks

A task.list step reads a project's tasks, newest or oldest first, to report on them — a daily digest, a count of what waits for review. It reads a project the way a create there does, and it changes nothing, so it never waits for approval.

yaml
nodes:
  - id: open
    type: task.list
    input:
      projectId: '{{ input.projectId }}'
      status: [todo, in_progress]
      createdSince: '2026-10-17'
      limit: 20
InputWhat it holds
projectIdThe project to read.
statusOnly tasks in these statuses — any of backlog, todo, in_progress, in_review, done and cancelled; every status when left out.
createdSinceOnly tasks created at or after this moment: epoch milliseconds, a date such as 2026-10-17 (its start, in UTC), or an ISO date and time.
createdBeforeOnly tasks created before this moment, written the same way. With createdSince, it makes a window: one that starts where the last one ended never lists a task twice.
ordernewest first, as when left out, or oldest first.
afterWith order: oldest, only the tasks after this place: the next an earlier listing answered. Empty starts from the first.
limitAt most this many tasks, up to 200; 50 when left out.

The step returns { tasks, hasMore, next }. Each task carries its taskId, number, title, status, priority, assignee (its type, id and name), dueDate, createdAt and the url that opens it. Archived tasks are left out, and hasMore says that more tasks match than limit returned. Oldest first, next then names the last task listed: pass it as after, and the next listing carries on behind it, even past tasks created in the same millisecond. The Daily task digest template is built on it.

The Daily task digest's run, with its Tasks step selected: the project and the moment it read from, and the seven tasks it returned.

Read a task and a specific run

A task.get step normally returns the task’s title, status, project and description. Add agentRunId to read one exact run on that task. agentRun then contains id, taskId, agentId, status, execId, startedAt, launchedAt and settledAt; timestamps are epoch milliseconds and the last two can be null. A missing run or one belonging to another task or organization returns agentRun: null. No latest run is substituted. Leaving agentRunId out preserves the original response.

Use task.list_comments with includeIds: true when a receipt needs each comment’s native messageId alongside authorType, authorId, body and timestamp. The default response stays unchanged, and truncated still reports incomplete history. IDs written inside a comment are not its native identity.

These reads do not reserve capacity or authorize a start, command or publication. A missing field or refusal on an older platform leaves identity unknown. For a task agent’s own fresh execution, use workspace discovery.

yaml
nodes:
  - id: task
    type: task.get
    input:
      taskId: '{{ input.taskId }}'
      agentRunId: '{{ input.agentRunId }}'
  - id: comments
    type: task.list_comments
    input:
      taskId: '{{ input.taskId }}'
      includeIds: true
      limit: 10

When a step fails

FailureWhat happened
The task's project isn't the automation'sThe automation isn't installed in the project, or the run was started in another project.
The task's assignee isn't knownNo member of the organization and no agent of the project answers to the name, or they may not work in the project.

Nothing the step began stays written when it fails.