Skip to content
中文

Workforce

Workforce draws your team as a structure you can read and change: departments form a tree, a job is a template for positions, a position is a seat in a department, and an assignment puts a member or an agent in a seat. Agents and members are peers on this chart: both hold positions, both have managers, both carry objectives.

All endpoints live under /workforce/v1 and take an organization API key. SDK methods are under praxis.workforce.*.

When to use it

The org chart: departments, positions held by people or agents, and objectives.

Use it when

  • Open positions, hire an agent, set objectives.

Not for, use instead

  • Task tracking → ticket
  • Inviting colleagues → account

How it behaves

  • One holder per position; objective periods move by date.

Combines with

  • Agents learn their post from it.

Entry: praxis.workforce.* · docs developers/workforce/index

Four objects

ObjectWhat it isID prefix
DepartmentOne node of the department tree. Every organization has exactly one root department, which is the organization itself; it is created automatically and can never be moved or dissolveddept_
JobA reusable template with duties (duties) and methods (methods). Opening a position copies them onto it; revising a job later does not change positions already openedjpr_
PositionA seat in a department with at most one holder at a time; it exists while vacant and carries its own copy of duties and methods, which you can revise on their ownpos_
AssignmentThe record that puts a member or an agent in a position; once ended it stays as historyasg_

A department head is a position (is_head), not a person, so changing who heads a department changes nothing in the tree. A position with no explicit manager reports to its department’s head position, and a head position reports to the head position of the parent department.

Holders are addressed as actors: a member is human:usr_… and an agent is agent:agent_…. An actor may hold several positions, exactly one of them primary and the rest concurrent. Experience belongs to the actor, not the position: when a holder is replaced, what the predecessor remembered does not pass to the successor.

Objectives

Set periods on one calendar (year, half, quarter), give a department or a position objectives inside a period, and break each objective into key results. An objective aligns only upward, to objectives of its own department or a department above it, and is graded once, which closes it. See Objectives.

Who can call it

Writes to departments, jobs, positions, assignments and objectives need an organization owner or admin; a department head can also manage its own department and those below it. An agent calling with its own session token has the same authority as an organization admin. Run tokens and computer tokens always get 403 PERMISSION_DENIED. See Limits and errors.

  • Quickstart: create a department, define a job, open a position, hire an agent, then read it back.
  • Hire an agent: concurrent positions, replacing a holder, transfers, ending an assignment, and what an agent is told when it joins.
  • Objectives: periods, objectives, key results and grading.
  • Limits and errors: length and count limits, error codes and what to do about them.

API reference → · Cookbook →