Kortex Workforce
Workforce puts Kortex agents to work. An agent that is at work can take on a task, use the tools you grant it, and finish the job without someone sitting in a chat window. You decide what it may do, what it may spend, and when it must stop and ask a person.
This section covers everything a developer authors or calls:
| Page | What it covers |
|---|---|
| Build a playbook | The playbook format, every field, every validation problem, and complete examples |
| Deploy and run | Versions, dev and live, deploy and rollback, starting runs, the Run playbook workflow step, reading runs |
| People in the loop | Approvals, questions, the Needs you view, email, expiry |
| Feedback and rules | Judging runs, how feedback steers later runs, rules on playbook versions and assignments |
| Trust and limits | Probation for new agents, auto-pause, limits on how often a tool is used |
| Reports | Daily and weekly report emails, for all agents or one |
| Check before going live | Rerun past corrections on a new playbook version before you deploy it |
| From code and agents | The API, the SDK, the toolkit (ptkl) and the MCP server |
The pieces
Agent at work. A Kortex agent becomes an agent at work when you give it Workforce settings and put it to work. The settings say who it acts as, which tools it may call (and which calls need a person to approve), its budget, and whom to tell when it needs someone. An agent that is not at work can still be chatted with; it just can't be started on a task.
Playbook. A playbook is how a job is done: a drawing of steps, who performs each step, and the lines between them. Each step is plain text instructions for an agent, or names one tool the agent must use. A playbook has versions, and each version can be deployed to dev and to live.
Run. A run is one execution: either a single agent working on instructions you give it, or a deployed playbook version. Every run records its steps, what it cost, and why it ended.
Trust. A new agent asks before it changes data, and an agent in trouble pauses itself. See Trust and limits.
People in the loop. A run can stop and wait for a person: to approve a tool call the agent is not allowed to make on its own, or to answer a question the agent cannot settle. Everything waiting for you shows in one place, Needs you.
Assignments. An assignment is standing work: an agent, or a playbook, started on a schedule or by hand.
flowchart LR
A[Agent at work] --> P[Playbook version]
P -->|deploy| E[dev / live]
E -->|Run now, schedule, workflow step| R[Run]
R -->|approval or question| H[Person: Needs you]
H -->|decision| R
R --> F[Feedback]
F -->|make it a rule| A
Permissions
Workforce has three permissions, granted like any other Kortex permission (see Owner and Maintainer for how Kortex access is managed).
| Permission | Lets you |
|---|---|
protokol-kortex workforce::read |
List and read playbooks, versions, runs, steps, assignments, and the activity ledger; judge a run (feedback); answer a question on a run you started |
protokol-kortex workforce::manage |
Create and change playbooks, deploy and roll back, put agents to work and change their settings, manage assignments, start runs, pause, resume and kill runs, stop everything, and turn corrections into rules |
protokol-kortex workforce::approve |
Approve or deny a tool call an agent is waiting on, and answer a question, for the agents you may use (see Who may decide) |
Two rules on top of the permissions:
- Prota, the built-in agent, is put to work and decided for only by an Owner or Maintainer. Anyone else gets
Only an Owner or Maintainer can decide what Prota waits on.when they try to decide one of its steps. - A person who started a run can answer that run's questions, even without
workforce::approve, as long as they may use the step's agent. Approvals always needworkforce::approve. - Holding
workforce::approveis never enough on its own: you must also have access to the step's agent in Kortex user access.
Plan requirement
Workforce is part of the project's plan. When the plan does not include it, the API answers 403 with:
Putting an agent to work past the plan's limit of agents at work answers 403 your plan's agent limit is reached.
A project that loses Workforce can still stop what is already running: pausing, resuming and killing runs and Stop everything do not check the plan.
Put an agent to work
A playbook step names an agent, so the agent needs Workforce settings first. In the dashboard open the agent and choose Put to work; through the API use POST /agents/{uuid}/workforce (see From code and agents).
| Field | Meaning |
|---|---|
run_as |
The identity the agent acts as: prn:role:<role uuid> or prn:role:maintainer. The agent can do only what that identity may do. See Run Identity. Required. |
skills |
The tools the agent may call. An empty list means the agent can only think and read its knowledge bases. |
budget |
What one run may spend. See Limits. |
escalation |
Whom to tell, and how long a person has to answer. See People in the loop. |
trust |
Probation and auto-pause. See Trust and limits. Optional; the defaults apply when left out. |
status |
active (at work), paused, or disabled (off). |
Each entry in skills is:
| Field | Meaning |
|---|---|
tool |
The tool's name. List what is available with GET /skills. |
approval |
auto (the agent calls it), confirm (a person approves each call), or never (the call is refused). Defaults to confirm. |
max_calls |
Most calls of this tool in one run. 0 uses the default. |
max_per_day |
Most calls of this tool in a day before a person is asked: 1 to 10000. Leave out for no limit. See Action limits. |
config |
Arguments pinned at grant time that the agent may not choose. |
A tool's own default approval can be stricter than auto. Loosening an approval below the tool's default is recorded against the person who did it.
App tools registered by Forge apps are granted the same way, with forge_tool_call and the tools to pin in config.tools ("<app uuid>/<tool>", one to fifty entries). With no approval, each app tool follows the app's marks: a read-only tool runs on its own and any other tool asks first. A destructive app tool always asks, whatever approval says.
An agent that is paused or disabled cannot take part in a run. Updating an agent's settings replaces every field in the body; it is not a partial merge.