Stages, steps, and playbooks — the funnel's structure

If an agent is a worker, stages, steps, and playbooks are the factory floor it works on. They describe where candidates can be, what work happens at each location, and the rules for moving candidates between locations. Get this structure right and the agent runtime becomes a precise machine. Get it wrong and you have either a free-for-all or a bureaucratic gauntlet.

The Stages template editor where a workspace defines its pipeline stages.

The three layers

There are three nested concepts at play, and they're worth keeping straight from the start.

Stage

A stage is a major phase of the candidate journey. Applied. Screened. Phone Interviewed. Offered. Hired. Rejected. Each candidate is in exactly one stage at any given moment. Stages are the coarse-grained answer to "where are they in the funnel?"

Step

A step is a checkpoint inside a stage. The "Screened" stage might decompose into steps like Sent screening message → Received response → Scored answers. A stage is "where you are"; a step is "what specifically has happened in here."

Steps exist because real funnel work isn't one event. Moving from Applied to Screened isn't an instant — it's a sequence. Steps let the system track partial progress without inventing fake stages for every micro-state.

Playbook

A playbook is the versioned blueprint that ties stages and steps together for a specific use case. It says: "for this client campaign, here are the stages in order, here's what an agent does at each one, here's when a human gets pulled in." A playbook is the configuration; agents are the runtime that executes it.

Playbooks are immutable per version. Editing a playbook actually means creating a new playbook version. The old version stays exactly as it was, so finished applications keep the blueprint they ran on; applications still in progress follow the newly published version.

Why this structure exists

Three real problems forced this design.

1. One funnel can't fit every client. Acme Co's funnel for crew member hiring is short and high-volume — three or four stages, mostly automated. BlueWave's funnel for senior customer-service-rep hiring is longer — six or seven stages, with mandatory human interviews. If Crew had a single global funnel, you couldn't serve either client well. Per-tenant stages mean every workspace runs its own funnel shape.

2. Funnels need to evolve without breaking in-flight work. When Acme Co decides to add a "Reference check" stage between Offered and Hired, every existing candidate is somewhere in the existing funnel. You can't just rewire the rails under them. Versioned playbooks solve this — new applications start on the new version, in-progress applications follow it from the stage they are in, and finished ones keep theirs. Nothing breaks.

3. Steps make progress visible. A stage like "Phone Interviewed" is too coarse to be useful. Is the interview scheduled? Held? Scored? Approved? Without steps, the team has to guess. With steps, the dashboard says exactly what's happened and what's next.

How the layers fit together

playbook_version (immutable)
   │
   ├── ordered list of stages: [Applied, Screened, Interviewed, Offered, Hired]
   │
   ├── for each stage: ordered list of steps
   │      e.g. Screened = [Send message, Receive answers, Score, Decide]
   │
   └── for each step: which agent runs it, what it's allowed to do

         ▲
         │ application points to ONE playbook_version at creation time
         │
   ┌─────┴──────┐
   │ application │  ← in flight in some stage, on some step
   └─────────────┘

An application's relationship to all of this is one-to-one in both directions: it's at exactly one stage, on exactly one step (or "between" steps), running on exactly one playbook version. The application carries denormalized snapshots of its current stage and step so the dashboard can render it without joining the playbook every time.

Stage templates vs. tenant stages

Crew ships a global catalog of stage templates — the canonical building blocks: Applied, Screened, Interviewed, Offered, Hired, Rejected, Withdrew. Every tenant gets seeded with these templates when their workspace is set up.

A tenant then customizes their stages from those templates: rename, reorder, deactivate, add new tenant-specific ones. BlueWave might rename "Interviewed" to "Phone Screen" and add a "Voice Assessment" stage between Screened and Phone Screen. Acme Co might consolidate Phone Screen and Offered into a single "Offered" stage because their high-volume workflow doesn't need to separate them.

The link from a tenant stage back to the template stays in place — useful for reporting across tenants ("how does Phone Screen perform across all BPO clients?") even when the local label changed.

What each layer does

Stage behaviors

  • Acts as the major status of a candidate. Every dashboard filter, every report, every "where are they?" question rolls up to stage.
  • Defines what's allowed. A stage's configuration controls which agents can act on candidates in that stage, what transitions out of the stage are legal, and whether a human must approve before leaving the stage.
  • Has a category — intake (top of funnel), progress (middle), or exit (terminal: hired, rejected, withdrew). Terminal stages don't accept candidates back.
  • Carries a color and order. Mostly UI — but the order field defines the canonical funnel flow when there's no explicit transition graph defined.

Step behaviors

  • Tracks fine-grained progress. "Sent screening message" is one step; "Received answers" is the next.
  • Belongs to a stage. No orphans — every step has a parent stage.
  • Can be required or optional. A required step blocks stage advancement; an optional step is informational.
  • Drives agent work. Agents pull application_step_progress rows to decide what to do next. When a step's progress is "ready" or "pending," that's the agent's cue.

Playbook version behaviors

  • Snapshots the configuration. A playbook version is a frozen JSON document that captures all the stage definitions, step definitions, agent assignments, and routing rules at the moment of publication.
  • Is the unit applications anchor to. When an application is created, it gets a playbook_version_id and runs on that version for life.
  • Can't be edited. Want to change the playbook? Mint a new version. The old version's row stays untouched.
  • Has a version_number per playbook — a monotonically increasing integer. Useful for human eyeballing ("we're on version 4 of the BlueWave playbook now").

Constraints and gotchas

  • Tenant stages reference templates loosely. The link is a template_id foreign key set to ON DELETE SET NULL. If the template gets deactivated globally, the tenant's stage still works — it just loses the link upstream. This is intentional resilience.
  • Stages have an is_terminal flag. Terminal stages reject incoming applications and disable most agent actions. Setting a stage to terminal is a high-leverage change — verify the cascade behavior before flipping it on a stage that's mid-funnel.
  • Step code is unique per stage per tenant. You can have a step called send_message in the Screened stage AND another send_message in the Interviewed stage — they're distinct rows. But two steps named send_message in the same stage would clash.
  • A playbook can have at most one active version at a time. The playbook.active_version_id column is the pointer to the current version. Older versions stay accessible (finished applications point at them) but new and in-progress applications use the active one.
  • Versioned playbooks are append-only. You never delete a playbook version. Even after a year of in-flight applications have completed and no one is running on v1 anymore, v1's row stays for historical audit.

A concrete example

Acme Co's playbook for the Quezon City crew member hiring effort:

Playbook: Acme Co's Crew Hiring · v3 (active)

1. Applied
   ├── step: Received application
   └── step: Validated contact info

2. Screened
   ├── step: Sent screening message (agent: screen-v3)
   ├── step: Received answers (agent: screen-v3)
   └── step: Scored answers (agent: screen-v3)

3. Phone Screen
   ├── step: Scheduled call (agent: schedule-v2 + human approval)
   ├── step: Call held (human-only)
   └── step: Notes recorded (human-only)

4. Offered
   ├── step: Offer letter sent (agent: offer-v1)
   └── step: Offer accepted (human-only)

5. Hired (terminal)
   └── step: Confirmed start date (human-only)

When the candidate applies, an application row is created with playbook_version_id = pbv-...v3. She enters at stage Applied, step Received application. As the screen agent works her case, her application_step_progress rows accumulate, and her stage advances from Applied → Screened → Phone Screen → Offered → Hired over the course of three or four days.

Two weeks later, the team adds a new step "Reference check" between Offered and Hired. They publish v4 of the playbook. Every new applicant from this moment forward runs on v4 and goes through reference checks. the candidate, mid-flight on v3, finishes her journey without the new step ever applying to her. Both behaviors are correct — and they're correct for the same structural reason.

Custom stages

Beyond the template defaults, recruiters can add custom stages to a specific requisition's pipeline. Custom stages work the same way as any other stage in display and reporting, but they do not automatically inherit transition logic from the playbook — their position in the pipeline editor is the display order, and any automated transitions to or from a custom stage must be defined explicitly in the playbook configuration. This means a custom stage without configured transitions acts as a manual holding point: candidates can be moved into it by recruiters, but agents won't advance candidates through it automatically. See Adding custom stages to a pipeline for how to add and configure them.

Editing a workflow

Playbooks are surfaced to recruiters as Workflows — same model, different name in the UI. The Workflows tab at Requisitions → Templates → Workflows is the editor for the playbook the workspace's campaigns bind to. The canvas-based editor exposes stages, transitions, sticky notes, in-stage action sequences, and visual router branches. See The Workflows editor — building and editing reusable hiring workflows for the full editor walkthrough.

See also