← Back to Dashboard

Workforce Management

Manage your AI agents like employees — schedules, clock in/out, task assignment, and budget controls.

Table of Contents

Overview

Non-technical summary: Think of this page as HR for your AI agents. You can set their working hours, clock them in and out, assign them tasks, and set spending limits — just like managing a team of employees.

The Workforce Management page provides a complete human-resources-style interface for managing your agent fleet. It is organized into five tabs:

How It Works

On page load, four API calls fire in parallel:

  1. /workforce/status — Current clock status for all agents
  2. /workforce/schedules — All configured schedules
  3. /workforce/budget-overview — Token usage and caps per agent
  4. /workforce/clock-records?limit=50 — Recent clock event history

The agent list is also fetched to resolve names and avatars.

Key Concepts

Clock Status

Each agent has one of three clock states:

StatusBadge ColorMeaning
Clocked InGreenAgent is active and processing tasks
Clocked OutAmberAgent is off duty (has a schedule but not currently working)
No ScheduleGrayAgent has no workforce schedule configured

Schedule Types

TypeDescription
StandardFixed start/end time with specific days of the week (e.g., Mon–Fri 9:00–17:00)
ShiftMultiple named shifts with individual time windows and day selections
CustomFlexible schedule for advanced configurations

Off-Hours Actions

When an agent's schedule ends, the system can:

Overview Tab

Displays three stat cards at the top:

Below is a table showing every agent with columns: Agent, Status, Schedule, Next Event, and Actions (Clock In / Clock Out buttons).

Tip: You can manually clock in an agent at any time, even outside their scheduled hours. This is useful for urgent tasks.

Schedules Tab

Create and manage agent work schedules. Each schedule card shows:

Schedule Editor Modal

The modal includes:

Note: Auto-Wake means the agent will automatically start working at their scheduled time without manual intervention. Disable this if you want to manually control when agents start.

Task Queue Tab

Assign tasks directly to agents with:

The task table shows all queued tasks with columns: Agent, Type, Title, Priority, Status, Created, and Actions (Done / Cancel).

Budgets Tab

Set token consumption limits per agent across four time windows:

Each agent card shows progress bars with color coding:

Important: When an agent hits its token cap, its behavior depends on your configuration. Set reasonable caps to prevent runaway costs while allowing agents enough room to complete their work.

Clock History Tab

An audit trail table with columns: Time, Agent, Event, Triggered By, Scheduled At, and Reason. Event types include:

EventColorDescription
Clocked InGreenAgent started working
Clocked OutAmberAgent stopped working
Auto WakeBlueAgent automatically started at scheduled time
Auto PauseGrayAgent automatically paused at end of schedule

Configuration & Setup

  1. Navigate to the Schedules tab and click "Create Schedule"
  2. Select the agent and configure working hours
  3. Enable Auto-Wake if you want the agent to start automatically
  4. Set token budgets in the Budgets tab to control costs
  5. Use the Overview tab to monitor real-time status

API Reference

EndpointMethodDescription
/workforce/statusGETAll agents' clock status
/workforce/schedulesGET/POSTList or create schedules
/workforce/schedules/:idPUT/DELETEUpdate or delete a schedule
/workforce/clock-in/:agentIdPOSTClock in an agent
/workforce/clock-out/:agentIdPOSTClock out an agent
/workforce/tasksGET/POSTList or create tasks
/workforce/tasks/:id/completePOSTMark task as completed
/workforce/tasks/:id/cancelPOSTCancel a task
/workforce/budget-overviewGETBudget data for all agents
/workforce/budgets/:agentIdPUTUpdate token caps
/workforce/clock-recordsGETClock event history

Best Practices

Troubleshooting

IssueSolution
Agent won't clock inCheck if the agent exists and is not in an error state. Verify the agent is in the selected organization.
Auto-wake not workingEnsure the schedule has Auto-Wake enabled and the schedule is marked as Enabled. Check timezone settings.
Budget shows 0/0No caps have been set. Click "Edit Caps" on the budget card to configure limits.
Tasks not appearingSwitch to the Task Queue tab and click Refresh. Tasks may also need the correct agent ID.
Schedule not applyingVerify the schedule is enabled (toggle in the edit modal). Also confirm the correct agent is selected.
Destructive actions: Deleting a schedule is immediate and cannot be undone. Cancelling a task stops the agent's work on it permanently.
AgenticMail Enterprise Documentation Report an issue