Skip to main content

Documentation Index

Fetch the complete documentation index at: https://hc.pillargtm.com/llms.txt

Use this file to discover all available pages before exploring further.

Playbook API

The Playbook API manages play effectiveness computation and retrieval. GET queries effectiveness data with optional filters; POST recomputes effectiveness metrics from play outcome data.

GET /api/plays/effectiveness

Returns play effectiveness metrics with optional segment, tier, and territory filters. Auth: Requires authenticated session. Scoped to organization.

Query Parameters

ParameterTypeDefaultDescription
segmentstringFilter by account segment
tierstringFilter by account tier
territorystringFilter by territory

Response

FieldTypeDescription
effectivenessarrayEffectiveness records sorted by win rate (descending)
kpiobjectSummary KPIs

Response Fields: kpi

FieldTypeDescription
total_templatesnumberDistinct play templates with data
avg_win_ratenumberOverall win rate across all templates
top_performing_playstringTemplate name with highest win rate
top_win_ratenumberWin rate of the top template
plays_needing_reviewnumberTemplates flagged as underperforming based on configurable thresholds

Response Fields: effectiveness[]

FieldTypeDescription
play_templatestringPlay template name
segmentstringAccount segment (nullable)
tierstringAccount tier (nullable)
territorystringTerritory (nullable)
total_runsnumberTotal executions
successful_runsnumberPositive outcome count
win_ratenumberSuccess rate (0-1)
avg_time_to_completenumberAverage days to completion (nullable)
avg_arr_impactnumberAverage ARR of targeted accounts
avg_health_deltanumberEstimated health score change
sample_period_startstringEarliest play date in sample
sample_period_endstringLatest play date in sample
confidence_levelstringhigh, medium, or low

POST /api/plays/effectiveness

Recomputes effectiveness metrics from play outcome data and persists results. Auth: Requires authenticated session. Scoped to organization.

Request Body

No body required.

Response

FieldTypeDescription
successbooleanOperation result
computednumberEffectiveness rows computed
upsertednumberRows successfully upserted
plays_analyzednumberTotal plays processed
outcomes_processednumberOutcome feedback records processed

Computation Flow

  1. Load all plays with outcomes
  2. Load outcome feedback data
  3. Load account context (segment, tier, territory, ARR, health score) for play accounts
  4. Group plays by template x segment x tier
  5. Compute win rate, avg time to complete, ARR impact, health delta per group
  6. Persist results (keyed on organization + play template + segment + tier)

Positive Outcomes

The following outcomes are classified as successful: RENEWED, WON, EXPANDED, SAVED, UPSOLD.
See the Playbook Evolution data model page for full details on the effectiveness computation, segment affinity analysis, and recommendation generation.