Use casesUse case
Cancellation save offers, judged by the revenue they keep
The offer that stops most cancellations isn't always the one that keeps the most revenue. Zigbongo learns which save offer or renewal prompt pays, customer by customer, from months of renewals.
What it decides
Retention decisions come at a few moments, each with offers you've designed:
- On the cancel page: no offer and straight to confirmation, a month's pause, a discount on the next three months, a move to a cheaper plan.
- Before a renewal: which reminder e-mail your server sends, such as a usage summary, an offer to switch to annual, or nothing.
- When usage drops: which prompt to show a customer who hasn't logged in for a while.
The default is what you do today. If your cancel page shows a discount now, that's the default: where Zigbongo starts, what a customer sees if Zigbongo can't answer in time, and what the holdout, the 5% of customers who always see your default choices, keeps seeing.
Count revenue kept, not saves
A 50% discount may stop more cancellations than a pause, and still keep less money. A save that lasts one more month counts the same as one that lasts a year, if all you report is the save. So report what the customer pays over the following months: each renewal, by customer, from your billing system. Each visit to the cancel page starts a session, and every payment that arrives within the attribution window you set for this flow (here, the cancel page) adds to it. For a monthly subscription, a 100-day window counts the next three renewals; set it with PATCH /v1/flows/{flowKey} and {"objective": {"window": "P100D"}}.
If you'd rather count customers kept than revenue, report a 1 when a customer cancels within the window and set the flow's objective to minimize. Zigbongo doesn't need to know what the number means, only whether higher or lower is better.
Wire it up
On the cancel page, decide once, after asking why they're leaving if you ask:
import { Zigbongo } from "@zigbongo/sdk";
const zb = new Zigbongo({ apiKey: process.env.ZIGBONGO_KEY, baseUrl: "https://zigbongo.com" });
const s = zb.session("cancel-save", String(customer.id));
const offer = await s.decide("save_offer", ["none", "pause_1m", "discount_3m", "downgrade"], "none", {
inputs: {
plan: customer.plan,
tenureMonths: customer.tenureMonths,
reason: req.body.reason, // "too_expensive", "not_using", "missing_feature"...
},
});
renderCancelPage(offer.option); // every version keeps the cancel button
Renewals happen in your billing system, so report them in bulk from a nightly job, dated when they were paid:
const results = await zb.outcomes(
payments.map((p) => ({
outcomeId: String(p.id), flowKey: "cancel-save", subjectId: String(p.customerId), value: p.amount, at: p.paidAt,
})),
);
for (const r of results) if (r.error) console.warn(r.outcomeId, r.error.code);
Each item succeeds or fails on its own, and the payment id makes resending harmless. One call takes about 25,000 outcomes. Send the payments of customers who reached the cancel page within the window, and nobody else's: a payment only counts towards a visit whose window it falls in. If a customer reached the cancel page twice in that time, each visit counts it. More in sessions and outcomes.
Context worth sending
The reason someone gives for leaving is the context to start with: a discount speaks to "too expensive" and may do little for "not using it". Send it as an input with the decision. Plan and tenure matter too, and so does recent usage, as a number such as logins in the last 30 days; Zigbongo learns bands for numbers from the values it sees. See inputs.
What to expect
Few customers reach the cancel page compared with how many sign up, and each one's outcome takes the length of the window to settle. So this flow learns slowly, and the 5% holdout fills slowly too, which makes the lift slow to prove even after traffic has moved. You can raise the flow's holdout for a while (its holdoutPercent) to get a clear reading sooner, at the cost of more customers seeing your default. Who is in the holdout is decided per customer, and raising the share only adds customers to it: nobody already in it moves out.
The report compares revenue per session for the customers Zigbongo chooses for against the holdout, with a 95% interval, and leaves out visits whose window is still open. See holdout and lift.
Guardrails
- The way out stays open. A save offer is a choice, never an obstacle. Every option you send must comply with consumer protection and unfair commercial practices law, as our terms say. We recommend one more rule: put the cancel button in every version, the default included.
- Discounts are prices. A discount chosen per person can be a personalized price, and where you personalize a price for consumers on the basis of automated decision-making, EU consumer law requires you to tell them so. Check with your counsel how it applies to your offers.
- No protected characteristics. Don't use inputs about them to target or exclude people.
- Forgetting customers. When a former customer asks to be erased, call
zb.eraseSubject(String(customer.id))from a job: it removes what Zigbongo holds about them in every flow. See erasing customers. - A kill switch. Pause the flow and the cancel page shows your default within seconds.
Each cancel-page visit is one session, and renewals you report don't add sessions; see pricing and how it works. The same reporting pattern, by customer over weeks, is behind trial length tests; for the price the customer pays in the first place, see paywalls and pricing.