# The deal pipeline that weights the roadmap

A CRM surface with five fixed stages, integer-cents math, event fan-out to agents and webhooks — and a forecast the roadmap can actually spend. Here is the whole process flow.

Canonical: https://zenhero.io/blog/deal-pipeline/
Last updated: 2026-11-30


We ran stopwatch studies on the incumbent CRMs before building this ([both roast
sites](https://huhspot.us) keep the receipts). The single most-used surface, session after
session, was the deal pipeline — 13–14 of ~40 sessions a week dragging cards left to right. So
ZenHero has one now. The interesting decisions are the ones we *didn't* make: no custom stages,
no custom fields, no required seat to look at your own forecast.

## The board

Six statuses, fixed:

| Stage | Probability | Meaning |
|---|---|---|
| Discovery | 0.10 | A conversation exists. That's all that's known. |
| Qualified | 0.30 | Someone real is attached to the need. |
| Proposal | 0.50 | Money has been written down and sent. |
| Negotiation | 0.70 | Terms are being worked. |
| Won | 1.00 | Terminal. `closedAt` set. |
| Lost | 0.00 | Terminal. A `lostReason` is recorded — it feeds retention, not pride. |

**Constraints are the feature.** Custom stages are where pipelines go to die: the board grows
forty columns of local dialect and the forecast becomes unreadable. ZenHero's stages are
probabilities in disguise — the board *is* the math. Amounts are stored in **integer cents**
(never floats for money), every card is stamped with its `source` (manual, mcp, superform,
zapier, tray, import), and reopening a closed deal re-enters the pipeline with `closedAt`
cleared.

## The process flow

Sources land on one rail; every create and every transition fans out through the same trigger
service; and the pipeline's dollar value flows back into what gets built next.

<div class="flow-diagram" role="img" aria-label="Deal pipeline process flow: sources (manual, MCP agents, SuperForm, Zapier/Tray, import) converge on deal creation with deal.created; the card moves through discovery (P 0.10), qualified (0.30), proposal (0.50), negotiation (0.70) to won (1.00) or lost (0.00); every transition fires deal events to connected AI agents, org webhooks (Zapier/Tray), and the activity timeline; the weighted forecast (sum of open amount times stage probability) feeds SuperClarity, which re-weights backlog priorities.">

<svg viewBox="0 0 920 600" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font-family:inherit">
  <defs>
    <marker id="ar" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
      <path d="M0,0 L10,5 L0,10 z" fill="#000"/>
    </marker>
    <marker id="arR" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
      <path d="M0,0 L10,5 L0,10 z" fill="#DC2626"/>
    </marker>
  </defs>

  <!-- Row A: sources -->
  <rect x="20" y="16" width="160" height="54" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="100" y="39" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Manual</text>
  <text x="100" y="57" text-anchor="middle" font-size="11" fill="#555">drag-and-drop</text>

  <rect x="200" y="16" width="160" height="54" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="280" y="39" text-anchor="middle" font-size="13" font-weight="700" fill="#000">MCP tools</text>
  <text x="280" y="57" text-anchor="middle" font-size="11" fill="#555">AI agents</text>

  <rect x="380" y="16" width="160" height="54" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="460" y="39" text-anchor="middle" font-size="13" font-weight="700" fill="#000">SuperForm</text>
  <text x="460" y="57" text-anchor="middle" font-size="11" fill="#555">order forms</text>

  <rect x="560" y="16" width="160" height="54" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="640" y="39" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Zapier / Tray</text>
  <text x="640" y="57" text-anchor="middle" font-size="11" fill="#555">inbound hooks</text>

  <rect x="740" y="16" width="160" height="54" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="820" y="39" text-anchor="middle" font-size="13" font-weight="700" fill="#000">CSV / import</text>
  <text x="820" y="57" text-anchor="middle" font-size="11" fill="#555">one-time or sync</text>

  <!-- down arrows to rail -->
  <line x1="100" y1="70" x2="100" y2="100" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="280" y1="70" x2="280" y2="100" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="460" y1="70" x2="460" y2="100" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="640" y1="70" x2="640" y2="100" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="820" y1="70" x2="820" y2="100" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>

  <!-- rail -->
  <line x1="100" y1="100" x2="820" y2="100" stroke="#000" stroke-width="1.5"/>
  <text x="910" y="104" text-anchor="end" font-size="10" fill="#A3A3A3">source stamped on card</text>
  <line x1="460" y1="100" x2="460" y2="124" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>

  <!-- Entry node -->
  <rect x="310" y="124" width="300" height="48" fill="#000"/>
  <text x="460" y="145" text-anchor="middle" font-size="13" font-weight="700" fill="#fff">New deal created</text>
  <text x="460" y="161" text-anchor="middle" font-size="11" fill="#fff" opacity="0.75">fires deal.created on entry</text>
  <line x1="460" y1="172" x2="460" y2="204" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>

  <!-- Row C: board -->
  <rect x="20" y="204" width="155" height="86" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="97" y="226" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Discovery</text>
  <text x="97" y="243" text-anchor="middle" font-size="11.5" fill="#555">P = 0.10</text>
  <rect x="38" y="256" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>
  <rect x="38" y="271" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>

  <rect x="187" y="204" width="155" height="86" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="264" y="226" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Qualified</text>
  <text x="264" y="243" text-anchor="middle" font-size="11.5" fill="#555">P = 0.30</text>
  <rect x="205" y="256" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>
  <rect x="205" y="271" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>

  <rect x="354" y="204" width="155" height="86" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="431" y="226" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Proposal</text>
  <text x="431" y="243" text-anchor="middle" font-size="11.5" fill="#555">P = 0.50</text>
  <rect x="372" y="256" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>
  <rect x="372" y="271" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>

  <rect x="521" y="204" width="155" height="86" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="598" y="226" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Negotiation</text>
  <text x="598" y="243" text-anchor="middle" font-size="11.5" fill="#555">P = 0.70</text>
  <rect x="539" y="256" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>
  <rect x="539" y="271" width="119" height="10" fill="#F5F5F5" stroke="#E5E5E5"/>

  <line x1="177" y1="247" x2="185" y2="247" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="344" y1="247" x2="352" y2="247" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="511" y1="247" x2="519" y2="247" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="678" y1="247" x2="686" y2="247" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>

  <rect x="688" y="204" width="100" height="86" fill="#000"/>
  <text x="738" y="232" text-anchor="middle" font-size="13" font-weight="700" fill="#fff">Won</text>
  <text x="738" y="249" text-anchor="middle" font-size="11.5" fill="#fff">P = 1.00</text>
  <text x="738" y="276" text-anchor="middle" font-size="10" fill="#fff" opacity="0.75">closedAt set ·</text>
  <text x="738" y="288" text-anchor="middle" font-size="10" fill="#fff" opacity="0.75">voters notified</text>

  <line x1="790" y1="247" x2="798" y2="247" stroke="#A3A3A3" stroke-width="1.5" marker-end="url(#ar)"/>

  <rect x="800" y="204" width="100" height="86" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="850" y="232" text-anchor="middle" font-size="13" font-weight="700" fill="#555">Lost</text>
  <text x="850" y="249" text-anchor="middle" font-size="11.5" fill="#555">P = 0.00</text>
  <text x="850" y="276" text-anchor="middle" font-size="10" fill="#A3A3A3">lostReason</text>
  <text x="850" y="288" text-anchor="middle" font-size="10" fill="#A3A3A3">recorded</text>

  <!-- Row E: events -->
  <line x1="460" y1="290" x2="460" y2="312" stroke="#000" stroke-width="1.5"/>
  <line x1="160" y1="312" x2="820" y2="312" stroke="#000" stroke-width="1.5"/>
  <text x="468" y="308" text-anchor="start" font-size="10" fill="#A3A3A3">every move fires</text>
  <line x1="160" y1="312" x2="160" y2="330" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="360" y1="312" x2="360" y2="330" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="560" y1="312" x2="560" y2="330" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="760" y1="312" x2="760" y2="330" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>

  <rect x="70" y="330" width="180" height="40" fill="#fff" stroke="#000" stroke-width="1.5"/>
  <text x="160" y="354" text-anchor="middle" font-size="12" fill="#000" style="font-family:'IBM Plex Mono',ui-monospace,monospace">deal.created</text>

  <rect x="270" y="330" width="180" height="40" fill="#fff" stroke="#000" stroke-width="1.5"/>
  <text x="360" y="354" text-anchor="middle" font-size="12" fill="#000" style="font-family:'IBM Plex Mono',ui-monospace,monospace">deal.stage_changed</text>

  <rect x="470" y="330" width="180" height="40" fill="#fff" stroke="#DC2626" stroke-width="2"/>
  <text x="560" y="354" text-anchor="middle" font-size="12" fill="#000" style="font-family:'IBM Plex Mono',ui-monospace,monospace">deal.won / deal.lost</text>

  <rect x="670" y="330" width="180" height="40" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="760" y="354" text-anchor="middle" font-size="12" fill="#555" style="font-family:'IBM Plex Mono',ui-monospace,monospace">activity log</text>

  <!-- sinks -->
  <line x1="160" y1="370" x2="160" y2="385" stroke="#000" stroke-width="1.5"/>
  <line x1="360" y1="370" x2="360" y2="385" stroke="#000" stroke-width="1.5"/>
  <line x1="560" y1="370" x2="560" y2="385" stroke="#000" stroke-width="1.5"/>
  <line x1="760" y1="370" x2="760" y2="385" stroke="#000" stroke-width="1.5"/>
  <line x1="156" y1="385" x2="764" y2="385" stroke="#000" stroke-width="1.5"/>
  <line x1="156" y1="385" x2="156" y2="400" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="459" y1="385" x2="459" y2="400" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>
  <line x1="762" y1="385" x2="762" y2="400" stroke="#000" stroke-width="1.5" marker-end="url(#ar)"/>

  <rect x="20" y="400" width="273" height="72" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="156" y="424" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Connected AI agents</text>
  <text x="156" y="442" text-anchor="middle" font-size="10.5" fill="#555">MCP triggers subscribe to pipeline events;</text>
  <text x="156" y="456" text-anchor="middle" font-size="10.5" fill="#555">agents move cards via update_deal_stage</text>

  <rect x="323" y="400" width="273" height="72" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="459" y="424" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Org webhooks</text>
  <text x="459" y="442" text-anchor="middle" font-size="10.5" fill="#555">Zapier catch hooks / Tray HTTP triggers —</text>
  <text x="459" y="456" text-anchor="middle" font-size="10.5" fill="#555">same tracked delivery pipeline as every event</text>

  <rect x="626" y="400" width="273" height="72" fill="#fff" stroke="#E5E5E5" stroke-width="1.5"/>
  <text x="762" y="424" text-anchor="middle" font-size="13" font-weight="700" fill="#000">Activity timeline</text>
  <text x="762" y="442" text-anchor="middle" font-size="10.5" fill="#555">every change logged,</text>
  <text x="762" y="456" text-anchor="middle" font-size="10.5" fill="#555">actor attributed: human or agent</text>

  <!-- Bottom: the loop -->
  <rect x="20" y="512" width="880" height="64" fill="#F5F5F5"/>
  <rect x="20" y="512" width="4" height="64" fill="#DC2626"/>
  <text x="40" y="538" font-size="13" font-weight="700" fill="#000">Weighted forecast = Σ (open amount × P(stage))</text>
  <text x="40" y="559" font-size="11.5" fill="#555">SuperClarity weighs backlog priorities by pipeline value — dollars flow back into the RICE board, and the roadmap pays for the pipeline.</text>
</svg>

</div>

*Fig. 1 — Sources converge; the board is the math; transitions fan out; the forecast loops back into prioritization.*

## The fan-out, one trigger service

Every create and transition fires through the same trigger service — no bypass lanes:

- **`deal.created`** — on entry, with the source stamp.
- **`deal.stage_changed`** — on every move, with from/to.
- **`deal.won` / `deal.lost`** — terminal events; `won` carries the amount and contact for the
  changelog loop, `lost` carries the reason.

Sinks subscribe to the same stream: **connected agents** (MCP triggers, so a Zapier/Tray org
webhook or an agent prompt can react to pipeline movement), **org webhooks** (Zapier catch
hooks and Tray HTTP triggers delivered through the tracked pipeline — retries and delivery
status, not fire-and-forget), and the **activity timeline**, where every change is attributed
human or agent. Drag-and-drop, MCP `update_deal_stage`, and the tRPC router all funnel into
`move()` — one code path, three doors.

## The forecast the board makes for free

Because stages are fixed probabilities, the summary is arithmetic, not opinion:

```
openCents             = Σ amounts in the four open stages
weightedForecastCents = Σ (open amount × P(stage))
wonCents / lostCents  = closed value and its reason mix, by count
```

A negotiation deal counts at seventy cents on the dollar; a discovery deal at ten. The whole
thing is available as an MCP tool (`pipeline_summary`), so an agent can answer "are we ahead?"
without a dashboard session.

## The loop

Pipeline value isn't a dead-end number. **SuperClarity weighs backlog priorities by pipeline
value** — dollars flow back into the [RICE board](/blog/rice-scoring-revenue-weights/), and
the revenue weighting gets sharper as deals move. The pipeline that sales drags cards across
is the same signal the roadmap scores with. That's the difference between a CRM tab and a
product surface: the sales motion actually changes what gets built next.

## What it's not

Not a CRM replacement. No email sequences, no dialer, no field inventories. It's the
one-fifth of CRM work the stopwatch studies were actually about — deal boards, stages,
forecast, and the wiring to let everything else in the suite react. If you need marketing
automation, bring a tool that does it well; the webhooks are already listening.

## See it live

[Start ZenHero's 30-day trial](https://app.zenhero.io/login) — the pipeline board is in the
nav; drag a card, and the event stream, webhooks, and forecast move with it immediately.

