Skip to content

All docs

Reviving stalled deals

How stalled deals are found and scored, and how a revival draft is made.

Revival at /revival (the Deal Autopsy) lists deals that went quiet, ranks them by how worth reviving they are, and says why each one stalled. You choose why you are getting in touch now, and the App writes a short draft for your approval on the Approval desk. Nothing is sent by the App.

What it does

Which deals are listed

A deal is listed when all of these hold:

  • it is open, at the stage new, contacted, quoted or negotiating (a won or lost deal is never listed);
  • the person is active and not marked as under 18;
  • nobody has written for longer than the stall window: 45 days unless the workspace sets its own;
  • the last message from the person was assessed and was not a clear no.

A clear no is found by fixed English and Hinglish phrases, for example "not interested", "no thanks", "stop messaging", "nahi chahiye" and "mat bhejo". When the last message was never assessed, or there is no message from the person at all, the deal is treated as a clear no and is not listed. Revival fails closed.

People who withdrew, whose details were erased, or who are marked as under 18 are never offered a revival. Their stalled deals are counted under "stalled contacts stopped by the Consent Gate", each with the reason. In a demo copy, and for the owner on the DPDP audit lens, they are named; otherwise each shows as a protected contact.

The score

Each deal gets a whole-number score from 0 to 100, the sum of six parts:

PartUp toHow
Depth of the conversation25messages (counted up to 20) and meetings (counted up to 3)
Stage20how far the deal got
Who went quiet1010 if they wrote last, 4 if you did
Why it stalled20budget, timing, your follow-up stopped, or an unanswered question score highest; "chose another option" scores 0
Time since the last contact15full points from 60 days to a year, then less
Value quoted10grows with the amount quoted

A deal where they chose another option, or whose last message was a clear no, scores 0 and is not shown.

The reason a deal stalled comes from the AI purpose stall_reason, which must quote the message it is based on. An answer without a quote becomes "unclear".

A daily job, once per UTC day, finds the stalled deals of active adults and saves their reason and score. It reads up to 500 open deals. It never reads a stall reason for, or scores, the deal of a person who withdrew, was erased or is marked as under 18.

The autopsy card

Each listed deal is one card:

  • the name and organisation, the score and days quiet, "Basis: valid" or "No valid basis", and the quoted value;
  • the finding, for example "They went quiet after the price";
  • the silence seismograph: a chart of the real interaction dates, the quiet period with its length, and a marker at the message that holds the quote;
  • "Inspect the stitch", which opens the person's page with every source joined into one person.

The DPDP audit lens (/revival?lens=audit) adds, per card, the basis methods per channel, the checks with the acceptance criteria behind them, and the interaction dates.

Why now, preflight and the draft

  1. Why-now chips. Fact chips come first, each from one of the person's own records with its quote: an overdue promise ("The sample set you promised is ready"), the last quote, an updated need they stated, or the event where you met. The first fact chip is preselected. Two general chips follow (the financial-year budget close and an open dispatch slot). The chip fills "Selected reason (editable)", which you can change (up to 500 characters). A number you type must already be in one of the person's sources.
  2. Channel. WhatsApp or email. When there is a mail thread with the person, email replies on it, for example "Email (re: Catalogue for the new term)".
  3. Preflight. A strip shows, for the chosen channel, each check the draft must pass, in this order: valid basis, minor flag off, no clear no, no revival in the last 90 days, prompt-injection scan clean, and every number found in a source. The last two run after drafting. When a check fails, "Update draft on the Approval Desk" is disabled and the first failing reason is shown. The same checks run again on the server, with the same words.
  4. Update draft on the Approval Desk. The AI writes a draft of 70 words or fewer, with your reason, one question about why the deal stalled, and a clear way to say no. It waits on the Approval desk, where the consent check runs again and you can edit, approve or skip it.

After the hand-over: outcomes

Once a revival draft is handed over, its card on the Approval desk asks what happened:

OutcomeEffect
I sent it · remind me on …Marks the draft as sent. Choose 1, 3 or 7 days or a date (today up to two years ahead) for a reminder to check for their reply. Opening it in WhatsApp or mail only hands it over.
They replied · add a noteThe reply you paste is added to their timeline.
Won dealThe deal is marked won with the value you confirm, and it leaves the revival queue.
Said a clear noThe deal is never offered for revival again.
LostThe deal is marked lost with your reason, and it leaves the revival queue.

Only "Sent" can be followed by a second outcome (replied, won or lost). Each outcome writes one audit row.

Limits

  • Imports assess each message from the person for a clear no. A message with no assessment, for example one stored before this was added, counts as a clear no, so its deal is not listed.
  • The AI is simulated unless the site runs with AI_MODE=live, Sandbox_Mode off and AWS credentials. The Simulator's stall reason and draft follow fixed rules. Live drafting with Amazon Bedrock has not been run.
  • The score weights are fixed in code (src/modules/revival/index.ts); a workspace can change only the stall window.
  • A guardian's consent for a person under 18 covers admissions follow-ups only, so it never allows a revival.

Troubleshooting

What you seeWhat to do
"No stalled deals are worth reviving right now"No deal is past the stall window, or all are a clear no or protected. The Pipeline shows every open deal.
"Choose a channel and write why you are getting in touch now."Both fields are needed.
"Keep the reason under 500 characters."Shorten the reason.
"A draft was not made. Nothing was changed."The consent check refused, or the draft failed its checks. Look at the person's consent on their page.
"The reason has a number that is not in any of this person's sources…"Remove the number, or choose the chip that quotes it.
"A revival was drafted for this person in the last 90 days."Wait until 90 days have passed since the last revival draft.
"Update draft on the Approval Desk" is disabledA preflight check failed; its reason is shown under the strip.
"Drafting is not available right now…"The AI could not be reached or its daily budget is used up. Try later.
"That deal could not be found."It was closed or changed. Reload the page.
A deal you expected is missingIts last message may be unassessed or a clear no, it is inside the stall window, or the person is protected (listed under the Consent Gate count).
The scores look oldThe Worker (npm run start:worker) must be running for the daily job.

The demo copy holds one stalled deal: Kabir Mehta of Mehta Stationers, "Went quiet after the price, 4 months ago, score 82". All of its numbers are demo data. See The demo.