python scripts/orchestrator.py Run 2026-08-05 5 agents 10 leads · 10 deals · 9 customers

RevOps Daily Run

One command replaces a RevOps analyst's morning: CRM hygiene sweep, inbound lead triage, weekly pipeline review, renewal risk on the installed base, and pre-call account research. Every number below is the actual stdout of the five agents, rendered as the report a sales leader would read instead of a terminal dump.

Synthetic data — no real customer records
Weighted forecast
$630K
43% of $1.48M open
Tier A leads
4
of 10 scored ↓1 vs prior model
Stalled deals
3
$710K at risk
Cleanup tasks
1
1 stale, 0 dupes
ARR at risk
$666K
41% of book · 4 accounts
Step 1

CRM Hygiene

crm_hygiene_agent.py

Scans every lead record for blank required fields, near-duplicate account names (fuzzy match at 0.82 similarity), and ownership that has gone cold.

Missing required fields
None
All 10 records carry industry, employee count, revenue, title, and region.
Possible duplicate accounts
None
45 name pairs compared; no pair above the 0.82 similarity threshold.
Stale leads — 30+ days inactive
1 to review
Prairie Ag Systems, 45 days inactive — recycle or disqualify.
Step 2

Lead Scoring

lead_scoring_agent.py

A transparent weighted model, not a black box. The weights are published below and sum to exactly 100, so a score reads directly as a percentage of a perfect-fit lead. Every row carries the reasons that produced its number — the first thing a sales leader asks.

Scoring model · maximum 100
Company size fits ICP+15
Demo requested+20
Industry match+15
Budget confirmed+15
Decision-maker title+20
High site engagement+10
  
Active in last 3 days+5
Stale 30+ days−15
Maximum100

Intent (demo + budget = 35) and buying authority (title = 20) outweigh firmographics, because intent correlates more strongly with close rate than company attributes do. Scores floor at 0, so a lead never carries a negative percentage. Tiers: A ≥ 70 · B 45–69 · C < 45.

Tier Account Score Why it scored that way
A · HOT Northwind LogisticsVP Operations
100/100
Size fits ICP; industry match (Logistics); decision-maker title; requested demo; budget confirmed; high site engagement; active in last 3 days
A · HOT Sable InsuranceVP Digital Transformation
95/100
Size fits ICP; industry match (Insurance); decision-maker title; requested demo; budget confirmed; high site engagement
A · HOT Vertex FinancialVP RevOps
85/100
Size fits ICP; industry match (Finance); decision-maker title; requested demo; budget confirmed
A · HOT Nimbus Cloud CoHead of IT
80/100
Size fits ICP; industry match (Technology); decision-maker title; budget confirmed; high site engagement; active in last 3 days
B · WARMwas A Delta Retail GroupCIO
65/100
Size fits ICP; decision-maker title; requested demo; high site engagement — no industry match (Retail is outside the ICP)
B · WARM Brightline MediaFounder
55/100
Decision-maker title; requested demo; high site engagement; active in last 3 days
B · WARM Solace HealthDirector IT
50/100
Size fits ICP; industry match (Healthcare); decision-maker title
C · NURTURE Kestrel BiotechDirector Operations
35/100
Size fits ICP; decision-maker title
C · NURTURE Cobalt ManufacturingSr Manager Procurement
15/100
Size fits ICP
C · NURTURE Prairie Ag SystemsOps Manager
0/100
No positive signals; stale 30+ days (−15, floored at 0)

Rebalancing the scale to 100 moved Delta Retail Group from A to B. The old 110-point ceiling was hiding a borderline account: Delta clears every gate except industry fit, and Retail sits outside the ICP. On the new scale that gap is visible in the score itself.

Step 3

Pipeline Health

pipeline_health_agent.py

The weekly forecast-and-hygiene review, rebuilt from the deal table: weighted forecast, deals with no update in 21+ days, workload balance across reps, and stage/probability mismatches worth a conversation.

Deal Account Stage Owner Amount Stale
D003Delta Retail Group DiscoveryJ. Alvarez $420,00025d
D004Sable Insurance NegotiationK. Patel $210,00040d
D009Kestrel Biotech NegotiationK. Patel $80,00033d

Three deals worth $710,000 have gone 21+ days without an update — two of them already in Negotiation, where silence is most expensive.

J. Alvarez
$940,000 · 4 deals
K. Patel
$440,000 · 3 deals
M. Chen
$95,000 · 1 deal
Stage / probability mismatches
None flagged
No deal sits in Negotiation below 50% probability. Win rate on closed deals: 50%.
Step 4

Renewal Risk

renewal_risk_agent.py

The quarterly renewal review, run against the installed base rather than the prospect list. It reports two numbers on purpose: risk says how unhealthy an account is, days-to-renewal says how soon that matters. A single blended ranking would hide the difference between an account that is unhealthy and renews in two weeks and one that is unhealthy and renews in ten months — different teams, different work.

Risk model · maximum 100
Low seat adoption+25
Support escalations (2+/90d)+15
Dormant 30+ days+20
Low CSAT (3.5 or below)+15
Exec sponsor changed+15
Single-team deployment+10
Maximum100

Weighted toward behaviour over sentiment. Seat adoption and login recency are what a customer does, and they move months ahead of a renewal; a CSAT score is what one person said on one day. Sponsor loss sits in the middle — it does not predict churn by itself, but it removes the person who would have defended the renewal internally. Bands: Critical ≥ 50 · Elevated 25–49 · Stable < 25.

Action Account Risk ARR Renews What is driving it
ACT NOW Trailhead RetailM. Iqbal
100/100
$96,000 15d 28% of licences active; dormant 68d; sponsor changed; 2 escalations; CSAT 2.4; single team — every signal firing at once
ACT NOW Fairmount LogisticsM. Iqbal
70/100
$190,000 31d 38% of licences active; dormant 55d; CSAT 3.4; single-team deployment
ACT NOW Meridian BankD. Okafor
70/100
$320,000 62d 38% of licences active; sponsor changed; 3 escalations in 90d; CSAT 2.8
PLAN Nimbus Cloud CoK. Reyes
70/100
$60,000 300d 33% of licences active; dormant 42d; sponsor changed; single team — closed-won in Step 3, never adopted
PLAN Alder Health PartnersM. Iqbal
30/100
$275,000 78d 2 escalations in 90d; CSAT 3.2 — adoption is healthy, sentiment is not
PLAN Westfield EnergyD. Okafor
30/100
$410,000 88d Sponsor changed; 2 escalations in 90d — largest account in the book, worth the check-in
MONITOR Beacon Legal GroupK. Reyes
10/100
$54,000 120d Single-team deployment only
MONITOR Ridgeline AnalyticsK. Reyes
0/100
$145,000 45d No risk signals — 84% adoption, CSAT 4.4
MONITOR Copperline FoodsD. Okafor
0/100
$88,000 210d No risk signals — 90% adoption, CSAT 4.1

Nimbus Cloud Co is the one to read twice. It appears in Step 3 as D005, Closed Won — a deal the team celebrated — and it already carries 70/100 renewal risk, because the seats were sold and never adopted. Its renewal is 300 days out, so the model says Plan, not Act now: today it is an adoption problem, and it only becomes a save-the-renewal emergency if nobody touches it for nine months. That distinction is the entire reason risk and the calendar are reported separately.

Work the list in this order
$606,000 inside 90 days
Trailhead Retail (15d), then Fairmount Logistics (31d), then Meridian Bank (62d). Book of business is $1,638,000 ARR across 9 customers.
Step 5

AI Account Brief

account_research_agent.py

The one agent that calls a model rather than a rule. It assembles the CRM lead record and matching deal rows into a prompt and asks Claude for a pre-call brief — the 10–15 minutes a rep spends before every call. It runs without credentials by design, printing the prompt it would send plus a sample brief.

Northwind Logistics · Top-scoring lead (100/100) Sample output — no API key set
Profile
850 employees, Logistics, $120M revenue — fits ICP on both size and industry.
Engagement
14 pages viewed, demo requested, budget confirmed, active 2 days ago.
Pipeline
Deal D001 — $180K in Negotiation at 80% probability, closing 2026-08-15.
Talking points
01
Confirm the procurement timeline, given the Negotiation stage and near-term close date.
02
Reference their site engagement — 14 pages suggests they are evaluating multiple vendors. Ask what is driving the comparison.
03
A VP Operations title means operational ROI framing will land better than a feature-list pitch.
Risk
No flags — deal is warm and active