← Back to Agent

Agent Workforce

Manage agent schedules, work hours, clock in/out, task queues, task pipelines, and clock history.

Contents

Overview

For Everyone

Think of the Workforce tab as your agent's HR department. It controls when the agent works (schedules), what the agent is working on (tasks), and tracks its time (clock history). You can set 9-to-5 hours, define shift patterns, clock agents in and out, and assign work — just like managing a human employee.

For Developers

The Workforce section integrates five subsystems:

The AgentTaskPipeline component is embedded from task-pipeline.js and provides real-time task tracking via SSE.

How It Works

  1. Status Monitoring — On mount, the current status is fetched and an SSE connection is opened. Status updates (online, idle, error) stream in real time.
  2. Schedule Configuration — Create or edit a schedule defining work hours, days, timezone, and enforcement rules.
  3. Clock In/Out — Manually clock the agent in or out. When clocked out, the agent's behavior depends on the off-hours action setting.
  4. Task Assignment — Create tasks with title, description, priority, and type. The agent processes tasks in priority order.
  5. Pipeline Tracking — The Task Pipeline shows automatically-recorded tasks from agent spawns with real-time status updates.

Key Concepts

Real-Time Agent Status

The status card at the top shows live agent state:

Schedules

Three schedule types are supported:

TypeDescriptionConfiguration
StandardFixed daily hoursStart time, end time, days of week (clickable day buttons)
ShiftNamed shift patternsMultiple shifts, each with name, start, and end time
CustomFlexible schedulingCustom configuration

Schedule options include:

Task Queue

Manually assign work to the agent. Each task has:

Task Pipeline

Unlike the manual Task Queue, the Task Pipeline tracks tasks automatically created when the agent is spawned for work. It shows:

Tip: The Task Pipeline is separate from the manual Task Queue. Pipeline tasks are system-generated; queue tasks are manually created by administrators.

Clock History

A complete audit trail of all clock-in/out events. Features include:

Best Practices

Troubleshooting

Agent won't clock in

Check if the schedule is enabled and the current time falls within the configured hours (accounting for timezone). If "Enforce Clock-In" is active, the agent can only clock in during scheduled hours.

Tasks stuck in "Pending"

The agent must be clocked in and active to process tasks. Verify the agent status shows "Online" and "Clocked In". Also check if the agent is paused by guardrails.

Real-time status not updating

The SSE connection may have dropped. Refresh the page to re-establish it. If the issue persists, check network connectivity and that the engine API is running.

Schedule changes not taking effect

Schedule changes take effect at the next schedule boundary. If the agent is currently clocked in, it will continue until the current period ends. For immediate effect, manually clock the agent out and back in.

Organization Context

When an agent belongs to a client organization, workforce management respects organization-level settings:

How do I know if an agent follows org hours?

A blue info banner appears at the top of the Workforce tab showing "Work schedule follows [Org Name] business hours" along with the configured hours and timezone when applicable.

AgenticMail Enterprise Documentation Report an issue