Skip to main content

Tasks

Tasks are units of work you give to agents: a report to produce, a batch of documents to process, a check to run. A conversation is for back-and-forth. A task is for work that should be done, tracked and retried without anyone watching: it has an owner, a priority, a deadline, a history of runs, and retries when something fails.

Why tasks​

  • Batch work: process a hundred documents overnight
  • Background work: produce reports while your team sleeps
  • Recurring work: a daily sync at 2 AM
  • Chained work: task B starts when task A is done

Task types​

TypeHow it runs
AutoStarts as soon as it is created
ManualRuns only when someone starts it
ScheduledRuns on a cron schedule (see Schedules)

A task can also be started by another task finishing (a dependency), by a workflow, or through the API.

Task lifecycle​

Pending --> Running --> Completed

StatusMeaning
PendingWaiting to run
Needs ApprovalWaiting for a person to approve it before it runs
RunningIn progress
CompletedFinished successfully
FailedFailed, and retried if retries are configured
TimeoutTook longer than its time limit
PausedTemporarily suspended
CancelledStopped by a person

Creating a task​

  1. Go to Work › Automation › Tasks.
  2. Click Create Task.
  3. Enter the task name and a description of what the agent should do.
  4. Choose the Assigned Agent and the Type.
  5. Set the optional settings below, then click Create Task.

Or ask Loyd: "Create a task for the research agent to compile competitor pricing by Friday, high priority."

Task settings​

SettingDescription
PriorityLow, Medium, High or Urgent
DeadlineThe date the task must be completed by
DependenciesOther tasks that must complete first
Max RetriesHow many times to retry after a failure
Retry DelayHow long to wait between retries
TimeoutThe maximum duration of one run
Schedule (Cron) and TimezoneFor scheduled tasks
Notify on completion / Notify on failureWho is told when the task ends

Chaining tasks​

Dependencies turn tasks into a pipeline. For example:

  1. Extract data (no dependency)
  2. Transform data (depends on Extract)
  3. Load data (depends on Transform)

Start the first task; the next ones start as their dependencies complete.

Following a task​

Every execution creates a run. For each run you see when it started and finished, its duration, its cost, and its output or error. From the task list you can Run a task, Pause or Stop a running one, and Retry a failed one.

Tasks assigned to you (for example a review an agent needs from you) appear in Work › My Tasks.

Best practices​

Name tasks so anyone understands them

"Daily sales report, US region" says what it is. "Task 1" does not.

Match the timeout to the work

A lookup needs seconds; a deep analysis may need many minutes. A realistic timeout catches stuck runs without killing healthy ones.

Retry what is flaky

Calls to external systems sometimes fail briefly. Two or three retries with a short delay absorb most of those failures.


Next: Learn about Schedules for automated task execution.