← Back to Dashboard
Workforce Management
Manage your AI agents like employees — schedules, clock in/out, task assignment, and budget controls.
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:
- Overview — Dashboard showing which agents are clocked in, off duty, or unscheduled
- Schedules — Create and manage work schedules with auto-wake and off-hours policies
- Task Queue — Assign, track, complete, and cancel tasks for specific agents
- Budgets — Set daily/weekly/monthly/annual token caps per agent
- Clock History — Audit trail of all clock-in/out events
How It Works
On page load, four API calls fire in parallel:
/workforce/status — Current clock status for all agents
/workforce/schedules — All configured schedules
/workforce/budget-overview — Token usage and caps per agent
/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:
| Status | Badge Color | Meaning |
| Clocked In | Green | Agent is active and processing tasks |
| Clocked Out | Amber | Agent is off duty (has a schedule but not currently working) |
| No Schedule | Gray | Agent has no workforce schedule configured |
Schedule Types
| Type | Description |
| Standard | Fixed start/end time with specific days of the week (e.g., Mon–Fri 9:00–17:00) |
| Shift | Multiple named shifts with individual time windows and day selections |
| Custom | Flexible schedule for advanced configurations |
Off-Hours Actions
When an agent's schedule ends, the system can:
- Pause — Suspend the agent; it resumes at next scheduled start
- Stop — Fully stop the agent process
- Queue — Let incoming tasks queue until the agent's next shift
Overview Tab
Displays three stat cards at the top:
- Agents Clocked In (green) — Currently active agents
- Agents Off Duty (amber) — Scheduled agents not currently working
- Unscheduled (gray) — Agents with no workforce schedule
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:
- Agent name and schedule type badge
- Working hours and days
- Timezone
- Policy badges: Enforce Clock-In, Enforce Clock-Out, Auto-Wake, Off-hours action
- Edit and Delete buttons
Schedule Editor Modal
The modal includes:
- Agent selector — Choose which agent this schedule applies to
- Schedule type — Standard, Shift, or Custom (radio buttons)
- Time configuration — Start/end times for standard; named shifts with individual times for shift type
- Days of week — Toggle buttons for Sun–Sat
- Timezone — Full timezone selector
- Toggles: Enforce Clock-In, Enforce Clock-Out, Auto-Wake, Enabled
- Off-hours action — Pause, Stop, or Queue
- Grace period — Minutes of leeway before enforcing clock-out
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:
- Agent — Target agent for the task
- Title & Description — What the agent should do
- Priority — Low, Normal, High, Critical
- Type — New, Continue, Scheduled, Delegation
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:
- Daily Token Cap
- Weekly Token Cap
- Monthly Token Cap
- Annual Token Cap
Each agent card shows progress bars with color coding:
- Green — Under 50% usage
- Amber — 50–80% usage
- Red — Over 80% usage
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:
| Event | Color | Description |
| Clocked In | Green | Agent started working |
| Clocked Out | Amber | Agent stopped working |
| Auto Wake | Blue | Agent automatically started at scheduled time |
| Auto Pause | Gray | Agent automatically paused at end of schedule |
Configuration & Setup
- Navigate to the Schedules tab and click "Create Schedule"
- Select the agent and configure working hours
- Enable Auto-Wake if you want the agent to start automatically
- Set token budgets in the Budgets tab to control costs
- Use the Overview tab to monitor real-time status
API Reference
| Endpoint | Method | Description |
/workforce/status | GET | All agents' clock status |
/workforce/schedules | GET/POST | List or create schedules |
/workforce/schedules/:id | PUT/DELETE | Update or delete a schedule |
/workforce/clock-in/:agentId | POST | Clock in an agent |
/workforce/clock-out/:agentId | POST | Clock out an agent |
/workforce/tasks | GET/POST | List or create tasks |
/workforce/tasks/:id/complete | POST | Mark task as completed |
/workforce/tasks/:id/cancel | POST | Cancel a task |
/workforce/budget-overview | GET | Budget data for all agents |
/workforce/budgets/:agentId | PUT | Update token caps |
/workforce/clock-records | GET | Clock event history |
Best Practices
- Set schedules for all production agents: Unscheduled agents run without time boundaries, which can increase costs.
- Use Auto-Wake: Ensures agents reliably start at their scheduled time each day without manual intervention.
- Set budget caps conservatively: Start with lower caps and increase as you understand each agent's typical usage patterns.
- Review clock history regularly: Check for unexpected auto-pauses or errors that might indicate schedule misconfiguration.
- Use timezones correctly: Set each agent's timezone to match the audience it serves, not your own timezone.
- Grace periods: Set a 5–15 minute grace period to let agents finish current tasks before clock-out is enforced.
Troubleshooting
| Issue | Solution |
| Agent won't clock in | Check if the agent exists and is not in an error state. Verify the agent is in the selected organization. |
| Auto-wake not working | Ensure the schedule has Auto-Wake enabled and the schedule is marked as Enabled. Check timezone settings. |
| Budget shows 0/0 | No caps have been set. Click "Edit Caps" on the budget card to configure limits. |
| Tasks not appearing | Switch to the Task Queue tab and click Refresh. Tasks may also need the correct agent ID. |
| Schedule not applying | Verify 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.